| How To Build Parallel Port Prototypes | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| By Gabriel Torres on October 13, 2005 | Page 2 of 7 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Understanding The Parallel Port On the PC the parallel port uses a 25-pin connector (called DB-25, 25-pin D-sub or 25-pin D-shell), as you can see on Figure 2. On printers, however, a different kind of connector is used, called Centronics, which has 36 pins.
Besides the eight data bits, there are more signals available on the parallel port. On the table below we list all the basic parallel port signals and their function, as well as their location on both standard 25-pin and Centronics connector. The I/O column indicates if the signal is input (I) or output (O). Input means that the signal must come from the device to the parallel port (i.e. the signal must be provided by your prototype); output means that the signal comes from the parallel port.
The parallel port uses three I/O addresses: data (378h), status (379h) and control (37Ah). If you want to send data to the parallel port and get this data outside the computer, just write this data to the parallel port data address. For example, if we want to turn on all our LEDs, all we need to do is to send the value 255 (which is the decimal equivalent for 11111111, i.e. all data bits set to “on”) on the address 378h. Of course we will explain more about this and also the role of the status and control addresses. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Originally at http://www.hardwaresecrets.com/article/233/2 | Pages (7): 1 2 3 4 5 6 7 » | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
© 2004-8, Hardware Secrets, LLC. All Rights Reserved. Total or partial reproduction of the contents of this site, as well as that of the texts available for downloading, be this in the electronic media, in print, or any other form of distribution, is expressly forbidden. Those who do not comply with these copyright laws will be indicted and punished according to the International Copyrights Law. We do not take responsibility for material damage of any kind caused by the use of information contained in Hardware Secrets. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||