background image

Appendix C

Serial Port Information

PCI Serial for Windows 95

C-6

©

 National Instruments Corporation

Figure C-4 shows a transmission line using bias resistors.

Figure C-4.  Transmission Line Using Bias Resistors

Rather than using two 620 

 resistors at one node, you can also increase 

the value of the resistors and put them at every node. For instance, if there 
are eight nodes in a system, you can use 4.7 k

 resistors at each node to 

effectively achieve the same result.

DTE vs. DCE

Data Terminal Equipment (DTE) and Data Communications Equipment 
(DCE) were the terms used in the RS-232 specification for the types of 
equipment on either end of a serial connection. (A DCE is called Data 
Circuit-Terminating Equipment in Revision D of the RS-232 specification.) 
In general, DTE and DCE refer to computer equipment and modems, 
respectively. Because the RS-232 specification mainly involves connecting 
a DTE directly to a DCE and vice versa, the pinouts are defined so that 
cabling is simple. That is, a cable connected a computer to a modem by 
wiring pin 1 to pin 1, pin 2 to pin 2, and so on. This method is commonly 
known as straight-through cabling. 

620 

Bias Resistor

+5

A

Tx

B

620 

Bias Resistor

100 

Termination Resistor

Summary of Contents for PCI-232/2

Page 1: ...Serial Getting Started with Your PCI Serial Hardware and Software for Windows 95 PCI Serial for Windows 95 December 1997 Edition Part Number 321824A 01...

Page 2: ...3336 Canada Ontario 905 785 0085 Canada Qu bec 514 694 8521 Denmark 45 76 26 00 Finland 09 725 725 11 France 01 48 14 24 24 Germany 089 741 31 30 Hong Kong 2645 3186 Israel 03 6120092 Italy 02 413091...

Page 3: ...PRODUCTS OR INCIDENTAL OR CONSEQUENTIAL DAMAGES EVEN IF ADVISED OF THE POSSIBILITY THEREOF This limitation of the liability of National Instruments will apply regardless of the form of action whether...

Page 4: ...ications This Class A digital apparatus meets all requirements of the Canadian Interference Causing Equipment Regulations Cet appareil num rique de la classe A respecte toutes les exigences du R gleme...

Page 5: ...ables to test this device and provides them for sale to the user The use of inferior or nonshielded interface cables could void the user s authority to operate the equipment under the FCC rules If nec...

Page 6: ...al Programming Tools 1 4 Using the Serial Hardware with Other National Instruments Products 1 4 Chapter 2 Installation and Verification Install the NI Serial Software 2 1 Install the PCI Serial Hardwa...

Page 7: ...de 4 2 Setting the Transceiver Mode with DeviceIoControl 4 3 General Programming Requirements 4 4 Other Programming Points 4 4 Appendix A Specifications Hardware Specifications A 1 Software Specificat...

Page 8: ...2 6 10 Position Modular Jack Pin Locations 2 8 Figure 2 7 DB 25 Connector Pin Locations 2 9 Figure 2 8 Connecting the Cables to Your Four Port PCI Serial Board 2 10 Figure 3 1 Port Settings Tab 3 2 F...

Page 9: ...Bytes 4 3 Table 4 3 DeviceIoControl Function Input Values 4 3 Table A 1 Physical Characteristics of the Two Port PCI Serial Boards A 1 Table A 2 Physical Characteristics of the Four Port PCI Serial Bo...

Page 10: ...onfiguration contains instructions to help you view or change the communication port settings Chapter 4 Using Your Serial Hardware describes how to set the hardware transceiver control mode for your R...

Page 11: ...items parameters dialog boxes dialog box buttons or options icons windows Windows 95 tabs or LEDs bold italic Bold italic text denotes an activity objective note caution or warning italic Italic text...

Page 12: ...tal Multipoint Systems Microsoft Win32 Software Developer Kit Online Documentation for Win32 Overviews Win32 Reference and Programmer s Guide to Windows 95 Microsoft Corporation NS16550AF Universal As...

Page 13: ...escribes the serial hardware and the NI Serial software How to Use This Manual Yes No Chapter 2 Chapter 3 Write Application Program Passes Gather What You Need to Get Started Chapter 1 Install the NI...

Page 14: ...pin to 9 pin null modem cable RS 232 9 pin to 25 pin null modem cable Serial Hardware Overview The serial hardware gives you a variety of solutions for serial communications The PCI 232 board works wi...

Page 15: ...y gives you the convenience of switchless configuration and installation Refer to Appendix A Specifications for more information about the serial hardware specifications and operating conditions NI Se...

