![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Coding Post your Coding for opensource projects here. |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
I'm experimenting with some simple programs in C++ and am trying to figure out how to access the parallel port. Apparently Win XP doesn't allow direct access to the port. Anyone have any pointers on which drivers to use? Thanks. |
|
#2
| |||
| |||
| Hi Zumba, I think it's possibly a bit worse than just not allowing direct access, I believe WinXP polls any Parallel ports it can find, if you are connecting something to it that can move real hardware you need to be carefull that you turn this feature off in XP. There's a fix for the polling on this page 'http://www.melabs.com/support/patches.htm#filefix'. Once you stop Windows accessing the port, you should be able to get directly to the hardware ie: the 8255 pio chip, to understand how to do this you will need to identify the particular type of io chip being used and its base io address, with these you should be able to get something working in C++. |
|
#3
| ||||
| ||||
| http://www.logix4u.net/inpout32.htm I've also attached a c# project I wrote that uses it for reading and flipping pport bits from a form (the port address is hard coded in Form.cs). My front doorbell uses this library to poll the pport and play a wav file when the button is pressed. But yes, you won't want to rely on it for driving machinery at any speed. Good luck, have fun! |
|
#6
| |||
| |||
Hi there, have done extensive work with the parallel port in both WinXP and Vista, a kernel mode driver is required, the one that I have found the best is TvicPort http://www.entechtaiwan.com/dev/port/index.shtm free for non commercial use works perfectly and easy to use under any programming langauge, I'm using .net and are able to trigger events from any of the port pins, the only bad thing I have found is that as Windows is not a real time operating system, high speed events sometimes fail, as at the end of the day if the Windows kernel decides to do something else (like defrag the hard drive) your event can be delayed or missed. On the bright side I have bit bashed many 8 bit controllers like the SJA1000 CAN controller directly from the parallel port so at slower speeds talking to an 82C55 wouldn't be a problem. The TvicPort comes with kernel mode driver (no point in recreating the wheel) and an extensive help file for all programming langauge, wish you all the best! Best regard Dave |
|
#7
| |||
| |||
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Where's the parallel port? | cdlenterprises | Mastercam | 23 | 01-20-2007 06:23 PM |
| 2nd PCI Parallel Port | sunmix | Mach Software (ArtSoft software) | 8 | 11-22-2006 03:17 PM |
| Second parallel port? | essa | LinuxCNC (formerly EMC2) | 11 | 04-12-2006 03:18 AM |
| Parallel port | Aldoseri | BobCad-Cam | 11 | 03-13-2006 11:10 AM |
| Parallel Port | Shanghyd | Computers and Networking | 1 | 11-22-2004 12:56 PM |