MODEL PCI-ICM422(485)/2(4) USER MANUAL FILE: MPCI-ICM4S.F1d...
Page 2
Notice The information in this document is provided for reference only. Portwell does not assume any liability arising out of the application or use of the information or products described herein. This document may contain or reference information and products protected by copyrights or patents and does not convey any license under the patent rights of Portwell, nor the rights of others.
Page 3
Under this Warranty, liability of Portwell is limited to replacing, repairing or issuing credit (at Portwell discretion) for any products which are proved to be defective during the warranty period. In no case is Portwell liable for consequential or special damage arriving from use or misuse of our product. The customer is responsible for all charges caused by modifications or additions to Portwell equipment not approved in writing by Portwell or, if in Portwell opinion the equipment has been subjected to abnormal use.
Chapter 1: Introduction These cards provide effective asynchronous serial communications in RS422 and RS485 networks on long communications lines in noisy environments. The cards feature independent serial ports and use type 16550 buffered UARTs. The data lines are opto-isolated from the computer and from each other to assure communication through large common mode noise.
Page 6
Communication Mode The 422 models support Full-Duplex and Half-Duplex communications with a 4-wire cable connection. 485 models support Half-Duplex communications with a 2-wire cable connection. Half- Duplex allows traffic to travel in both directions, but only one way at a time. RS485 communications commonly use the Half-Duplex mode since they share only a single pair of wires and installation cost is reduced.
Chapter 2: Installation A printed Quick-Start Guide (QSG) is packed with the card for your convenience. If you’ve already performed the steps from the QSG, you may find this chapter to be redundant and may skip forward to begin developing your application.
Hardware Installation Make sure to set switches and jumpers from either the Option Selection section of this manual or from the suggestions of SETUP.EXE. Do not install card into the computer until the software has been fully installed. Turn OFF computer power AND unplug AC power from the system. Remove the computer cover.
Chapter 3: Option Selection To help you locate the jumpers described in this section, refer to the Option Selection Map at the end of this chapter. Operation is determined by jumper installation as described in the following paragraphs. Tx+/R x+ COM422LD 0.1 F Tx-/R x-...
Chapter 4: Address Selection The cards use four separate address spaces. COM A occupies 16 consecutive address locations and COM B, COM C, and COM D each occupy eight consecutive register locations. The two-port versions of these cards do not have ports COM C and COM D. PCI architecture is Plug-and-Play.
Chapter 5: Programming There are sample programs provided with the card in C, Pascal, QuickBASIC, and several Windows languages. DOS samples are located in the DOS directory and Windows samples are located in the WIN32 directory. Initialization Initializing the chip requires knowledge of the UART's register set. The first step is to set the baud rate divisor.
Page 16
The second initializing step is to set the Line Control Register at Base Address +3. This register defines word length, stop bits, parity, and the DLAB. Bits 0 and 1 control word length and allow word lengths from 5 to 8 bits. Bit settings are extracted by subtracting 5 from the desired word length.
Page 17
Transmission RS485 transmission is simple to implement. The AUTO feature of the 422/485 cards automatically enables the transmitter when data are ready to send. No software enabling is required. The following C code fragment demonstrates this process: while(data[i]); /*While there is data to send*/ while(!(inportb(BASEADDR +5)&0x20));...
Chapter 6: Connector Pin Assignments A breakout cable is delivered with each card. The cable mates with a 37-pin connector on the card mounting bracket and, at the other ends of the cable, the popular 9-pin D sub-miniature male connector is used to interface with your communication lines. Those connectors are equipped with 4- 40 threaded standoffs (female screw lock) to provide strain relief.
Appendix A: Application Considerations Introduction Working with RS422 and RS485 devices is not much different from working with standard RS232 serial devices and these two standards overcome deficiencies in the RS232 standard. First, the cable length between two RS232 devices must be short; less than 50 feet at 9600 baud. Second, many RS232 errors are the result of noise induced on the cables.
A maximum common mode voltage rating of +7V provides good noise immunity from voltages induced on the twisted pair lines. The signal ground line connection is necessary in order to keep the common mode voltage within that range. The circuit may operate without the ground connection but may not be reliable.
Figure A-1: Typical RS485 Two-Wire Multidrop Network RS485 Four-Wire Multidrop Network An RS485 network can also be connected in a four-wire mode. In a four-wire network it's necessary that one node be a master node and all others be slaves. The network is connected so that the master communicates to all slaves and all slaves communicate only with the master.
If you experience any problems with this manual or just want to give us some feedback, please email us at: tech@portwell.com. Please detail any errors you find and include your mailing address so that we can send you any manual updates.
Need help?
Do you have a question about the PCI-ICM422/2 and is the answer not in the manual?
Questions and answers