Go Back   Armenian Knowledge Base > Technical sections > Languages, Compilers, Interpreters

Reply
 
Thread Tools

Question which is closer to assembly
Old 08.08.2002, 03:40   #1
Младенец
 
Join Date: 06 2002
Location: Armenia,Yerevan
Age: 39
Posts: 11
Rep Power: 0
Question Question which is closer to assembly

Please could you tell me how can I control the tension in lpt port (with which registers)?

Thank you for help..

Old 08.08.2002, 20:24   #2
Guru Apprentice
 
Join Date: 02 2002
Location: /dev/null
Age: 47
Posts: 524
Rep Power: 0
Post

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

Old 08.08.2002, 20:48   #3
freelancer
 
Yerkanian's Avatar
 
Join Date: 06 2002
Location: the same place
Posts: 592
Rep Power: 0
Post

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.

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

Old 10.08.2002, 06:14   #4
Младенец
 
Join Date: 06 2002
Location: Armenia,Yerevan
Age: 39
Posts: 11
Rep Power: 0
Talking

Thank You very much !
Yes I meant voltage saying tension...(sorry for incorrect word).
Thank you for giving me such nessecery 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!
__________________
The best way to save money is to invest it in knowledge and/or information area...
Reply




Реклама:
реклама

All times are GMT. The time now is 02:14.
Top

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