Changes between Initial Version and Version 1 of Hardware_Programming_in_Windows


Ignore:
Timestamp:
Nov 8, 2013, 10:17:53 AM (10 years ago)
Author:
Eric Hazen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Hardware_Programming_in_Windows

    v1 v1  
     1Low-level programming (i.e. controlling parallel and
     2serial ports) can be tricky in Windows (expecially
     3for someone used to doing it under Linux).
     4Fortunately the
     5[http://www.cygwin.com/ cygwin]
     6this easy to do in a unix-similar way.
     7
     8=== Serial Port Programming ===
     9
     10Cygwin is
     11[http://en.wikipedia.org/wiki/POSIX POSIX]
     12-compatible enough that programs which
     13access the serial port in a POSIX way
     14will work without modification.
     15
     16Here is an example:
     17[http://joule.bu.edu/~hazen/edf_tech/sio_example.zip sio_example.zip]
     18library developed for a specific project, but it should give you
     19an idea of what is needed for basic port operations.
     20
     21=== Parallel Port Programming ===
     22
     23''''Cygwin and PortTalk DLL'''
     24
     25Use Cygwin and the
     26[http://www.beyondlogic.org/porttalk/porttalk.htm
     27porttalk driver]
     28from
     29[http://www.beyondlogic.org/ beyondlogic.org]
     30
     31I have tested version 2.2 of the porttalk driver on my Thinkpad T43 running WinXP
     32and it works.
     33
     34''''inpout32.dll from Logix4u'''
     35
     36Another option is the inpout32.dll library from [http://logix4u.net/ logix4u.net]
     37This comes with a VB example which works out of the box with Visual Basic Express 2005
     38(free).  ''''NOTE:''' the project must be located on a local hard drive, not a network
     39share, or you will get a security exception from the .NET framework.
     40