Page 16: ...instrument drivers which are modular source code programs that handle the communication with your instrument so that you do not have to learn the programming details LabVIEW is a complete programming...

Page 17: ...les Install the NI Serial Software Before installing the hardware complete the following steps to install the NI Serial software for Windows 95 1 Select Start Settings Control Panel 2 Double click on...

Page 18: ...ure 2 2 NI Serial Setup Screen The setup wizard guides you through the necessary steps to install the NI Serial software You may go back and change values where appropriate by clicking on the Back You...

Page 19: ...endix C Serial Port Information 1 Turn off your computer Keep the computer plugged in so that it remains grounded while you install the PCI serial board 2 Remove the top or side cover of the computer...

Page 20: ...5 typically issues port names to the ports on NI serial hardware starting with COM5 COM6 and so on If not enough resources are available to assign to all the NI serial ports the port with the higher C...

Page 21: ...ed correctly the Resources page shows which resources are assigned to your serial ports When you have finished verifying the hardware resources proceed to the next section Determine Which Physical Por...

Page 22: ...ostics item under Start Programs NI Serial Software for Windows 95 If the diagnostic test completes with no failures your serial hardware and software are installed properly If it fails refer to Appen...

Page 23: ...found on the two port PCI serial board the 10 position modular jack to DB 9 cable and the cable adapter for the eight port board Figure 2 5 DB 9 Connector Pin Locations Table 2 1 DB 9 Pin Description...

Page 24: ...ular jack which is found on the four port PCI serial board Figure 2 6 10 Position Modular Jack Pin Locations Table 2 2 10 Position Modular Jack Pin Descriptions 10 Position Modular Jack 232 Signal 485...

Page 25: ...or which is on the optional 10 position modular jack to DB 25 cable Figure 2 7 DB 25 Connector Pin Locations Table 2 3 DB 25 Pin Descriptions DB 25 Pin 232 Signal 485 Signal Pin 2 TXD RTS HSO Pin 3 RX...

Page 26: ...485 data acquisition device to a port on your PCI 485 using half duplex communication you need a single twisted pair of wires At the PCI 485 you should connect the TXD and RXD signals pins 8 and 4 on...

Page 27: ...pe button at the top of the page 3 Double click the Ports COM LPT icon 4 Double click on the name of the port you want to configure You can now view or change information about your serial port in the...

Page 28: ...out saving changes Communication Port Settings On the Port Settings tab you can change any of the settings by clicking on the arrow button to the right of the setting When you click on the arrow butto...

Page 29: ...tted byte Stop Bits Stop bits is the number of terminating bits on the end of each transmitted serial byte Flow Control Flow control is a method for temporarily halting the stream of serial bytes to p...

Page 30: ...nced button on the Port Settings tab FIFO buffers are present on the 16550 compatible UARTs one for the transmitter and one for the receiver Consider the following points when selecting FIFO settings...

Page 31: ...odes Note Signal names with an overscore such as indicate that the signal is active low Four Wire Mode Use the four wire mode for most full duplex systems In this mode the transmitter and receiver are...

Page 32: ...r software By connecting the transmitter to the Transmit Ready line the hardware enables the transmitter for each byte to be transmitted Also the hardware disables the receiver whenever the transmitte...

Page 33: ...lete the following steps 1 Add the following lines to your source code include winioctl h define IOCTL_SERIAL_SET_TRANSCEIVER_MODE CTL_CODE FILE_DEVICE_SERIAL_PORT 37 METHOD_BUFFERED FILE_ANY_ACCESS 2...

Page 34: ...ports are used like any other Windows 95 communications COM port Windows 95 has standard communication functions for use within either 16 bit Win16 applications or 32 bit Win32 applications Other Pro...

Page 35: ...h the recommended operating conditions Hardware Specifications Table A 1 Physical Characteristics of the Two Port PCI Serial Boards Characteristic Specification Dimensions 10 67 by 14 20 cm 4 2 by 5 6...

Page 36: ...DC 40 mA Typical 400 mA Maximum The four port PCI serial board requires a cable to convert the 10 position modular jack to either DB 9 or DB 25 connectors Table A 3 Physical Characteristics of the Eig...

Page 37: ...re Relative Humidity 0 to 40 C 10 to 90 noncondensing Storage Environment Temperature Relative Humidity 20 to 70 C 5 to 90 noncondensing EMI PCI Serial FCC Class A Verified Table A 5 Software Characte...

Page 38: ...d dialog box To fix this problem follow these steps 1 Select Start Settings Control Panel 2 Double click on the System icon 3 Select the Device Manager page 4 Click the View devices by type button 5 D...

