Figuring out the Printer port base address
Aki Niimura
akineko at pacbell.net
Sun Dec 29 14:35:21 EST 2002
Hi Chris,
Thank you very much for your prompt response.
I checked out your mspgcc Home page (http://mspgcc.sourceforge.net/).
It was very impressive. My application is very similar to your pyJTAG.
I have a JTAG solution for Unix and now I'm trying to port it to Windoze.
Anyway, I have several questions to ask if I may:
(1) parallel
> i have my own solution here... it runs on linux and win32
> http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/pyserial/pyparallel/
Your 'prallelwin32.py' seems using a fix port address.
| LPT1_base = 0x0378
| LPT2_base = 0x0278
|
| import _pyparallel
|
| class Parallel:
| def __init__(self, port = LPT1):
| if port == LPT1:
| self.dataRegAdr = LPT1_base
| elif port == LPT2:
| self.dataRegAdr = LPT2_base
(2) giveio
> i use the giveio driver which i use in my package, it allows to do that.
> you can get giveio seprately here
> http://sourceforge.net/project/showfiles.php?group_id=42303&release_id=1197
> 87 where i wrapped it with an installer. (but then you need to do some C)
I only found the binary format of 'giveio'. Could you elaborate the detail
how to determine the LPT1 base address in the 'giveio' module?
Thanks!
Aki-
More information about the Python-list
mailing list