Download Print this page
Advantech PCI-1601 User Manual

Advantech PCI-1601 User Manual

Pci comm card series

Advertisement

Quick Links

This documentation and the software included with this product are
copyrighted 2001 by Advantech Co., Ltd. All rights are reserved.
Advantech Co., Ltd. reserves the right to make improvements to the
products described in this manual at any time without notice.
No part of this manual or software may be reproduced, copied,
translated or transmitted, in any form or by any means without the
prior written permission of Advantech Co., Ltd. Information provided
in this manual is intended to be accurate and reliable. However,
Advantech Co., Ltd. assumes no responsibility for its use, nor for any
infringements of rights of third parties which may result from its use.
PC-LabCard is a trademark of Advantech Co., Ltd. IBM, PC and
PC/XT/AT are trademarks of International Business Machines
Corporation. MS-DOS, MASM, QuickBASIC, Microsoft C and MS-
PASCAL are trademarks of Microsoft Corporation. Intel is a trademark
of Intel Corporation. Turbo C and Turbo PASCAL are trademarks of
Borland International.
2nd Edition
Printed in Taiwan
July 2001

Advertisement

loading
Need help?

Need help?

Do you have a question about the PCI-1601 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Advantech PCI-1601

  • Page 1 Advantech Co., Ltd. Information provided in this manual is intended to be accurate and reliable. However, Advantech Co., Ltd. assumes no responsibility for its use, nor for any infringements of rights of third parties which may result from its use.
  • Page 2 Default Settings ..............14 Card installation ..............15 RS-422/485 selection (for PCI-1601/1602/1612) ..16 Enable mode selection ............16 Terminator resistor setup (for PCI-1601/1602/1612) ..16 Overview ................18 For Windows 95/98 Driver Setup ........18 For Windows NT Driver Setup ......... 18 Windows 95/98 Driver Setup..........
  • Page 3 Messages on the Status Bar and Message Logo area ... 61 Status Bar messages ............61 Message Logo messages ..........61 Pin assignments ..............64 PCI-1601/1602 ..............64 RS-422 signal wiring ............64 RS-485 ................64 PCI-1610/1612 ..............65 PCI-1620 ................66 Wiring ...................
  • Page 4 RS-485 signal wiring ............71 Termination resistor setup..........72...
  • Page 5 Chapter 1 Introduction...
  • Page 6 SCSI, LAN, etc. Advantech serial communication cards leverages the " Plug and Play " capability defined in the PCI 2.1 bus specification. The board requires only one PCI slot within the personal computer and provides independent serial channels.
  • Page 7 • OS supported: Windows NT, Windows 95, Windows 98 • Optional surge protection • Optional isolation protection for RS-422/485 • Interrupt status register for increased performance • Space reserved for termination resistors • Automatic RS-485 data flow control • Bus Interface: PCI bus specification 2.1 compliant •...
  • Page 8 80 mA (+12 V) 270 mA (+5 V) 340 mA (+5 V) • Dimensions: 185 mm x 100 mm (for PCI-1612/1620) 123 mm x 92 mm (for PCI-1601/1602/1610) • Operating temperature: 0 ~ 65 C (referring to IEC 68-2-1, 2) •...
  • Page 9 PCI-1620B: 8-port RS-232 PCI Comm Card, w/surge protection PCI-1610A: 4-port RS-232 PCI Comm Card PCI-1610B: 4-port RS-232 PCI Comm Card, w/surge protection PCI-1612A: 4-port RS-232/422/485 PCI Comm Card PCI-1612B: 4-port RS-232/422/485 PCI Comm Card, w/surge protection PCI-1601 PCI-1602 PCI-1610 PCI-1612 PCI-1620 Series No.
  • Page 10 PCI Comm Card Series User's Manual...
  • Page 11 Chapter 2 Hardware Configuration...
  • Page 12 You should find the following items inside the shipping package (in addition to this manual): • PCI communication interface card • Advantech Automation Software • PCI communication card user's manual We carefully inspected the PCI communication card series mechani- cally and electrically before we shipped it. It should be free of marks and scratches and in perfect working order on receipt.
  • Page 13 PCI-1601 Silk Screen PCI-1601 Silk Screen PCI-1601 Silk Screen PCI-1601 Silk Screen PCI-1601 Silk Screen Chapter 2 Hardware Configuration...
  • Page 14 PCI-1602 Silk Screen PCI-1602 Silk Screen PCI-1602 Silk Screen PCI-1602 Silk Screen PCI-1602 Silk Screen PCI Comm Card Series User's Manual...
  • Page 15 PCI-1610 Silk Screen PCI-1610 Silk Screen PCI-1610 Silk Screen PCI-1610 Silk Screen PCI-1610 Silk Screen Chapter 2 Hardware Configuration...
  • Page 16 PCI-1612 Silk Screen PCI-1612 Silk Screen PCI-1612 Silk Screen PCI-1612 Silk Screen PCI-1612 Silk Screen PCI Comm Card Series User's Manual...
  • Page 17 PCI-1620 Silk Screen PCI-1620 Silk Screen PCI-1620 Silk Screen PCI-1620 Silk Screen PCI-1620 Silk Screen Chapter 2 Hardware Configuration...
  • Page 18 Closed 2-3 Closed 2-3 Closed 2-3 The board is shipped with default settings. If you need to change these settings, however, see the following sections. Otherwise, you can simply install the card. PCI-1601 PCI-1602 PCI-1612 RS-422/485 Mode RS-422 RS-422 RS-422...
  • Page 19 Warning! Turn off your PC’s power supply whenever you install or remove the PCI communication card or its cables. Static electricity can easily damage computer equipment. Ground yourself by touching the chassis of the computer (metal) before you touch any boards. See the static warning on page 6 1.
  • Page 20 You can set each port individually for either RS-422 (the default) or RS-485 operation. The figure below shows the jumper settings. See the "Jumper and Switch Locations" figure from page 7 to 11 for help to locate the jumpers. RS-422 (default) RS-485 You set the Enable mode using two- or four- position DIP switches, one for each port.
  • Page 21 Chapter 3 Driver Setup & Installation...
  • Page 22 To configure your PCI ICOM devices, refer to Section “Configure PCI ICOM Series Devices” • To remove the Device from your system, refer to Section “Remove Advantech PCI ICOM Series Devices” • To remove the driver, refer to Section “Steps for Complete Windows 95/98 Driver Uninstall”...
  • Page 23 Windows 95/98 supports up to 256 serial ports, from COM1 to COM256. Advantech PCI ICOM driver, however, will start to assign port numbers beginning from COM 5. In order to fully utilize Windows 95/98 advanced features such as multi-process and multi-...
  • Page 24 4. Click the Next button and the License Agreement Page appears. 5. Click the Next button and the Choose Destination Location page appears. PCI Comm Card Series User's Manual...
  • Page 25 6. Click Next to bring up the Select Program Folder dialog box. 7. The Driver Setup program will begin copying files to your system. 8. The Setup program will create the Advantech ICOM Tools program folder in the Start/Programs Menu.
  • Page 26 9. After the installation process is completed, just click Finish to close the driver setup program. 10. After you have finished the driver installation, you need to reboot your system for proper functioning of your card. PCI Comm Card Series User's Manual...
  • Page 27 1. On rebooting your system, Windows 95/98 will recognize your card devices and will search for the device driver for PCI UARTs automatically as shown in the following dialog box. 2. Choose “Search for the most Suitable Driver” radio button, and click Next.
  • Page 28 3. You don’t have to choose the location of the device driver program, since it is already installed on your system. Just click Next to proceed. 4. Windows 95/98 has found the driver location and is ready to install the driver. Click Next. PCI Comm Card Series User's Manual...
  • Page 29 5. You will be prompted to decide whether you want to install the Updated Driver. Accept the Updated Driver option and click Next. 6. The driver installation is complete. Click Finish. Chapter 3 Driver Setup & Installation...
  • Page 30 7. After the PCI UARTs device driver has been installed, Windows 95/98 will proceed to recognize the PCI Bridge device. Just repeat similar steps as above to install the device driver for PCI Bridge. PCI Comm Card Series User's Manual...
  • Page 31 8. After the PCI Bridge device driver is installed, a dialog box such as below will appear to indicate that Windows 95/98 has complet- ed the device driver installation of the hardwares. After you have installed your card, go to Control Panel/System/ Device Manager to look for the Device Name that is supposed to appear after you have installed the driver.
  • Page 32 COM Registry Clean Tool utility (by accessing Start/ Programs/Advantech PCI ICOM/COM Registry Clean Tool ) to remove all Advantech PCI ICOM series devices from your system. After driver uninstall is completed, you must restart your system to re-assign the communication port numbers.
  • Page 33 [DEV_0B] specifies the PCI slot in your system. PCI-1620 specifies the device model of Advantech PCI ICOM device. Port 1 specifies the port index for Advantech PCI ICOM device. RS-232 or RS-422/485 specifies the operating mode. Chapter 3 Driver Setup & Installation...
  • Page 34 PCI Comm Card Series User's Manual...
  • Page 35 If you want to configure FIFO Properties, select FIFOs tab. On the tab, you can see the relevant FIFO configurations. We recommend you to use the default settings. However, you are allowed to set the configu- rations manually according to your preferences. If you want to restore the default settings, just click the Default Setting button.
  • Page 36 3. Click the plus sign (+) on the right of the ADSPCIUART device category to expand it. As shown on the figure below, you can see Advantech PCI UARTs and Advantech PCI Bridge device names listed under the device category.
  • Page 37 4. Double-click the Advantech PCI UARTs device to evoke its Properties page, and then select the Resource tab on the Proper- ties page to look up or configure the current settings of the PCI UARTs device. 5. After you have made necessary changes or if you are just satisfied Chapter 3 Driver Setup &...
  • Page 38 OK to accept. If you want to cancel the configuration, just click Cancel. 6. Double-click the Advantech PCI Bridge device to evoke its Properties page, and then select the Resources tab on the Proper- ties page to look up or configure the current configuration of the PCI Bridge device to make sure there is no conflicting device.
  • Page 39 device category to expand it, and then double-click the specific communication port to evoke its Properties page. Select specific tabs for configuring specific settings. 9. Select the Settings tab on the Properties page of the communica tion port to examine the port settings. Chapter 3 Driver Setup &...
  • Page 40 [DEV_0B] specifies the PCI slot in your system. PCI-1620 specifies the device model of Advantech PCI ICOM device. Port 1 specifies the port index for Advantech PCI ICOM device. RS-232 specifies the operating mode. 10. Select the Data Rate tab to check up information about clock frequency, baud rate, etc.
  • Page 41 11. Select FIFOs tab to have a look at the FIFO properties. Note: The Default Setting button can recover all the FIFO settings to their default values. Chapter 3 Driver Setup & Installation...
  • Page 42 12. Select the Resource tab on the Properties page to look up the resource settings. Note:1. In Windows 95 there might appear a conflicting device, but it won’t do any harm. 2. The Input/Output Range information is helpful to recognize the communication port attached to the device.
  • Page 43 2. Select the Device Manager tab on the System Properties sheet. 3. Click the plus sign (+) on the right of the Ports (COM & LPT) device category to expand it. Select the specific “Advantech PCI communication port” you want to remove, and click the Remove button to remove the device you have selected.
  • Page 44 5. Click the plus sign (+) on the right of the ADSPCIUART device category to expand it, and select Advantech PCI UARTs or Advantech PCI Bridge you want to remove.
  • Page 45 Note: We recommend you to remove the original device before installing another model of Advantech PCI ICOM series device in the same PCI slot. Chapter 3 Driver Setup & Installation...
  • Page 46 1. Access Start/Program/Advantech PCI ICOM/COM Registry Clearn Tool. 2. A dialog box will appear to make sure that you want to remove all the Advantech PCI ICOM devices from your system. PCI Comm Card Series User's Manual...
  • Page 47 Windows NT supports up to 256 serial ports, from COM1 to COM256. Advantech PCI ICOM driver, however, will start to assign port numbers beginning from COM 5. In order to fully utilize Windows NT advanced features such as multi-process and multi- thread, we offer pure 32-bit Windows NT device drivers for the PCI- 1601/ 1602/ 1610/ 1612/ 1620 multiport cards.
  • Page 48 3. After the setup program is launched, you’ll see the following Setup Screen. 4. Click the Next button and the License Agreement page appears. 5. Click Yes to accept the terms as stated in the License Agreement. The Select Program Folder dialog box appears. PCI Comm Card Series User's Manual...
  • Page 49 6. Just click Next to accept the default installation folder, and the Start Copying Files dialog box appears. (Or you can specify the folder name yourself, and then click Next). On the dialog box you can survey your current installation settings. If you are satisfied with these current settings,, just click Yes to complete your driver installation.
  • Page 50 7. The Driver Setup Program will begin copying files to your system 8. The Setup program will create the Advantech ICOM Tools folder in the Start Menu. PCI Comm Card Series User's Manual...
  • Page 51 After you have properly installed the driver, please start the function of your hardware device by the following steps: 1. Go to Start/Programs/Advantech PCI Comm Tools/COM Service Startup Tool. Chapter 3 Driver Setup & Installation...
  • Page 52 2. The Advantech PCI Serial Service Manager dialog box appears. Choose to start your serial service by selecting the Start radio button and click OK. 3. A message box will appear to inform you that the PCI serial service has started successfully.
  • Page 53 Serial Driver service is started. You can verify the driver function by the Windows NT Diagnostics utility. As you can see on the Services tab, the status of the Advantech PCI serial driver is currently running. This indicates that the driver functions properly.
  • Page 54 If you want to stop the device function, please follow the steps as seen below: 1. Go to Start/Programs/Advantech Driver for NT/AdsStart. 2. The Advantech PCI Serial Service Manager dialog box appears. Choose to stop your serial service by selecting the Stop radio button and click OK.
  • Page 55 Chapter 4 ICOM Tools...
  • Page 56 Advantech ICOM Tools is a very convenient utility to help you test the performance of ICOM card through port status analysing. It features a Graphical User Interface as easy to use as you will soon get familiar with all the menu commands and toolbar buttons. Advantech ICOM Tools is applicable to all series of Advantech ICOM cards, even to other third-party ICOM cards.
  • Page 57 All Ports Submenu Setup setup the configurations of all ports run the test on all ports Stop stop the test on all ports Help submenu access the Online Help <Tool Bar> (for specific port) (for all ports) Using Tool Bar buttons is a more intuitive way to implement the functions of the ICOM Tools utility.
  • Page 58 All Ports Stop stop test on all ports Clear Message clear messages on Message Logo area and the Rx length information on the Performance Listing area <Com Port Tab> Each Com Port tab represents a specific port you have selected for test and configuration. On the tab, you can see the Transfer Mode, Port Status, and Message Logo area.
  • Page 59 (data-set-ready) (request-to-send) (clear-to-send) (carrier-detect) For RS-232 specifications, DTR and RTS are for output signals and can be toggled on and off simply by double-clicking legends (such as DTR, DSR, RTS, CTS, CD) under the red/green marks. But if your are using RTS/CTS for flow control to run the test, you will see the RTS mark appear as black.
  • Page 60 Section 4.4, Messages on the Status Bar and Message Logo area. To launch the ICOM Tools testing utility, just access Start/Programs/ Advantech PCI Comm Tools/COM Examine Tools to start the port testing utility. Please follow the steps below to make your port selection:...
  • Page 61 such as Figure 1. Since you haven’t selected any port for testing yet, all you can see now is only a blank window area. Fig. 1 ICOM Tools program window Step 2:Select the port(s) you want to test by the Port/Select menu command or by clicking the Port Select button on the Toolbar, and a dialog box such as Fig.
  • Page 62 port(s) you selected will immediately appear in the Selected Port field. Fig. 3 Ports you selected will appear in the Selected Port checkbox group. Step 4: Click OK to bring up the ICOM Tools User Interface such as below: Tx Silde Bar Menu Bar Tool Bar Com Port Tab...
  • Page 63 You can choose to configure a specific port (or to configure all ports) before running your test. Just click a Com Port Tab to select the port you want to configure, and then click the Port Setup button or just access the Port/Setup menu command (or if you want to config- ure all ports at once, just click the All Ports Setup button or access the All Ports/Setup menu command) to bring up the Configure...
  • Page 64 run all ports at once, just click the All Ports Run button or access All Ports/Run menu command). Once the test is started, you can see relevant test information of port performance on the performance listing area. Test information on the performance listing Area The Performance Listing Area Port the com port number...
  • Page 65 If you want to close a port, just select the Com Port tab and click Port Close button or access Port/Close menu command to close the port. To exit the ICOM Tools utility, simple access Port/Exit menu com- mand or click the Close button on the upper right corner of the program window.
  • Page 66 Tx Starting/Tx Stopped: transmitting starting/transmitting stop Rx Starting/Rx Stopped : receiving starting/receiving stop Break Error: a break event has been detected on the port Framing Error: A timing error (i.e. from start bit to stop bit) has been detected on the port Port I/O Error: An incorrect I/O event has been detected on the port Rx Overrun: The received data has been overwritten before being...
  • Page 67 Chapter 5 Pin Assigment & Wiring...
  • Page 68 The following figures show the pin assignments for the card's DB-9 connectors in RS-422 and RS-485 modes. Pin description (DB-9 male) TX-(DATA-) or send data - (DTE) TX+(DATA+) or send data + (DTE) RX+ or receive data + (DTE) RX - or receive data - (DTE) GROUND RTS - or ready to send - RTS+ or ready to send +...
  • Page 69 The following diagrams show the pin assignments for the PCI-1610/ 1612 card's DB-37 and DB-25 connectors for RS-232. Chapter 5 Pin Assigment & Wiring...
  • Page 70 The following diagrams show the pin assignments for the PCI-1612 card's DB-37 and DB-25 connectors for RS-422/485. RS-422/485 CONNECTOR DB37 PCI-Comm Card Series User's Manual...
  • Page 71 The following diagrams show the pin assignments for the PCI-1610/ 1612 card's DB-37 and DB-9 (opt 4A) connectors for RS-232. RS-232 CONNECTOR DB37 Chapter 5 Pin Assigment & Wiring...
  • Page 72 The following diagrams show the pin assignments for the PCI-1610/ 1612 card's DB-9 and DB-25 (opt 4A)connectors for RS-422/485. DATA- RTS- DATA+ RTS+ CTS+ CTS- RS-485 RS-422 CONNECTOR DB37 PCI-Comm Card Series User's Manual...
  • Page 73 RS-232 8-port connection boxes/octopus cable designed for PCI-1620 are: Opt8A: 8-port DB25 female connection box Opt8B: 8-port DB25 male connection box Opt8C: Octopus cable with 8 male RS-232 DB25 ports The following lists the pin assignments of the DB62 connector on the bracket.
  • Page 74 DB25 Signal Name Mode Pinout Pinout PCI-Comm Card Series User's Manual...
  • Page 75 Since the RS-232 interface is not strictly defined, many devices have their own connection methods which may ignore some signal lines or define reserved lines for other functions. It is best to refer to the user’s manual for your device for installation instructions. You may find the following helpful.
  • Page 76 Signal Signal For DTE to DCE connections, use straight through cable (i.e., you don't have to reverse lines 2 and 3, lines 4 and 5, and lines 6 and 20 since, in general, the DCE RS-232 interfaces are reversed themselves). Signal Signal —...
  • Page 77 The RS-422 interface wiring is based on one-to-one principles. The transmit lines on one side connect to the receive lines on the other side, and vice versa. With RS-422, you can transmit and receive data simultaneously (full duplex). The connections are as follows: Signal Signal TxD-...
  • Page 78 Handshaking signals (such as RTS, Request To Send) are normally used to control the direction of the data flow and to switch the transmission accordingly. In RS-485 mode, the PCI-1601/1602/ 1612 automatically senses the direction of the data flow and switches the transmission direction —...
  • Page 79 You can install termination resistors if necessary for impedance matching. The card has mounting spaces for termination resistors, but no resistors are installed at the factory. Depending on your applica- tion you may need to solder in a single resistor to handle the DATA+/ DATA- pair (and a corresponding resistor on the other end of the connection).
  • Page 80 Appendix A Register Structure and Format...
  • Page 81 This appendix gives short descriptions of each of the module's registers. For more information please refer to the data book for the STARTECH 16C550 UART chip. All registers are one byte. Bit 0 is the least significant bit, and bit 7 is the most significant bit.
  • Page 82 BASE+1 Interrupt Status Register (ISR) when DLAB=0 Bit 0 Enable received-data-available interrupt bit 1 Enable transmitter-holding-register-empty interrupt bit 2 Enable receiver-line-status interrupt bit 3 Enable modem-status interrupt BASE+2 FIFO Control Register (FCR) bit 0 Enable transmit and receive FIFOs bit 1 Clear contents of receive FIFO bit 2 Clear contents of transmit FIFO...
  • Page 83 bit 7 Divisor Latch Access Bit (DLAB) BASE+4 Modem Control Register (MCR) bit 0 bit 1 BASE+5 Line Status Register (LSR) bit 0 Receiver data ready bit 1 Overrun error bit 2 Parity error bit 3 Framing error bit 4 Break interrupt bit 5 Transmitter holding register empty...
  • Page 84 The following C example shows how to program the PCL-743/745 registers directly. It uses I/O ports hex 3F8 and 2F8 to test the PCL- 743/745 send, receive and FIFO functions. ***************************************************/ Program: DEM001.C Description: Sends a string from COM1 to COM2 then reads it back from COM2 and displays it on the screen.
  • Page 85 /* Set up Port 1 (COM1) */ outport((base0+2),0xc9); Enable FIFO outp(base1+3,0x80); Set DLAB=1 /*Set bps = 115200 outp(base0 ,0x01); outp(base0+1,0x00); outp(base0+3,0x03); /* set data=8; stop=1; no parity*/ outp(base0+1,0x00); /* disable interrupt */ /* (Set up) Port 2 (COM2) outport((base1+2),0xc9); Enable FIFO outp(base1+3,0x80);...
  • Page 86 if (cmd[i] == 0x0d) flag=0 i++; Receive data on Port 2 (COM2) i=0; flag=1; timeout=TIME_OUT; whole (flag) rec[i]=inportb(base1); /* Receive data*/ if (rec[i] == 0x0d) rec[i=1]='\0'; flag=0; printf("\nReceived data: %s\n", rec); i++; else /I Check timeout */ timeout-; if(timeout == 0) flag=0;...
  • Page 87 PCL-743/745 Series User's Manual...
  • Page 88 Appendix B PC I/O Address Reference...
  • Page 89 The following table shows the I/O addresses commonly used by standard PC devices. Avoid these addresses when you select your port I/O base addresses. I/O Address Device 000 - 00F DMA (8237A) 020 - 021 8259A IRQ Controller 040 - 043 8253/8254 Timer/Counter 060 - 063 PPI 8255A...