|
||||||||||||||||||||||||||||||||||||||||||
Interfacing the Serial / RS232 Port 4.1. Introduction The Serial Port is harder to interface than the Parallel Port. In most cases, any device you connect to the serial port will need the serial transmission converted back to parallel so that it can be used. This can be done using a UART. On the software side of things, there are many more registers that you have to attend to than on a Standard Parallel Port. (SPP) So what are the advantages of using serial data transfer rather than parallel? 1. Serial Cables can be longer than Parallel cables.
The serial port transmits a '1' as -3 to -25 volts and a '0' as +3 to
+25 volts where as a parallel port transmits a '0' as 0v and a '1' as
5v. Therefore the serial port can have a maximum swing of 50V compared
to the parallel port which has a maximum swing of 5 Volts. Therefore
cable loss is not going to be as much of a problem for serial cables
than they are for parallel. Devices which use serial cables for their communication are split into two categories. These are DCE (Data Communications Equipment) and DTE (Data Terminal Equipment.) Data Communications Equipment are devices such as your modem, TA adapter, plotter etc while Data Terminal Equipment is your Computer or Terminal. The electrical specifications of the serial port is contained in the EIA (Electronics Industry Association) RS232C standard. It states many parameters such as - 1. A "Space" (logic 0) will be between +3
and +25 Volts. Above is no where near a complete list of the EIA standard. Line Capacitance, Maximum Baud Rates etc are also included. For more information please consult the EIA RS232-C standard. It is interesting to note however, that the RS232C standard specifies a maximum baud rate of 20,000 BPS!, which is rather slow by today's standards. A new standard, RS-232D has been recently released. Serial Ports come in two "sizes", There are the D-Type 25 pin connector and the D-Type 9 pin connector both of which are male on the back of the PC, thus you will require a female connector on your device. Below is a table of pin connections for the 9 pin and 25 pin D-Type connectors. Serial Pinouts (D25 and D9 Connectors)
|
Free Software Lesson 1 Lesson
4
|
|||||||||||||||||||||||||||||||||||||||||