Armenian Knowledge Base  

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

Reply
 
LinkBack Thread Tools
Old 08.08.2002, 04:40   #1
Младенец
 
Join Date: 06 2002
Location: Armenia,Yerevan
Age: 32
Posts: 11
Downloads: 0
Uploads: 0
Reputation: 0 | 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..
Reply With Quote
Old 08.08.2002, 21:24   #2
Guru Apprentice
 
Join Date: 02 2002
Location: /dev/null
Age: 41
Posts: 524
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Post

What do you mean by 'tension'?
AFAIK IRQ for LPT port is 7.
Reply With Quote
Old 08.08.2002, 21:48   #3
freelancer
 
Yerkanian's Avatar
 
Join Date: 06 2002
Location: the same place
Posts: 592
Downloads: 0
Uploads: 0
Reputation: 0 | 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/
Reply With Quote
Old 10.08.2002, 07:14   #4
Младенец
 
Join Date: 06 2002
Location: Armenia,Yerevan
Age: 32
Posts: 11
Downloads: 0
Uploads: 0
Reputation: 0 | 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 With Quote
Sponsored Links
Reply

Thread Tools


На правах рекламы:
реклама

All times are GMT. The time now is 18:19.


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