flat assembler
Message board for the users of flat assembler.

Index > Projects and Ideas > LPT output with inpout32.dll

Author
Thread Post new topic Reply to topic
shoorick



Joined: 25 Feb 2005
Posts: 1605
Location: Ukraine
shoorick
Hi!

This is a very simple example, how to control LPT output under WinNT-based system from fasm project with inpout32.dll by logix4u


Description:
Filesize: 32.28 KB
Viewed: 7785 Time(s)

lpt_led.gif


Description:
Download
Filename: lpt_led.0.0.4.1.zip
Filesize: 5.4 KB
Downloaded: 631 Time(s)


_________________
UNICODE forever!


Last edited by shoorick on 31 Oct 2008, 06:08; edited 1 time in total
Post 14 Mar 2008, 14:13
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4215
Location: 2018
edfed
and then, to drive the leds, just connect them to I/O port LPT. via 560 ohm resistors.

then, you can see the image of bits in real.
Post 14 Mar 2008, 14:20
View user's profile Send private message Visit poster's website Reply with quote
shoorick



Joined: 25 Feb 2005
Posts: 1605
Location: Ukraine
shoorick
LPT already has resistors on bus (open collector)
Post 14 Mar 2008, 14:25
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4215
Location: 2018
edfed
yes, but these resistors are not designed for led driving.

the danger is to have too small resistors, and then, too high current, then, leds will burn.

tested and approuved by myself.

to know the value of the resistors on LPT, shortcut the out put with an amperemeter. the value displayed correspond to the the current in the resistor. mesure the voltage without load, then, you know the resistance by R=U/I

if the resistance is less than 560 ohm, your leds will probably burn if directlly connected. or know a shorter life.

typical resistor for red leds on 5V is 560ohms. but it works with 300 ohms too, more bright, and shorter life.
Post 14 Mar 2008, 14:51
View user's profile Send private message Visit poster's website Reply with quote
shoorick



Joined: 25 Feb 2005
Posts: 1605
Location: Ukraine
shoorick
sure, i do not mind resistors. but i have not burn anyone on lpt yet. (maybe because i use old russian leds, which need 220V to be burn out Very Happy)
Post 14 Mar 2008, 14:57
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4215
Location: 2018
edfed
very probable. can you mail me somes? in france, we don't have this kind of immortal components.
Very Happy
Post 14 Mar 2008, 15:17
View user's profile Send private message Visit poster's website Reply with quote
shoorick



Joined: 25 Feb 2005
Posts: 1605
Location: Ukraine
shoorick
sure, i have some Very Happy just do not know how to pack it so it will not be lost at mail Very Happy also, it may look like exporting military technologies Very Happy

here they are in use:
Image

also there is a movie where you can see how do they blink Wink

btw, i have inspected stuff what i have and found these resistors to +5V vary from 33 Ohm to 4700 Ohm, also one old LPT board i have has not OC output - it has TTL output without resistors at all.

sure, this way is just for quick testing without soldering anything - for more complex device there should be more correct electronic schema Wink

regards!


Description: an old russian led in bullet-proof case
Filesize: 15.1 KB
Viewed: 7925 Time(s)

AL102.jpg


Description: all what i have of this kind of LEDs ;)
Filesize: 27.24 KB
Viewed: 7926 Time(s)

AL102_.jpg



_________________
UNICODE forever!
Post 15 Mar 2008, 09:02
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4215
Location: 2018
edfed
so cute. Very Happy
it reminds me my power amplifier. Laughing

if you want, i can write a shema for you, to build a matrix with the leds.

you need some CMOS or TTL logic too. and a holes-board (plaque à trou).
8*8 survivor dot matrix for LPT. plug and play!!!

or with only 8 leds and a motor, we can have a very long message. i made it a long time ago.
Post 15 Mar 2008, 10:41
View user's profile Send private message Visit poster's website Reply with quote
shoorick



Joined: 25 Feb 2005
Posts: 1605
Location: Ukraine
shoorick
thanks, but i'm not sure i'll be interesting with power amplifier soon Smile
i have interest in soldering and have a lot of parts for this as before i've been more interesting with electronics then programming, but last years have no time enough for this.
maybe next time i'll make something another intersting Smile

regards!
Post 16 Mar 2008, 13:45
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2019, Tomasz Grysztar.

Powered by rwasa.