Parallel to Serial and Serial to Parallel Converter CE Model 232SPS2 Documentation Number 232SPS2-0812 This product designed and manufactured in Ottawa, Illinois USA of domestic and imported parts by International Headquarters B&B Electronics Mfg. Co. Inc. 707 Dayton Road -- P.O. Box 1040 -- Ottawa, IL 61350 USA Phone (815) 433-5100 -- General Fax (815) 433-5105 Home Page: www.bb-elec.com Sales e-mail: orders@bb-elec.com -- Fax (815) 433-5109 Technical Support e-mail: support@bb-elec.
Table of Contents CHAPTER 1: INTRODUCTION ........................................................ 1 PACKING LIST ................................................................................. 1 SPECIFICATIONS ............................................................................ 2 CHAPTER 2: PARALLEL TO SERIAL INSTALLATION ............... 3 CONNECTING THE 232SPS2 TO YOUR PARALLEL PORT ........ 3 CONNECTING THE 232SPS2 TO YOUR SERIAL PRINTER ........ 3 CHAPTER 3: SERIAL TO PARALLEL INSTALLATION ...
ii Table of Contents 232SPS2-0812 Manual B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104
CHAPTER 1: INTRODUCTION The 232SPS2 is a bi-directional parallel to serial converter. The 232SPS2 allows you to convert data from your parallel port to a serial communication format or to convert data from your serial port to a parallel communication format. Standard baud rates from 1200 to 115.2k with a variety of data formats can be used to match the user's serial port requirements. Both kinds of flow control, XON/XOFF and hardware handshaking, are supported by this unit.
SPECIFICATIONS Size: 3.8L x 2.4W x 0.9H in Buffer Size: 96 bytes Data Formats: Baud Rates: 1200 to 115.2k baud Data Bits: 7 or 8 Parity: Even, Odd, and None Stop Bits: 1 NOTE: 7 data bits, no parity is not supported. Handshaking: XON/XOFF, DTR Power Requirement: 7-18 Volts DC @ 2 ma. (This value does not include the power that is provided by the serial port and the power that is consumed by external devices.
CHAPTER 2: PARALLEL TO SERIAL INSTALLATION When converting data from your parallel port to a serial communication format, position #8 of the dipswitch must be "ON". The other seven positions should be set to match the data format of your serial printer. Refer to Table 5.1 for dipswitch setting specifications. CONNECTING THE 232SPS2 TO YOUR PARALLEL PORT The 232SPS2 uses most of the available pins on the parallel port.
4 Chapter 2: Parallel to Serial Installation 232SPS2-0812Manual B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104
CHAPTER 3: SERIAL TO PARALLEL INSTALLATION When converting data from your serial port to a parallel communication format, position #8 of the dipswitch must be "OFF". The other seven positions should be set to match the data format of your computer's serial port. Refer to Table 5.1 for dipswitch setting specifications. CONNECTING THE 232SPS2 TO YOUR PARALLEL PRINTER The 232SPS2 has a DB-25 female connector on its parallel port. Most parallel printers use a Centronics 36-pin connector.
6 Chapter 3: Serial to Parallel Installation 232SPS2-0812Manual B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104
CHAPTER 4: POWER CONNECTIONS The unit may be port-powered using DTR and RTS on the serial port. If the 232SPS2 cannot be powered using the handshake lines, it may be powered externally using +7 to +18 volts DC at 2 milliamps. If you are using an external supply, simply plug a 2.5 mm plug from an appropriate DC source into the power jack on the side of the 232SPS2 module. Power supplies are available through B&B. (Model 232PS is recommended.
8 Chapter 4: Power Connections 232SPS2-0812 Manual B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104
CHAPTER 5: SELECTING DIPSWITCH SETTINGS The 232SPS2 is set up using an eight-position dipswitch. In order for the 232SPS2 to function properly, it must be set up to match your system's requirements. The following parameters on the 232SPS2 are set on the dipswitch: converter direction, baud rate, flow control, number of data bits, and the type of parity. Each of the parameters are briefly described below. For specific parameter settings, refer to Table 5.1.
Table 5.1 Setting 1200 Baud 2400 Baud 4800 Baud 9600 Baud 19.2K Baud 38.4 Baud 57.6K Baud 115.2K Baud XON/XOFF DTR control 8 Data bits 7 Data bits No parity Parity enable Even parity Odd parity Serial to Par. Par.
APPENDIX A: PARALLEL PORT CONNECTIONS The parallel port connections for the parallel to serial and serial to parallel mode are shown in Table A-1, and Table A-2, respectively. The connections required are the same for both modes of handshaking. The error lines on the parallel port are forced to the "no error" states. If the printer is off-line, out of paper, etc., the 232SPS2 will force the busy line (Pin #11) on the parallel port high (logic "1") when in parallel to serial mode.
DB-25 Pin # 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18-25 Table A-2 Serial to Parallel Mode Signal Name 232SPS2 Direction Strobe Output Data bit #0 Output Data bit #1 Output Data bit #2 Output Data bit #3 Output Data bit #4 Output Data bit #5 Output Data bit #6 Output Data bit #7 Output Acknowledge Input Busy Input PE Input (NU) SLCT Input (NU) Auto Feed “1” Output Error Input (NU) INIT “1” Output SLCT IN “1” Output GND 232SPS2-0812 Manual Appendix A: Parallel Port Connections B&B Electronics -- PO Box
APPENDIX B: SERIAL PORT CONNECTIONS The next four sections will cover the required serial port connections on the 232SPS2. Each section will list the required connections and the optional connections that some systems may require. Connections to the serial port of the 232SPS2 are made on a female DB-25 connector. SERIAL TO PARALLEL MODE, HARDWARE HANDSHAKING The serial port of the 232SPS2 module is wired as a DCE device. For proper operation the following connections must be present: 1.
SERIAL TO PARALLEL MODE, SOFTWARE HANDSHAKING For proper operation the following connections must be present: 1. Transmit Data (TD) from the host (DTE) must be connected to Pin #2 on the 232SPS2 module. 2. Receive Data (RD) from the host (DTE) must be connected to Pin #3 on the 232SPS2 module. 3. Signal Ground (SG) from the host must be connected to Pin #7 on the 232SPS2 module. If port powering the 232SPS2, these connections are recommended: 4.
* When using XON/XOFF control, this connection may not be required. TABLE B-2 DB-9 Serial Port Connections (S to P) 232SPS2 Serial Port (DCE) (DTE) DB-9S Pin# Signal Name Direction DB-25P Pin# 1 Data Carrier Detect <----------8** 2 Receive Data <----------3 3 Transmit Data -----------> 2 4 Data Terminal -----------> 20 Ready 5 Signal Ground 7 6 Data Set Ready <----------6** 7 Request to Send 4 8 Clear to Send <----------5** ** Some systems may require this connection.
PARALLEL TO SERIAL MODE, HARDWARE HANDSHAKING The serial port of the 232SPS2 module is wired as a DCE device. For proper operation the following connections must be present: 1. Transmit Data (TD) from the printer (DTE) must be connected to Pin #2 on the 232SPS2 module. 2. Data Set Ready (DSR) from the printer must be connected to Pin #6 on the 232SPS2 module. 3. Signal Ground (SG) from the printer must be connected to Pin #7 on the 232SPS2 module.
6. Data Set Ready (DSR) from the printer must be connected to Pin #6 on the 232SPS2 module. 7. Clear To Send (CTS) from the printer should be connected to Pin #5 on the 232SPS2 module. 8. Data Carrier Detect (DCD) from the printer should be connected to Pin #8 on the 232SPS2 module. NOTE: IBM PC’s (or compatible) serial ports and serial printers are both DTE devices. Therefore, a null modem cable (like a serial printer cable!) must be used when connecting a PC’s serial port to a printer.
TABLE B-4 DB-9 Serial Port Connections (P to S) Serial Port 232SPS2 (DTE) (DCE) DB-9S Signal Name Direction DB-25P Pin # Pin # 1 Data Carrier Detect <----------8** 2 Receive Data <----------3 3 Transmit Data -----------> 2 4 Data Terminal -----------> 20 Ready 5 Signal Ground 7 6 Data Set Ready <----------6** 7 Request to Send 4 8 Clear to Send <----------5** * When using XON/XOFF control, this connection may not be required. ** Some printers may require this connection.
APPENDIX C: SOFTWARE HINTS PARALLEL TO SERIAL MODE In parallel to serial mode, data from the computer is output through the parallel port. The 232SPS2 will send the data to the serial printer. The following command can be entered at the DOS prompt to send a data out the parallel port: PRINT filename This command will output filename out the parallel port. The first time that this command is executed, you will be prompted for the PRN device (LPT1, LPT2, etc. ).
MODE COM1: 96,n,8,1,p If any of the parameters are omitted, the most recent setting will be used. It is recommended that the "p" option be used for the retry option. If the "p" is not used, a device busy error may occur. To send data out the serial port, the following command can be entered at the DOS prompt: TYPE filename > COM1 This command will send filename out COM1.
APPENDIX D: TROUBLESHOOTING Symptom Possible problem Solution No data is being printed. Printer is off-line Printer is out of paper Improper dipswitch settings Improper mode selected Wrong type of flow control Serial port settings do not match Put printer on-line Fill printer with paper Check settings (Table 5.
D-2 Appendix D: Troubleshooting 232SPS2-0812 Manual B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104
APPENDIX E: Declaration of Conformity DECLARATION OF CONFORMITY Manufacturer’s Name: B&B Electronics Manufacturing Company Manufacturer’s Address: P.O. Box 1040 707 Dayton Road Ottawa, IL 61350 USA Model Number: 232SPS2 Description: Parallel to Serial Converter Type: Light industrial ITE equipment Application of Council Directive: 89/336/EEC Standards: EN 55022 EN 61000-6-1 EN 61000 (-4-2, -4-3, -4-4, -4-5, -4-6, -4-8, -4-11) William H.
E-2 Appendix E: Declaration of Conformity 232SPS2-0812 Manual B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104