Page 39: ...gure B 1 Port Selected in Device Manager 7 Click the Remove button and click on OK to confirm the removal of the serial hardware information 8 Repeat steps 6 and 7 until all serial board entries are r...

Page 40: ...in line drivers and cabling you can often increase the actual performance of the bus past the limitations on speed and distance recommended in the specification RS 422 RS 422 as specified in the EIA R...

Page 41: ...e of using multiple transmitters on the same line RS 485 defines the electrical characteristics necessary to ensure adequate signal voltages under maximum load short circuit protection and the ability...

Page 42: ...he devices use a separate wire or pair of wires for simultaneous transmission in each direction Thus there is no need to switch between transmitting and receiving In a differential serial bus for exam...

Page 43: ...Termination Because each differential pair of wires is a transmission line you must properly terminate the line to prevent reflections A common method of terminating a two wire multidrop RS 485 networ...

Page 44: ...o nodes are transmitting on it This indeterminate state can cause the receivers to receive invalid data bits from noise picked up on the cable To prevent these data bits you should force the transmiss...

Page 45: ...TE and Data Communications Equipment DCE were the terms used in the RS 232 specification for the types of equipment on either end of a serial connection A DCE is called Data Circuit Terminating Equipm...

Page 46: ...the other transmitter and one receiver is connected to the other receiver In this setup no transmissions can occur Thus these applications must use a cabling scheme that connects the transmitter on on...

Page 47: ...rmation Before physically removing the serial hardware from the computer you must remove the hardware information from the Windows 95 Device Manager Follow these steps to uninstall the hardware 1 Doub...

Page 48: ...tion 5 Select the National Instruments interface to remove from the list of interfaces as shown in Figure D 1 Figure D 1 Selecting an Interface to Uninstall 6 Click the Remove button 7 In the Confirm...

Page 49: ...cribed in the previous section You do not need to shut down Windows 95 before uninstalling the software Complete the following steps to remove the NI Serial software 1 Select Start Settings Control Pa...

Page 50: ...e uninstall program runs and removes all folders programs VxDs DLLs and registry entries associated with the NI Serial software Figure D 3 shows the results of a successful uninstallation Figure D 3 U...

Page 51: ...ew Resources tab 6 Select the Interrupt Request IRQ button By scanning through the list of interrupt request settings you can determine which devices are using which interrupt request levels 7 When yo...

Page 52: ...es not allow you to change settings select the configuration that gives you a conflict free base I O address and interrupt level from the Setting based on list box 7 Click on OK to close the Device Ma...

Page 53: ...Resolving Resource Conflicts with Legacy Boards Resolving Resource Conflicts with Legacy Boards Resource conflicts typically occur when your system contains legacy boards that use resources that have...

Page 54: ...To change the base address refer to the Selecting Conflict Free Resources section earlier in this appendix How do I change the resources assigned to the serial interface Because the serial interfaces...

Page 55: ...as multi function adapters in the Device Manager Each port is a child device listed under Ports COM LPT Windows 95 does not allow multi function child devices to be removed directly within the Device...

Page 56: ...5 and 115 2 KBaud for RS 232 You can use the Win32 function SetCommState and pass the actual value of the baud rate in the BaudRate field of the DCB structure What information should I have before I c...

Page 57: ...does not answer your questions we offer fax and telephone support through our technical support centers which are staffed by applications engineers Electronic Services Bulletin Board Support National...

Page 58: ...s office in your country contact the source from which you purchased your software to obtain support Country Telephone Fax Australia 03 9879 5166 03 9879 6277 Austria 0662 45 79 90 0 0662 45 79 90 19...

Page 59: ...___ Instruments used _________________________________________________________________ _______________________________________________________________________________ National Instruments hardware pro...

Page 60: ...vision Number on Distribution Disk _____________________________________ Hardware Settings Base I O Interrupt Address Level Com1 ________ _________ Com 2 ________ _________ Com 3 ________ _________ Co...

Page 61: ...___________________________________________________ Base I O address of other boards ____________________________________________________ DMA channels of other boards _________________________________...

Page 62: ...__________________________________ _______________________________________________________________________________ _______________________________________________________________________________ _____...

Page 63: ...d C Celsius COM Computer Output Microform DB xx subminiature D connector where xx is the number of pins DCE Data Communications Equipment or Data Circuit Terminating Equipment DMA direct memory access...

Page 64: ...hes I O input output IRQ interrupt request ISA Industry Standard Architecture m meters MB megabytes of memory PC personal computer RAM random access memory RX Receive s seconds TX Transmit Transmit Re...

Reviews: