| How To Build Parallel Port Prototypes |
|
|
| $ Check REAL-TIME pricing for LaCie USB 2.0 PCI Card (107435) Serial Adapter $ |
|
|
|
|
|
|
|
| Programming |
Back in the old days of DOS programming for the parallel port was pretty easy: it was just a matter of sending to the parallel port I/O address (378h) the value you wanted to be there. On modern versions of Windows, however, this is not possible, because the operating system doesn’t allow direct calls to the PC hardware, including the parallel port.
So, the easiest way to send data to the parallel port is to download a finished program, like Relaistimer. This program is really simple but will allow you to explore all the basic parallel port capabilities.
 click to enlarge Figure 8: RelaisTimer.
On this program you can turn each bit on or off by pressing keys F1 thru F8, if you want to turn all on just click on “X”, if you want to turn all off just click on “O”. You can also turn on or off individual LEDs by click with the mouse on correspondent LED on the LED diagram on the top of the program.
You can also program when each LED will be turned on or off, allowing you to create lighting patterns or use the program as a timer, since it allows you to turn a LED or a group of LEDs on or off at a specific time of the day. Imagine that instead of a LED you have a light or a home appliance: you will be able to make your computer turn it on or off at a specific time even if you are not home. Really awesome, isn’t it?
If you are a programmer and want to write more advanced programs than RelaisTimer, you should go to http://www.logix4u.net/inpout32.htm and read how to allow your favorite programming language (C, Pascal, VB, etc) to write directly to the parallel port. |
| Pages (7): « 1 2 3 4 [5] 6 7 » |
| Print Version | Send to Friend |
|
Bookmark Article
| Comments (1)
|
|
| Recommended Deals |  | CMS (USB2-CONT) Serial Adapter
|  | Eidos Interactive Micro Innovations (USB650A) Serial Adapter
|  | Supermicro (SYS-5035G-TB) (SYS5035GTB) Server
|  | IBM eServer™ xSeries® 225 (86495ax)
|
|
Latest News |
August 27, 2008 - 4:08 AM PST |
August 27, 2008 - 3:47 AM PST |
August 26, 2008 - 8:15 AM PST |
August 25, 2008 - 8:52 AM PST |
August 22, 2008 - 9:19 AM PST |
August 21, 2008 - 10:00 AM PST |
August 20, 2008 - 12:21 PM PST |
August 19, 2008 - 8:45 AM PST |
August 18, 2008 - 8:08 AM PST |
August 18, 2008 - 7:30 AM PST |
| .:: More News ::. |
|
Latest Content |
|
|
| Our Most Popular Articles |
764,819 views
|
475,118 views
|
421,829 views
|
412,065 views
|
406,944 views
|
378,954 views
|
343,065 views
|
328,378 views
|
278,884 views
|
268,953 views
|
|
| Latest Threads in Our Forums |
by Grimreaper |
by djprov |
by Gabriel Torres |
by Skye |
by Hardware Secrets Team |
by Hardware Secrets Team |
by andybarrel |
by andybarrel |
by zahadum |
by Felix |
| .:: Visit Our Forums ::. |
|
|