ICP DAS USA VXC-142 User Manual

ICP DAS USA VXC-142 User Manual

Vxc series multi-port serial card

Advertisement

Quick Links

VXC Cards User's Manual
VXC-112A, VXC-142/142i, VXC-182i
Warranty
All products manufactured by ICP DAS are warranted
against defective materials for a period of one year from the
date of delivery to the original purchaser.
Warning
ICP DAS assumes no liability for damages consequent
to the use of this product. ICP DAS reserves the right to
change this manual at any time without notice. The
information furnished by ICP DAS is believed to be accurate
and reliable. However, ICP DAS assumes no responsibility
for its use, or for any infringements of patents or other rights
of third parties resulting from its use.
Copyright
Copyright 2004 by ICP DAS. All rights are reserved.
Trademark
The names used for identification only may be
registered trademarks of their respective companies.
VXC Cards User's Manual (Ver. 1.1, 06/09.2005, pmh-012-01) -----1

Advertisement

Table of Contents
loading

Summary of Contents for ICP DAS USA VXC-142

  • Page 1 VXC Cards User’s Manual VXC-112A, VXC-142/142i, VXC-182i Warranty All products manufactured by ICP DAS are warranted against defective materials for a period of one year from the date of delivery to the original purchaser. Warning ICP DAS assumes no liability for damages consequent to the use of this product.
  • Page 2: Table Of Contents

    Tables of Contents INTRODUCTION ........................3 ........................4 EATURES ......................4 PECIFICATIONS .....................5 RODUCT HECK ....................5 RDERING NFORMATION .........................6 PTIONS HARDWARE CONFIGURATION ..................7 .......................7 OARD AYOUT COM P ID................11 APPING AND OARD ................13 SSIGNMENT AND ABLE IRING ....................15 ARDWARE NSTALLATION SOFTWARE INSTALLATION.....................16 DOS L ........................17 NT 4.0 ......................18 INDOWS...
  • Page 3: Introduction

    1. Introduction The VXC series multi-port serial card enables user to install additional communication ports on the PC. It’s the best choice for time-critical and reliably communications and controls on the industrial environment. For example: Communicates to PLC, FAB machine, meter, console management of devices, laboratory instruments and Modem link, etc.
  • Page 4: Features

    1.1 Features VXC-112A VXC-142 VXC-142i VXC-182i Common 5V PCI Bus add-on card Features COM-Selector Provides surge protection LED diagnostic indicators 16-byte UART FIFO RS-422/485 2-Port 2-Isolated 1-Isolated RS-232 2-Port 1-Port Self-tuner Isolated 1.2 Specifications VXC-112A VXC-142 VXC-142i VXC-182i Data bit...
  • Page 5: Product Check List

    1.3 Product Check List In addition to this manual, the package includes the following items: • One VXC-112A, VXC-142/142i or VXC-182i card • One ICP DAS floppy diskette or CD • One copy of the release notes Before continuing, it is recommended that you read the release notes, which contain the following important information: 1.
  • Page 6: Options

    1.5 Options Item Description VXC-142 VXC-112A VXC-182i VXC-142i CA-0903 9-pin Female D-sub & 5-wire RS-232 cable, 30cm √ √ CA-0910 9-pin Female D-sub & 3-wire RS-232 cable, 1M √ √ CA-0910F 9-pin Female-Female D-sub Cable, 1M √ √ √ I/O Connector Block with DIN-Rail DN-09-2F Mounting and two 9-pin Male Header.
  • Page 7: Hardware Configuration

    Hardware configuration 2.1 Board Layout Board layout of the VXC-112A Note: CN1/2 => RS-232 Port VXC Cards User’s Manual (Ver. 1.1, 06/09.2005, pmh-012-01) -----7...
  • Page 8 Board layout of the VXC -142 Note: CN1/2 => Non-Isolated RS-422/485 port VXC Cards User’s Manual (Ver. 1.1, 06/09.2005, pmh-012-01) -----8...
  • Page 9 Board layout of the VXC-142i Note: CN1/2 => Isolated RS-422/485 port VXC Cards User’s Manual (Ver. 1.1, 06/09.2005, pmh-012-01) -----9...
  • Page 10 Board layout of the VXC-182i Note: CN1 => Isolated RS-422/485 port CN2 => RS-232 port VXC Cards User’s Manual (Ver. 1.1, 06/09.2005, pmh-012-01) -----10...
  • Page 11: Com Port Mapping And Board Id

    2.2 COM Port Mapping and Board ID The Board ID and COM port mapping are the same, which is set by the S1 DIP switch. The S1 DIP switch has different functions under different OS. For DOS users, the S1 DIP switch acts as Board ID. When there are two or more multi-port serial cards in a single system, it is difficult to identify individual card number.
  • Page 12 S1 DIP Switch Board ID=0x00 (Default) COM = Auto-defined Board ID=0x03 COM = 3/4 Board ID=0x05 COM = 5/6 Board ID=0x07 COM = 7/8 Board ID=0x09 COM = 9/10 Board ID=0x14 COM = 20/21 Board ID=0x1E COM = 30/31 Board ID=0x28 COM = 40/41 Board ID=0x32 COM = 50/51...
  • Page 13: Pin Assignment And Cable Wiring

    2.3 Pin Assignment and Cable Wiring 2.3.1 RS-422 Cable Wiring CH1~ 2 TxD- RTS- TxD+ RTS+ RxD+ CTS+ RxD- CTS- DB9(M) VXC-142/142i, VXC-182i DTE (MALE DB-9) Terminal DTE (DB-9) Signal Signal TxD- RxD- TxD+ RxD+ RxD+ TxD+ RxD- TxD- RTS-...
  • Page 14 2.3.3 RS-232 Cable Wiring DB9(M) VXC-112A, VXC-182i (Male DB-9) Null Modem Cable Wiring System 1 System 2 VXC Cards User’s Manual (Ver. 1.1, 06/09.2005, pmh-012-01) -----14...
  • Page 15: Hardware Installation

    Hardware Installation Warning: Static electricity can easily damage computer equipment. Ground yourself by touching the chassis of the computer before touching any boards. To install your VXC series cards, complete the following steps: 1. Turn off your computer 2. Remove all covers from the computer 3.
  • Page 16: Software Installation

    Software Installation ICP DAS provides following device drivers for most operation systems such as MS-DOS, Windows NT 4.0 and Windows 2000/XP/2003. These Windows drivers provide full interrupt-driven, buffered I/O for each COM ports. And also supports the Plug & Play mechanism for easy installation. VxCard DOS Lib: Programming library files and sample programs for DOS.
  • Page 17: Dos Lib

    3.1 DOS Lib Microsoft provides standard Win32 APIs for Windows 9x/NT/2K/XP/2003 users to access the COM ports. But DOS did not have such standard APIs, thus ICP DAS provides library functions under DOS for the VXC cards. Which provides easy programming interfaces and sample programs (include source code) that written in Turbo C.
  • Page 18: Windows Nt 4.0

    3.2 Windows NT 4.0 3.2.1 Installation Please refer to the “Release Note” paper to see the software location and refer to the following steps to complete it. Note: It’s recommended to install the software first, and then the hardware. This reduces the reboot times of your computer. 1.
  • Page 19 Note: When the hardware and software are well installed, the driver turns off the LED on the card. If there is something error, such as driver not work or COM port number conflicted, the LED keeps lighting. 3.2.3 Configuration If need, users can change the input buffer size (default is 4KB for each port, up to 128KB) by setting the “SW FIFO”...
  • Page 20: Windows 2000

    3.3 Windows 2000 3.3.1 Installation Note: It’s recommended to install the software first, and then the hardware. This reduces the configuration procedures. 1. Launch the VxCard2K.exe to install the driver and register the related information onto the system. 2. Power off the computer and install the VxCard into the PC. 3.
  • Page 21 Note: When the hardware and software are well installed, the driver turns off the LED on the card. If there is something error, such as driver not work or COM port number conflicted, the LED keeps lighting. 3.3.3 Configuration If need, users can change the input buffer size (default is 4KB for each port, up to 128KB) by setting the “SW FIFO”...
  • Page 22: Windows Xp/2003

    Windows XP/2003 3.4.1 Installation Note: It’s recommended to install the software first, and then the hardware. This reduces the configuration procedures. 1. Launch the VxCard2K.exe to install the driver and register the related information onto the system. (Win2K driver also works on XP/Server 2003.) 2.
  • Page 23 Note: When the hardware and software are well installed, the driver turns off the LED on the card. If there is something error, such as driver not work or COM port number conflicted, the LED keeps lighting. 3.4.3 Configuration If need, users can change the input buffer size (default is 4KB for each port, up to 128KB) by setting the “SW FIFO”...
  • Page 24: Linux

    Linux This section describes VXC Card Linux driver’s features and how to compile and install into a general Linux system. The VXC Card Linux driver is modified from Linux kernel source and supports most of popular PC-based Linux distributions. 3.5.1 Driver Features Device file.
  • Page 25 5. Once the configuring has done successfully, type “make” to build all. Note: If you like to install files to system directory, the make install will do it for you. However, install files to system directory is not necessary for further operation. You will need the root privilege for that. Script “./ixcom.inst”...
  • Page 26 The “ixcom.inst” script will use major number 254 to create correspond device on the /dev. # ls -la /dev/ttySV? crw-rw-rw- 1 root root 254, 64 Jul 14 10:13 /dev/ttySV0 crw-rw-rw- 1 root root 254, 65 Jul 14 10:13 /dev/ttySV1 crw-rw-rw- 1 root root 254, 66 Jul 14 10:13 /dev/ttySV2 crw-rw-rw- 1 root root 254, 67 Jul 14 10:13 /dev/ttySV3...
  • Page 27 Each ttySV device of VXC serial card has a corresponding auxiliary device cuaV with the same minor number but different major number that create by script ixcom.inst automatically. # ls -la /dev/cuaV? crw-rw-rw- 1 root root 253, 64 Jul 14 10:13 /dev/cuaV0 crw-rw-rw- 1 root root 253, 65 Jul 14 10:13 /dev/cuaV1 crw-rw-rw- 1 root root 253, 66 Jul 14 10:13 /dev/cuaV2 crw-rw-rw- 1 root root 253, 67 Jul 14 10:13 /dev/cuaV3...
  • Page 28: Programming Reference

    The fixed IDs of each VXC series card is as follows: Sub- Sub- Sub-Aux Item Vendor ID Device ID Vendor ID Device ID VXC-112A 0xe159 0x0001 0x1D61 0x0000 0x00 VXC-142 0xe159 0x0001 0x0061 0x0000 0x00 VXC-142i 0xe159 0x0001 0x0161 0x0002 0x00 VXC-182i 0xe159 0x0001 0x0161...
  • Page 29 PCI plug & play mechanism. All VXC series cards installed in this system will be detected and the resources will be saved in the library. Sample program 1: Determine the resources for all VXC-142 cards in the PC wSubVendor=0x61; wSubDevice=0x00; wSubAux=0x00; /* for VXC-142 */ wRetVal=PIO_DriverInit(&wBoards, wSubVendor,wSubDevice,wSubAux);...
  • Page 30 Sample program 2: Identify all VXC cards in the PC wRetVal=PIO_DriverInit(&wBoards,0xff,0xff,0xff); /* identify all VXC cards */ printf("\nThere are %d VXC Cards in this PC",wBoards); if (wBoards==0 ) exit(0); printf("\n-----------------------------------------------------"); for(i=0; i<wBoards; i++) PIO_GetConfigAddressSpace(i,&wBase,&wIrq,&wSubVendor, &wSubDevice,&wSubAux,&wSlotBus,&wSlotDevice); printf("\nCard_%d:wBase=%x,wIrq=%x,subID=[%x,%x,%x], SlotID=[%x,%x]",i,wBase,wIrq,wSubVendor,wSubDevice, wSubAux,wSlotBus,wSlotDevice); printf(" --> "); ShowPioPiso(wSubVendor,wSubDevice,wSubAux);...
  • Page 31 VXC-142 */ wRetVal=PIO_DriverInit(&wBoards, wSubVendor,wSubDevice,wSubAux); printf("There are %d VXC-142 cards in this PC\n",wBoards); /* Step 2: save the resources for each VXC-142 card installed in the PC */ for (i=0; i<wBoards; i++) { PIO_GetConfigAddressSpace(i,&wBase,&wIrq,&t1,&t2,&t3,&t4,&t5); printf("\nCard_%d: wBase=%x, wIrq=%x", i,wBase,wIrq);...
  • Page 32 wRetVal=PIO_DriverInit(&wBoards,0xff,0xff,0xff); /*find all VXC*/ printf("\nThere are %d VXC Cards in this PC",wBoards); if (wBoards==0 ) exit(0); printf("\n-----------------------------------------------------"); for(i=0; i<wBoards; i++) PIO_GetConfigAddressSpace(i,&wBase,&wIrq,&wSubVendor, &wSubDevice,&wSubAux,&wSlotBus,&wSlotDevice); printf("\nCard_%d:wBase=%x,wIrq=%x,subID=[%x,%x,%x], SlotID=[%x,%x]",i,wBase,wIrq,wSubVendor,wSubDevice, wSubAux,wSlotBus,wSlotDevice); printf(" --> "); ShowPioPiso(wSubVendor,wSubDevice,wSubAux); VXC Cards User’s Manual (Ver. 1.1, 06/09.2005, pmh-012-01) -----32...
  • Page 33: I/O Address Mapping

    I/O address. The plug & play BIOS will assign the correct I/O address to each VXC series card. The table below indicates the I/O address of the VXC-112A, VXC-142/142i and VXC-182i series cards: Address...
  • Page 34: Aux Control Register

    4.2.1 RESET\ Control Register (Read/Write): wBase+0 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Reserved Reserved Reserved Reserved Reserved Reserved Reserved RESET\ Note. Refer to Sec. 4.1 for more information regarding wBase. When the PC is first powered-on, the RESET\ signal is in the Low state.
  • Page 35: Aux Data Register

    This register is designed for LED controls. Before controlling LED state, users have to configure the related Aux? to be an output. Aux5: For VXC-112A LED controls. Aux7: For VXC-142/142i and VXC-182i LED controls. outportb(wbase+2,0x80); /* Set Aux7 is used as an output*/ outportb(wBase+3,0);...
  • Page 36: Aux Status Register

    /* disables all interrupts */ outportb(wBase+5,0x03); /* enables INT ch0 and ch1 for VXC-142 */ outportb(wBase+5,0x0B); /* enables INT ch0 and ch1 for VXC-112A */ 4.2.5 Aux Status Register (Read/Write): wBase+7 Bit 7 Bit 6 Bit 5 Bit 4...
  • Page 37 /* selects the inverted input from all 8 channels */ outportb(wBase+0x2a,0xFF); /* selects the non-inverted input from all 8 channels */ // For VXC-142/142i and VXC-182i outportb(wBase+0x2a,0x2); /* selects the inverted input of INT_CHAN_0 */ /* selects the non-inverted input of INT_CHAN_1 */ // For VXC-112A outportb(wBase+0x2a,0x8);...
  • Page 38: Interrupt Operation

    4.3 Interrupt Operation There are two interrupt sources in the VXC cards. They are named as INT0 and INT1. Their signal sources are as follows: INT0: UART 0 interrupt output INT1: UART 1 interrupt output If only one interrupt signal source is used, the interrupt service routine doesn’t need to identify the interrupt source.
  • Page 39 4.3.1 Interrupt Block Diagram VXC Card INT\ INT_CHAN_0 Level_trigger INT_CHAN_1 (to PCI slot) initial_low active_high The interrupt output signal of the VXC card, INT\, is Level-Trigger and Active_Low. If INT\ generates a low_pulse, the VXC card will send an interrupt signal to the PC only once.
  • Page 40 4.3.2 INT_CHAN_0/1 INT0/1 INT_CHAN_0/1 Inverted/Noninverted select (INV0/1) Enable/Disable select (EN0/1) The INT_CHAN_0 and INT_CHAN_1 architecture is shown in the above figure. The only difference between INT0 and INT1 is that the INT_CHAN_0 signal source comes from the UART 0 interrupt output, and the INT_CHAN_1 signal source comes from the UART 1 interrupt output.
  • Page 41: Appendix

    5. Appendix UART Register Mapping This section describes the UART register mapping for VXC cards. For more information, please refer to the TI 16C550 datasheet. wBase+0xC0: Port 0 Receiver Buffer Register (RBR) wBase+0xE0: Port 1 Receiver Buffer Register (RBR) Bit 7 Bit 6 Bit 5 Bit 4...
  • Page 42 wBase+0xCC: Port 0 Line Control Register (LCR) wBase+0xEC: Port 1 Line Control Register (LCR) Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Divisor Break Stick Even Parity Number Word Word Latch Control Parity Parity Enable...

This manual is also suitable for:

Vxc-112aVxc-142iVxc-182i

Table of Contents