flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
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
_________________ UNICODE forever! Last edited by shoorick on 31 Oct 2008, 06:08; edited 1 time in total |
||||||||||||||||||||
![]() |
|
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. |
|||
![]() |
|
shoorick
LPT already has resistors on bus (open collector)
|
|||
![]() |
|
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
![]() |
|||
![]() |
|
edfed
very probable. can you mail me somes? in france, we don't have this kind of immortal components.
![]() |
|||
![]() |
|
shoorick
sure, i have some
![]() ![]() ![]() here they are in use: ![]() also there is a movie where you can see how do they blink ![]() 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 ![]() regards!
_________________ UNICODE forever! |
|||||||||||||||||||
![]() |
|
edfed
so cute.
![]() it reminds me my power amplifier. ![]() 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. |
|||
![]() |
|
shoorick
thanks, but i'm not sure i'll be interesting with power amplifier soon
![]() 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 ![]() regards! |
|||
![]() |
|
selevo
Thank for you prog!
What about add manual input LPT adress ? And what ASM, FLATASM? ECP LPT it's bidirection port, how get DATA (swich pins to input)? Thank's |
|||
![]() |
|
shoorick
selevo wrote: What about add manual input LPT adress ? I'm not sure what do you mean Quote: And what ASM, FLATASM? any language which let you to call function from dll (if you mean inpout32.dll). I've been using fasm. Quote: ECP LPT it's bidirection port, how get DATA (swich pins to input)? I had troubles with ECP (enchanced communicaton port) mode, so, I would suggest to use EPP or just bi-directional mode. Control register (say, 37Ah) has bit5 which has no output pin, but switches data port (378h) into input mode when set. Also, it seems there are more articles about LPT now than PC with hardware LPT ![]() And I have no currently Windows PC with LPT, but still can use it from Linux (in Linux I have access through C written program) regards _________________ UNICODE forever! |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.