Armenian Knowledge Base

Armenian Knowledge Base (https://forum.armkb.com/)
-   Languages, Compilers, Interpreters (https://forum.armkb.com/languages-compilers-interpreters/)
-   -   Question which is closer to assembly (https://forum.armkb.com/languages-compilers-interpreters/73-question-closer-assembly.html)

GeniusRaf 08.08.2002 03:40

Question which is closer to assembly
 
Please could you tell me how can I control the tension in lpt port (with which registers)? :confused:

Thank you for help..

Ektich 08.08.2002 20:24

What do you mean by 'tension'?
AFAIK IRQ for LPT port is 7.

Yerkanian 08.08.2002 20:48

As far as I understood by "tension" you meant "напряжение" :) Should've used word "voltage" or "current".

If my guess is right, then you could alter
the voltage by setting bits (LPT is outputing)
a unsigned byte and each tick. So, 01010101
for example. The voltage will be logical 1 and
logical 0 (no voltage and voltage). To control
the voltage more gradually, you should create
resister array, putting different ohm-age resisters, e.g. lower ohm on high bits, higher
ohmage on low bits. Connect all those resisters
on the other end, and take the ground as the
second wire. Now try writing a program which
increases and outputs a byte from 0 to 255

attach voltmeter and watch the read-out. :)

You have built your own DAC (Digital to Analog Converter). Congratulations.

By the way, years ago, when there were no
sound blasters out yet, there was a beast called
COVOX. :) 8bit mono sound device. :D

Have a look here if puzzled: http://kiarchive.relcom.ru/pub/msdos...soundcard/dac/

GeniusRaf 10.08.2002 06:14

Thank You very much !
Yes I meant voltage saying tension...(sorry for incorrect word).
Thank you for giving me such nessecery :agree: information but I hadn't made DAC yet (and don't going now) .(but in future I'd like to make) .

In real I'm learning Assembly now.
10x again and bye!


All times are GMT. The time now is 22:01.

Powered by vBulletin® Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.