need OUT, INP substitutes

Blitz3D Forums/Blitz3D Programming/need OUT, INP substitutes

jfk EO-11110(Posted 2007) [#1]
I need something like the old INP / OUT commands that allowed to write to IO ports such as the parallel ports. It's gotta be fast since it should control a steppermotor interface.

Isn't there a kernel call for that? I guess RTLMemoryMove won't work, right?


big10p(Posted 2007) [#2]
I think someone did a DLL for serial/parallel port IO. Sorry, I really can't remember who it was by. Maybe someone else has a better memory than me?


Who was John Galt?(Posted 2007) [#3]
No personal experience, but this may point you in the right direction:

http://www.beyondlogic.org/porttalk/porttalk.htm


jfk EO-11110(Posted 2007) [#4]
Yeah, thanks a lot. Not sure if this is gonna work in NT platforms such as XP etc., but at least with win98 this may work. I found the zipfiles (it's amazing what you can find on your own hardrive :) ), portio.zip (initial, pre-decls era release) and dlportio_decls.zip (decls file only, must be used with portio.dll from the first zipfile).

Just tested it, seems to work well.

Now I got to program the PIT programmable interrupt timer this way... messing with port $43... I'm afraid windows won't allow...


Wayne(Posted 2007) [#5]
http://blitzbasic.com/codearcs/codearcs.php?code=1487


jfk EO-11110(Posted 2007) [#6]
May be useful too, thanks.


Wayne(Posted 2007) [#7]
I used it to send out the pulse train to control a rc servo motor under win 2k and win xp.


jfk EO-11110(Posted 2007) [#8]
Sounds good. I'm on something cool too these days, I'll probably tell more in a few days.


Panno(Posted 2007) [#9]
omg ;)


Panno(Posted 2007) [#10]
any news Tingel Tangel Bob ?