Contec COM-1(LPCI)H, COM-4(LPCI)H, COM-2(LPCI)H, COM-1H, COM-2H User Manual

...
Page 1
PC-HELPER
RS-232C 1ch Serial I/O Board for Low Profile PCI
COM-1(LPCI)H
RS-232C 2ch Serial I/O Board for Low Profile PCI
COM-2(LPCI)H
RS-232C 4ch Serial I/O Board for Low Profile PCI
COM-4(LPCI)H
User’s Guide
CONTEC CO.,LTD.
Page 2

Check Your Package

Thank you for purchasing the CONTEC product. The product consists of the items listed below. Check, with the following l ist, that yo ur package is c omplete. If y ou discover dam aged or m issing item s,
contact your retailer.
Product Configuration List
- Board(One of the following) [COM-1(LPCI)H, COM-2(LPCI)H, or COM-4(LPCI)H]
- First step guide … 1
- COM Setup Disk *1 (CD-ROM) …1
- Bracket for PCI …1 *1 The CD-ROM contains the driver software and User’s Guide (this guide)
Board
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
First step guide
CD
Bracket for PCI
i
Page 3

Copyright

Copyright 2013 CONTEC CO., LTD. ALL RIGHTS RESERVED No part of this document may be copied or reproduced in any form by any means without prior written
consent of CONTEC CO., LTD.
CONTEC CO., LTD. makes no commitment to update or keep current the information contained in this document. The information in this document is subject to change without notice.
All relevant issues have been considered in the preparation of this document. Should you notice an omission or any questionable item in this document, please feel free to notify CONTEC CO., LTD.
Regardless of the foregoing statement, CONTEC assumes no responsibility for any errors that may appear in this document or for results obtained by the user as a result of using this product.

Trademarks

MS, Microsoft, Windows, Windows NT are trademarks of Microsoft Corporation. Other brand and product names are trademarks of their respective holder.
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
ii
Page 4

Table of Contents

Check Your Packag e............................................................................................................................i
Copyright ............................................................................................................................................ii
Trademarks ......................................................................................................................................... ii
Table of Con tents ..............................................................................................................................iii
1. BEFORE USING THE PRODUCT 1
About the Prod u ct............................................................................................................................... 1
Features........................................................................................................................................ 1
Support Soft wa re ......................................................................................................................... 3
Cable & Conne c to r ( Op t ion ) ...................................................................................................... 4
Customer Supp o rt ............................................................................................................................... 5
Web Site http ............................................................................................................................... 5
Limited Thre e- Y ea rs Wa rr a n ty .......................................................................................................... 5
How to Obtain Se rv i c e ....................................................................................................................... 5
Liability .............................................................................................................................................. 5
Safety Precau ti o n s .............................................................................................................................. 6
Safety Infor mat i o n....................................................................................................................... 6
Handling Pre ca u tio ns................................................................................................................... 7
Environment ................................................................................................................................ 8
Inspection..................................................................................................................................... 8
Storage ......................................................................................................................................... 8
Disposal ....................................................................................................................................... 8
2. SETUP 9
What is Setup? .................................................................................................................................... 9
Using the Board under Windows Using the Standard COM Driver Software COM Setup Disk9
Using the Board unde r W ind o ws Usin g th e D riv e r L ib r ar y A P I- PAC ( W 32 ) ............................ 9
Using the Board under Linux Using the Standard COM Driver Software COM Setup Disk.. 10
Operating Sys tems Other than Wind o w s o r L inu x ................................................................... 10
Step 1 Setting th e H a rd wa r e............................................................................................................. 11
Replacing the B ra ck e t ................................................................................................................ 11
Parts of the Bo a rd and F a cto r y D ef a u lts ................................................................................... 12
Setting the Bo a rd ID ..................................................................................................................14
Setting the Sup p l y Vo l ta g e........................................................................................................ 14
Plugging the Board.................................................................................................................... 15
Step 2 Installi ng t h e H a rd wa re ......................................................................................................... 16
Turning on the PC...................................................................................................................... 16
Windows 8, 7 ............................................................................................................................. 17
Windows Server 2008, Windows V ista .................................................................................... 19
Windows Server 2003, Windows XP, Windows 2000 ............................................................. 20
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
iii
Page 5
The check meth od of th e co mpl e ti o n of h a rd w are in s ta ll at ion .................................................21
Step 3 Initial iz in g th e Sof t wa re ........................................................................................................22
For use under Windows 8, 7, Serv e r 2 00 8 , V is ta , XP, S erv e r 20 0 3 , 20 0 0............................... 22
For use under Windows NT, Me, 9 8 o r 95................................................................................ 24
Step 4 Checkin g Operations with th e Di ag no si s Pro g ra m ...............................................................25
What is the Diag n os is Pro g ram? ...............................................................................................25
Check Method............................................................................................................................ 25
Using the Di agnosis Program....................................................................................................26
Setup Trouble sh o o t ing...................................................................................................................... 28
Symptoms and A cti on s ..............................................................................................................28
If your proble m c an n ot b e reso lv ed........................................................................................... 28
3. EXTERNAL CONNECTION 29
In the case of C O M- 1 (LP C I )H ......................................................................................................... 29
Connecting it d ire c tl y f rom the on-board c o nn e ct or .................................................................29
In the case of C O M- 2 (LP C I )H ......................................................................................................... 30
Using the 9-pin D -S UB Con n ec to r Conv e r s ion C ab le s ............................................................30
Connecting it d ire c tl y f rom the on-board c o nn e ct or .................................................................31
In the case of C O M- 4 (LP C I )H ......................................................................................................... 32
Using the 9-pin D -S UB Con n ec to r Conv e r s ion C ab le s ............................................................32
Connecting it d ire c tl y f rom the on-board c o nn e ct or .................................................................33
Types of Cable and Example Connectio n s.......................................................................................34
4. FUNCTIONS 35
Communication Function ................................................................................................................. 35
Serial Data T ran s mi ss io n........................................................................................................... 35
RS-232C Control Lines ............................................................................................................. 35
Send and Recei v e D at a Bu ff e r s .................................................................................................35
Setting the Baud Ra t e ................................................................................................................ 36
5. ABOUT SOFTWARE 39
About Sample p ro gr a ms ................................................................................................................... 39
Uninstalling the d r iver software .......................................................................................................41
Windows XP, S e rv er 20 03 , 20 0 0 .............................................................................................. 41
Windows 8, 7, Se r ve r 2 00 8 , V is t a............................................................................................. 41
Windows Me, 98........................................................................................................................ 41
Windows NT.............................................................................................................................. 42
CD-ROM Directo r y S t ru c tu re .......................................................................................................... 43
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
iv
Page 6
6. ABOUT HARDWARE 45
For detailed t e chn i cal in fo r ma tio n ................................................................................................... 45
Hardware spe cification..................................................................................................................... 46
Differences be t wee n th e CO M- 1 (L PC I )H , C OM -2( L PC I )H and CO M- 4 (L PC I) H ....................... 49
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
v
Page 7
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
vi
Page 8
1. Before Using the Product

1. Before Using the Product

This chapter provides information you should know before using the product.

About the Product

This product is a low profile siz ed PCI bus-sup ported board designed for e xtending RS-2 32C compatible serial communication functionality on your PC.
The < COM-1(LPCI)H > has one RS-232C communication ports. The < COM-2(LPCI)H > has two RS-232C communication ports. The < COM-4(LPCI)H > has four RS-232C communication ports. With a 128byte built-in FIFO buffer for transmission and reception of each channel, the product s upports
a baud rate of up to 921,600bps. It also comes with a Windows/Linux driver, which allows boards to be used as OS-standard COM ports.
This product supports CONTEC-defined driver library “API-PAC(W32)” that provide local routines.

Features

- Max. 921,600bps RS-232C Serial Co mmunication The < COM-1(LPCI)H > has one RS-232C-standard serial ports.
The < COM-2(LPCI)H > has two RS-232C-standard serial ports. The < COM-4(LPCI)H > has four RS-232C-standard serial ports. Baud rates from 2 to 9 21, 60 0b ps ca n be se t. Wh en using the bundled “Standard COM Driver Software” and “Driver library API-PAC(W32)”, baud rates from 15 to 921,600bps can be set.
- Possibly used as Windo ws, Linux-stand ard CO M ports, usin g the bundled driver lib rary Comes with a driver software that allows the products to be used under Windows / Linux in the same
way as COM ports on the PC. Under Windows, the product supports the OS-standard Win32 API communication function as well as Visual Basic MSComm. Under Linux, OS-standard tty driver’s standard-function can be used. In additi on, supplies a diagnostic pr ogram to confirm hardware o peration and to perform a communication test with equipment.
- Max. 16 boards can be installed as configu red in th e range COM1 - C OM256 . Up to 16 boards can be mounted on a single PC.
COM1 - COM256 can be set using the device manager.
- Each channel is equipped with separate 128-byte FIFO buffers for transmit and receive. Employed a buffer memory 128-byte dedicated to transmission and 128-byte for each channel.
These are FIFO format, useful for high speed communications and to reduce the load to the CPU when transmitting/receiving. As the device manager can be use d to enabl e/disable t he use of FIFO and set the FIFO trigger size, you can build an optimum system according to your use.
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
1
Page 9
1. Before Using the Product
- The boards use the same easy-to-use 9-pin D-SUB connectors as are used on a PC (For COM-1(LPCI)H only).
Using the most versatile general-purpose 9-pin D-SUB conn ector for RS-232C , the p roduct allows you to use commercial cables which support the RS-232C standard.
- Support for Low Profile size slot / standard size slot
Bundled with each bracket for Low Profile size slot / standard size slot. Exchanges it for the standard size bracket when mounting on the standard size slot.
- To suit your application, cables and connectors are available as optional
COM-1(LPCI)H : Straight cables (1.8m), cross cables (1.8m) and 9-pin D-SUB connectors (male or
female type) for your own cables are available as optional.
COM-2(LPCI)H : Distribution cable for 2channels and 44-pin D-SUB connectors (male type) for your
own cables are available as optional.
COM-4(LPCI)H : Distribution cable for 4channels and 44-pin D-SUB connectors (male type) for your
own cables are available as optional.
- The control line for RS-232C can be controlled and monitored by software.
The control lines for RTS, CTS, DTR and DSR can be controlled and monitored using software.
- Driver library API-PAC(W32) is supported.
API-PAC(W32) is library software based on Win32 API routines (DLL), which provides local routines specific to CONTEC. You can create high- speed applicati on software taki ng advantage of the CONT EC hardware using various programming languages that support Win32 API functions, such as Visual Basic and Visual C++.
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
2
Page 10
1. Before Using the Product

Support Software

You should use CONTEC support software accor d ing to your purpose and development environment. Standard COM Driver Software
The purpose of this software is to allow the CONTEC serial communication boards to be used under Windows or Linux in the same way as the standard COM ports on the PC. By installing additional boards, you can use COM ports in the range COM1 - COM256. The boards can be used for all types of se rial communications such as for remote access s ervi ce ( R AS) and uninterruptible power supply (UPS) applications. Under Windows, the serial ports can be accessed using the standard Win32 API communication routines (CreateFile( ), WriteFile( ), ReadFile( ), and SetCommState( ), etc.) The serial ports are also compatible with the Visual Basic communication control (MSComm). Supports the communication class of .NET Framework 2.0 (SerialPort class). Under Linux, the serial ports are compatible with the operating system's standard tty driver. The standard routines including open( ), close( ), read( ), write( ) are supported.
< Operating environment >
Windows 8, 7, Vista, XP, NT, Me, 98, Linux etc..
OS
You can download the updated version from the CONTEC’s Web site (http://www.contec.com/comdrv/). For more details on the supported OS, applicable language and new information, please visit the CONTEC’s Web site.
CAUTION
The maximum number of COM ports able to be used depends on the configuration of your OS.
COM Setup Disk
Driver library
API-PAC(W32)
(Available for downloading (free of charge) from the CONTEC web
site.) API-PAC(W32) is the library software that provides the commands for CONTEC hardware products in
the form of Windows standard Win32 API functions (DLL). It makes it easy to create high-speed application software taking adva nta ge of the CONTE C har dware us in g vari o us pr ogramming languages that support Win32 API functions, such as Visual Basic and Visual C/C++.
It can also be used by the installed diagnosis program to check hardware operations. CONTEC provides download services (at http://www.contec.com/api pac/) to supply the updated driver s
and differential files. For details, visit the CONTEC’s Web site.
(Bundled)
< Operating environment > OS Windows 7, Vista, XP, Server 2003 etc.. Adaptation language Visual C/C++, Visual Basic, Delphi, Builder, etc.. Others Each piece of library software requires 50 megabytes of free hard disk space.
CAUTION
This library provides local routines that are specific to CONTEC (SioOpen( ), SioWrite( ), SioRead( ), SioStatus( ),
etc.). These are not compatible with the standard Win32 API communication routines (CreateFile( ) and WriteFile( ), etc.).
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
3
Page 11
1. Before Using the Product

Cable & Connector (Option)

RS-232C Straight Cable with D-SUB9P (1.8m) : RSS-9M/F RS-232C Cross Cable with D-SUB9P (1.8m) : RSC-9F RS-232C Connection Conversion Straight Cable (25M→9F, 1.8m) : RSS-25M/9F RS-232C Connection Conversion Cross Cable (25F→9F, 1.8m) : RSC-25F/9F Connection Conversion Cable for Serial I/O (44M→9M x 4, 250mm) : PCE44/9P4S Connection Conversion Cable for Serial I/O (44M→9M x 2, 250mm) : PCE44/9P2S D-SUB9P Male Connector Set (5 Pieces) : CN5-D9M D-SUB9P Female Connector Set (5 Pieces) : CN5-D9F D-SUB25P Male Connector Set (5 Pieces) : CN5-D25M D-SUB25P Female Connector Set (5 Pieces) : CN5-D25F D-SUB44P Male Connector Set (5 Pieces) : CN5-D44M
* Check the CONTEC’s Web site for more information on these options.
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
4
Page 12
1. Before Using the Product

Customer Support

CONTEC provides the following s upport services fo r you to use CONTEC products more efficiently and comfortably.

Web Site http

Japanese http://www.contec.co.jp/ English http://www.contec.com/ Chinese http://www.contec.com.cn/
Latest product information CONTEC provides up-to-date information on products. CONTEC also provides product manuals and various technical documents in the PDF.
Free download You can download updated driver software a nd diff erenti al files as we ll as sample pr ograms available i n
several languages. Note! For product information
Contact your retailer if you have any technical question about a CONTEC product or need its price, delivery time, or estimate information.

Limited Three-Years Warranty

CONTEC Interface boards are warranted by CONTEC CO., LTD. to be free from defects i n material and workmanship for up to three years from the date of purchase by the original purchaser.
Repair will be free of char ge only w hen thi s device is ret urned fr eight pr epaid with a c opy of the origi nal invoice and a Return Merchandise Authorization to the distributor or the CONTEC group office, from which it was purchased.
This warranty is not applicable for scratches or normal wear, but only for the electronic circuitry and original boards. The warranty is not applicabl e if the device has been tamper ed with or damaged t hrough abuse, mistreatment, neglect, or unreasonable use, or if the original invoice is not included, in which case repairs will be considered beyond the warranty policy.

How to Obtain Service

For replacement or repair, return the device freight prepaid, with a copy of the original invoice. Please obtain a Return Merchandise Authorization number (RMA) from the CONTEC group office where you purchased before returning any product.
* No product will be accepted by CONTEC group without the RMA number.

Liability

The obligation of the warrantor is solely to repair or replace the product. In no event will the warrantor be liable for any incidental or consequential damages due to s uch defec t or consequence s that arise from inexperienced usage, misuse, or malfunction of this device.
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
5
Page 13
1. Before Using the Product

Safety Precautions

Understand the following definitions and precautions to use the product safely.

Safety Information

This document provides safety information u sing the foll owing sym bols to prevent a ccidents res ulting in injury or death and the destruc tion of equi pment and res ources. Under stand the mean ings of these la bels to operate the equipment safely.
DANGER
WAR NI NG
CAUTION
DANGER indicates an imminently hazardous situation which, if not avoided, will result in death or serious injury.
WARNING indicates a potentially hazardous situation which, if not avoided, could result in death or serious injury.
CAUTION indicates a potentially hazardous situation which, if not avoided, may result in minor or moderate injury or in property damage.
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
6
Page 14
1. Before Using the Product

Handling Precautions

DANGER
Do not use the product where it is exposed t o flam mable or corr osive ga s. Doi ng so m ay resu lt in a n
explosion, fire, electric shock, or failure.
CAUTION
- There are switches or jumper on the board that need to be set in advance. Be sure to check these before installing the board.
- Only set the swi tche s and jumpers on the board to th e sp ecif i ed se tt ing s. Otherwise, the board may malfunction, overheat, or cause a failure.
- Do not strike or bend the board. Doing so could damage the board. Otherwise, the board may malfunction, overheat, cause a failure or breakage.
- Do not touch the board's metal plated terminals (edge connector) with your hands. Otherwise, the board may malfunction, overheat, or cause a failure. If the terminals are touched by someone's hands, clean the terminals with industrial alcohol.
- Do not install or remove the board to or from the slot while the computer's power is turned on. Otherwise, the board may malfunction, overheat, or cause a failure. Doing so could cause trouble. Be sure that the personal computer or the I/O expansion unit power is turned off.
- Make sure that your PC or expansion unit can supply ample power to all the boards installed.
Insufficiently energized boards could malfunction, overheat, or cause a failure.
- The specifications of this product are subject to change wi thout notice for en hancement and quality
improvement. Even when using the product conti nuously, be sure to rea d the manual an d understan d the contents.
- Do not modify the product. CONTEC will bear no responsibility for any problems, etc., resulting from modifying this product.
- Regardless of the foregoing statements, CONTEC is not liable for any damages whatsoever (including damages for loss of business profits) arising out of the use or inability to use this CONTEC product or the information contained herein.
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
7
Page 15
1. Before Using the Product

Environment

Use this product in the following environment. If used in an unauthorized environment, the board may overheat, malfunction, or cause a failure.
Operating temperature
0 - 50°C
Humidity
10 - 90%RH (No condensation)
Corrosive gases
None
Floating dust particles
Not to be excessive

Inspection

Inspect the product periodically as follows to use it safely.
- Check that the bus connector of the board and its cable have been plugged correctly.
- Check that the board has no dust or foreign matter adhering.
- The gold-plated leads of the bus connector have no stain or corrosion.

Storage

When storing this product, keep it in its original packing fo rm. (1) Put the board in the storage bag. (2) Wrap it in the packing material, then put it in the box. (3) Store the package at room temperature at a place free from direct sunlight, moisture, shock,
vibration, magnetism, and static electricity

Disposal

When disposing of the product, follow the disposal procedures stipulated under the relevant laws and municipal ordinances.
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
8
Page 16
2. Setup
2. Setup
This chapter explains how to set up the board.

What is Setup?

Setup means a series of steps to take before the product can be used. Different steps are required for software and hardware The setup procedure varies with the OS and applications used.
Using the Board under Windows
Using the Standard COM Driver Software COM Setup Disk
This section describes the setup procedure to be performed before you can start developing application programs for the board using the bundled CD-ROM “Standard COM Driver Software - COM Setup Disk”.
Taking the following steps sets up the software and hardware. You can use the diagnosis program later to check whether the software and hardware function normally.
Step 1 Setting the Hardware Step 2 Installing the Hardware Step 3 Initializing the Software
On the CD-ROM, refer to the \PCI\Readmee.txt file and the installation instruct io ns fi les for e ach OS located in the \PCI\InstDoc.
If Setup fails to be performed normally, see the “Setup Troubleshooting” section at the end of this chapter.
Using the Board under Windows
Using the Driver Library API-PAC(W32)
Refer to the API-PAC(W32) "Hardware Installation Procedure (HWINST.CHM)" help file for the procedure to follow when using API-SIO in the "Driver Library API-PAC(W32)".
If using API-SIO from API-PAC(W32), install from API-PAC(W32) instead of from the supplied CD-ROM.
See also the following parts of this manual as required.
This chapter Step 1 Setting the Hardware
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
9
Page 17
2. Setup
Using the Board under Linux
Using the Standard COM Driver Software COM Setup Disk
You can perform application program development using the "Standard COM Driver Software - COM Setup Disk" in the supplied CD-ROM. The procedure for using the software is described in the \Linux\Readmee.htm file.
See also the following parts of this manual as required.
This chapter Step 1 Setting the Hardware

Operating Systems Other than Windows or Linux

Refer to the following if using on an OS other than Windows or Linux.
This chapter Step 1 Setting the Hardware Chapter 4 Functions Chapter 6 About Hardware
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
10
Page 18
2. Setup

Step 1 Setting the Hardware

This section describes how to set the board and plug it on your PC. The board has some switches and jumper to be preset. Check the on-board switches and jumpers before plugging the board into an expansion slot. The board can be set up even with the factory defaults untouched. You can change board settings later.

Replacing the Bracket

The board is shipped wit h the br acket for Low Pr ofile PCI. If y ou wish to m ount the boar d in a PCI slot, replace this with the PCI bracket. The diagram below shows how to replace the bracket.
Bracket for the PCI
Remove the screws and replace the low-profile PCI bracket with the standard PCI bracket.
Bracket for the Low Profile PCI
Screw
Use a flathead screwdriver or hexagonal spanner to undo and tighten the screws.
Figure 2.1. Replacing the Bracket
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
11
Page 19
2. Setup

Parts of the Board and Factory Defaults

Figure 2.2. - Figure 2.4 shows the names of major parts on the board. Note that the switch setting shown below is the factory default.
COM-1(LPCI)H
- Interface connector (CN1)
COM-1(LPCI)H
Figure 2.2. Component Locations < COM-1(LPCI)H >
COM-2(LPCI)H
SW1
BOARD ID
JP1
Board ID setting switch
(SW1)
- PCI bus slot power voltage setting jumper
123
SW1
BOARD ID
9
8
7
A
6
B
5
4
3
E
2
F
1
0
C
D
JP1
- Interface connector (CN1)
Board ID setting switch
COM-2(LPCI)H
SW1
BOARD ID
JP1
(SW1)
- PCI bus slot power voltage setting jumper
123
SW1
BOARD ID
9
8
7
A
6
B
5
4
3
E
2
F
0
1
C
D
JP1
Figure 2.3. Component Locations < COM-2(LPCI)H >
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
12
Page 20
2. Setup
COM-4(LPCI)H
- Interface connector (CN1)
Board ID setting switch
COM-4(LPCI)H
SW1
BOARD ID
JP1
(SW1)
- PCI bus slot power voltage setting jumper
123
JP1
SW1
BOARD ID
8
9
7
A
6
B
5
4
3
E
2
F
0
1
C
D
Figure 2.4. Component Locations < COM-4(LPCI)H >
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
13
Page 21
2. Setup

Setting the Board ID

If you install two or more boards on one personal computer, assign a different ID value to each of the boards to distinguish them.
The board IDs can be set from 0 - Fh to identify up to sixteen boards. If only one board is used, the original factory setting (Board ID = 0) should be used.
Setting Procedure To set the board ID, use the rotary s wit ch on th e bo ard. Turn the SW1 using, for example, a standard
screwdriver, to set the a rro w to th e boa rd ID .
SW1
BOARD ID
8
9
7
A
6
B
5
C
4
D
3
E
Factory setting:
2
F
1
0
(Board ID = 0)
Figure 2.5. Board ID Settings (SW1)

Setting the Supply Voltage

Some PCI bus slots on the PC may supply power only at 3.3 V, where 5 V power is not available. In that case, change the supply voltage of the board before use.
Setting method To set the PCI bus slot supply voltage, use the on-board jumper. When 5 V power is supplie d, set t he J P1 t o the 2- 3 connected state (factory de fa ult). If 5 V power is not
supplied, set the JP1 to the 1-2 connected state.
If outputting 5V power supply
123
JP1
(Factory setting)
If not outputting 5V power supply
123
JP1
Figure 2.6. Setting the Supply Voltage
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
14
Page 22
2. Setup

Plugging the Board

(1) Before plugging the board, shut down the system, unplug the power code of you r PC. (2) Remove the cover from the PC so that the board can be mounted. (3) Plug the board into an expansion slot. (4) Attach the board bracket to the PC with a screw. (5) Put the cover back into place.
Applicable PCI bus slots PCI bus slots used in PCs have keys to prevent 5V and 3.3V PCI bus boards from being accidentally
plugged into wrong bus slots. This board can be plugged into both of the 5V and 3.3V PCI bus slots.
<PCI bus slot> <PCI bus board>
5-V PCI bus slot
3.3-V PCI bus slot
3.3V key
CAUTION
5V key
A :
Slit for 5-V PCI bus slot
B :
Slit for 3.3-V PCI bus slot
AB
- Do not touch the board's metal plated terminals (edge connector) with your hands. Otherwise, the board may malfunction, overheat, or cause a failure. If the terminals are touched by someone's hands, clean the terminals with industrial alcohol.
- Do not install or remove the board to or from the slot while the computer's power is turned on. Otherwise, the board may malfunction, overheat, or cause a failure. Doing so could cause trouble. Be sure t hat the pe rson al com puter or t he I/O e xpan sion unit pow er is turned off.
- Make sure that your PC or expansion unit can supply ample power to all the boards installed. Insufficiently energized boards could malfunction, overheat, or cause a failure.
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
15
Page 23
2. Setup

Step 2 Installing the Hardware

For using an expansion board under Windows, y ou have t o let the OS detect the I /O addresses and IRQ to be used by the board. The process is referred to as installing the hardware.
In the case of using two or more boar ds, make sur e you install one by one with the F ound New Hardware Wizard.

Turning on the PC

Turn on the power to your PC.
CAUTION
- Refer to the API-PAC(W32) "Hardware Installation Procedure (HWINST.CHM)" help file for the procedure to follow when using API-SIO in the "Driver Library API-PAC(W32)". If using API-SIO from API-PAC(W32), install from API-PAC(W32) instead of from the supplied CD-ROM. If you install from the CD-ROM by mistake, uninstall API-SIO as described in "Uninstalling the Driver Software" in "Chapter 5 Software".
- The board cannot be properly installed unless the resources (I/O addresses and interrupt level) for the board can be allocated. Before attempting to install the board, first determ ine what PC resource s are free to use.
- The resources used by each board do n ot depend on the loca tion of the PCI bus sl ot or the board itsel f. If you remove two or m ore boar ds t hat ha ve alr eady been i nstall ed an d the n rem ount one of t hem on the computer, it is unknown that which one of the sets of resources previously assigned to the two boards is assigned to the remounted board. In this case, you must check the resource settings.
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
16
Page 24
2. Setup

Windows 8, 7

(1) Select “Devices and Printers” from the Start menu*1 and select the PC to which this board is
attached. Click on the device “PCI Serial Port” (or “PCI Simple Communication Controller”) and open its properties by clicking the [Properties] button.
*1 Please search for “Devices and Printers” case of Windows 8.
* The category of the board you have just added is
displayed.
- PCI Serial Port (or “PCI Simple Communication Controller”)
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
17
Page 25
2. Setup
(2) In the “PCI Serial `Port Properites (or “PCI Simple Communications Controller Properites”) page,
click the [Change settings] button and edit the settings as an Administrator. Then click the [Update Driver...] button.
* The category of the board you have just added is
displayed.
- PCI Serial Port (or “PCI Simple Communications Controller Properites”)
2
1
(3) The Driver Installation Wizard is open. Click “Browse my computer for driver software”.
(4) Specify that folder on the CD-ROM which contains the setup information (INF) file to regis te r the
board.
- Source folder \PCI \ComDrv
You have now finished installing the hardware.
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
18
Page 26
2. Setup

Windows Server 2008, Windows Vista

(1) “Found New Hardware” wizard is open. Click “Locate and install driver software”.
* The category of the board you
have just added is displayed.
- PCI Serial port
(2) When the “Found New Hardware” window is displayed, insert the accompanying CD-ROM “COM
Setup Disk” into the CD-ROM drive. After a while, the device installation process begins.
You have now finished installing the hardware.
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
19
Page 27
2. Setup

Windows Server 2003, Windows XP, Windows 2000

(1) The “Found New Hardware Wizard” will be started.
Select “Install from a list or specific location”, then click on the [Next] button. If you are using Windows NT 4.0, the “Found New Hardware Wizard” is not started. Go to Step 3 “Initializing the Software”.
* The name of the board you have just added is displayed.
- COM-1(LPCI)H
- COM-2(LPCI)H
- COM-4(LPCI)H
(2) Specify that folder on the CD-ROM which contains the setup information (INF) file to reg is ter the
board.
- Source folder \PCI\ComDrv
* The name of the board you have just added is displayed.
- COM-1(LPCI)H
- COM-2(LPCI)H
- COM-4(LPCI)H
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
20
Page 28
2. Setup
CAUTION
In Windows XP, the Hardware Wizard displays the following alert dialog box when you have
located the INF file. This dialog box appears, only indicating that the releva nt dr iver has not passe d Windows Logo testing, an d it ca n be i gnored without developing any prob lem wit h t he oper a ti on of the board.
In this case, click on the [Continue Anyway] button.
(3) Installation of the "Communication Port" starts next. If prompted for a file by the OS, specify the
location of the setup information (INF) file, as described above.
You have now finished installing the hardware.
* The name of the board you have just added is displayed.
- COM-1(LPCI)H
- COM-2(LPCI)H
- COM-4(LPCI)H

The check method of the completion of hardware installation

(1) Select "System" from "Control Panel" and open [Device Manager]. (2) Check that the names of the boards you are using are registered correctly in the [Multifunction
adapters] fol der.
(3) Similarly, confirm that the COM ports have been added in the [Ports] folder.
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
21
Page 29
2. Setup

Step 3 Initializing the Software

This assigns COM ports to the serial p orts on the boar d. In case of Windows 8, 7, Ser ver 2008, Vista, XP, Server 2003 and 2000, you can also change a previously assign ed C OM port nu mber to a d ifferent number.

For use under Windows 8, 7, Server 2008, Vista, XP , S erver 2003, 2000

On Windows 8, 7, Server 2008, Vista, XP, Server 2003 and 2000, the COM ports are already assigned by the hardware installation step. Run Device Manager as described below if you wish to view or modify the COM port settings.
Start Device Manager (1) Select "System" from "Control Panel" and start [Device Manager].
* The name of the board you have just added is displayed.
- COM-1(LPCI)H
- COM-2(LPCI)H
- COM-4(LPCI)H
(2) Check that the new COM ports are displayed in the [Ports] folder.
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
22
Page 30
2. Setup
Updating the Settings (1) If you wish to change a port number, open the properties page for the port and click the
[Advanced…] button under [Port Settings ]. (2) Use the [COM Port Number] combo box to modify the COM port number. (3) Clicking the [Advanced...] button opens the “Advanced Settings for COMn” window.
- Use the “COM Port Number” combo box to select the COM port number.
- By selecting the “Compulsion Half-Duplex”, the software settings are forced to switch from full-duplex communication to half-duplex.
- By selecting the “Used Serial Mice”, support for the serial mouse devices is enabled.
You have now finished installing the initial setting of Software.
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
23
Page 31
2. Setup

For use under Windows NT, Me, 98 or 95

Installing the setup information (INF) file. This procedure only applies to Windows NT. (1) Right click on the \PCI\ComDrv\COMNT_PI.INF file in the CD-ROM, then left click on the
[Install] button.
Invoking API-TOOL Configuration (1) Execute C:\CONTEC\Config.exe.
* The name of the board you have just added is displayed.
- COM-1(LPCI)H
- COM-2(LPCI)H
- COM-4(LPCI)H
(2) Check that [COM-DRV Setting] appears on the screen.
If a different driver name appears, execute [Tools] - [COM-DRV].
(3) Windows NT, execute [Edit] - [Ad d Board] to register the board type, COM port number and related
settings. Alternatively, double click on a board type name that is already displayed on the screen and modify the COM port number and related settings. On other than Windows NT, double click on the board type na me that is already displayed on the screen and modify the COM po rt numbe r and re lated s ettin gs .
Updating the Settings (1) Select “Save settings to registry…” from the “File” menu. (2) After rebooting, the registered COM ports are now able to be used as standard COM ports.
You have now finished installing the initial setting of Software.
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
24
Page 32
2. Setup

Step 4 Checking Operations with the Diagnosis Program

Use the diagnosis program to check that the board and driver software work normally, thereby you can confirm that they have been set up correctly.

What is the Diagnosis Program?

These programs perform some simple checks on the board operation. Two programs are provided.
Terminal program (CTstCom.exe) Data entered from the keyboard is sent d irect ly from the por t. The functio n o f the pro gram is eq uiva lent
to the Hyper Terminal program provided with Windows.
Serial Communications Diagnostic Program (CommChk.exe) Performs actual communications and indicates whether the results are correct or not (error).
The following describes the procedure for testing using the serial communications diagnostic program (CommChk.exe).

Check Method

Obtain an RS-232C cross cable. If you do not have a cross cable, you can use a switch on the board to perform testing of a single COM port using loopback communications. See the figure below for the switch settings.
Switch setting for using a cross cable
< 9pin >
Board side
TxD
3
RxD
2
RTS
7
CTS
8
DTR
4
DSR
6
< 25pin >
Board side
TxD
RxD
RTS
CTS
20
DTR
DSR
2
3
4
5
6
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
25
Page 33
2. Setup

Using the Diagnosis Program

Starting the Diagnosis Program Run\Utility\CommChk\CommChk.exe from the supplied CD-ROM.
Communication Settings COM Setup: Sp ecif y the number of the COM po rt you wish to test.
If connecting two COM ports via a cross cable, specify the respective COM ports in [Device1] and [Dev ic e2] . When performing loopback communications on a single COM port, set the same port number in both [Device 1] and [Device 2].
Communication Settings: Specify the [Bits / Second], [Data bits] and other settings you wish to use.
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
26
Page 34
2. Setup
Start test Click the [Start] button to start the test using the specified conditions.
View test result The test result is displayed in the [Message] window.
A successful completion message appears if the test completed OK.
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
27
Page 35
2. Setup

Setup Troubleshooting

Symptoms and Actions

The board cannot be initialized. [Windows NT 4.0] The driver may not yet be activated.
When using the board under an OS not compliant with Plug and Play, such as Windows NT 4.0, make sure that the [PnP OS] BIOS option has been set to [NO], [disable], or [Do not use]. For details on BIOS settings, refer to the user’s guide for your PC.
Incorrect driver software was installed by mistake [Windows 8, 7, Server 2008, Vista, XP, Server 2003, 2000]
The API-SIO software from the "Driver Library API-PAC(W32)" cannot be installed in the PC at the same time as the "Standard COM Driver Software COM Setup Disk" from the supplied CD-ROM. The COM Setup Disk and the API-SIO software from API-PAC(W32) are intended for different purposes. Please only use the software that is applicable for your intended use. If the incorrect software is installed by mistake, please uninstall the incorrect software then install the correct software.

If your problem cannot be resolved

Contact your retailer.
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
28
Page 36
3. External Connection

3. External Connection

This chapter describes the interface connectors on the board. Check the information available here when connecting an external device. In addition to connecting directly to the connector on the board, you can also connect external devices
via a distribution cable or distribution unit.
- Connecting directly to the port connector.
- Using a distribution cable [ COM-2(LPCI)H, COM-4(LPCI)H ]

In the case of COM-1(LPCI)H

Connecting it directly from the on-board connector

When connecting directly from the connector on the board to the external device, use the appropriate cable which can be purchased separately. If making your own cable, use a CN5-D9F or similar connector which can be purchased separately.
Pin Assignment
Screw nut: UNC#4-40(inch screw)
6
CN1
9
1
- Connector used DELC-J9PAF-20L9 (mfd. by JAE, Male)equivalent
5
- Applicable connector 17JE-13090-02(D8C) (mfd. by DDK, Female)
CN5-D9F (mfd. by CONTEC, Female) (Five connector
Figure 3.1. Interface Connector < COM-1(LPCI)H >
DCD1 Data Carrier Detect
Data Set Ready DSR1
Request to Send RTS1
Clear to Send CTS1
Ring Indicator RI1
1
6
RxD1 Receive Data
2
7
TxD1 Transmit Data
3
8
DTR1 Data Terminal Ready
4
9
SG1 Signal Ground
5
CN1
Figure 3.2. Pin Assignments of Interface Connector < COM-1(LPCI)H >
Cable (Option) RS-232C Straight Cable with D-SUB9P (1.8m) RSS-9M/F RS-232C Cross Cable with D-SUB9P (1.8m) RSC-9F
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
29
Page 37
3. External Connection

In the case of COM-2(LPCI)H

When using a COM-2(LPCI)H, an alternative to connecting an external device directly to the connector on the board is to use a connection conversion cable.

Using the 9-pin D- S UB Co nnect or Conversion Cables

Use a PCE44/9P2S connection conversion cable (purchased separately) to connect to external devices after dividing into two 9-pin D-SUB male connector channels. Use cable suitable for use with 9-pin D-SUB connectors (purchase separately) with the two divided connectors.
TxD 1
TxD 2
5 4 3 2 1
5 4 3 2 1
CH1
CH2
9
RI 1
8
CTS 1
7
RTS 1
6
DSR 1
9
RI 2
8
CTS 2
7
RTS 2
6
DSR 2
- Connector used 44-pin D-SUB, male connector Thumb screw : UNC #4-40 (inch screw)
- Cable 9-conductor shielded cable Cable length : 250mm Conductor size : AWG#28
- Connector used 9-pin D-SUB, male connector Thumb screw : UNC#4-40(inch screw)
- Applicable connectors 17JE-13090-02(D8C) (mfd. by DDK, Female)
CH1
CH2
SG 1
DTR 1
RxD 1
DCD 1
SG 2
DTR 2
RxD 2
DCD 2
Figure 3.3. Specification of “PCE44/9P2S”
Connection conversion (Option) Connection Conversion Cable (44M→9M x 2, 250mm) PCE44/9P2S
Cable (Option) RS-232C Straight Cable with D-SUB9P (1.8m) RSS-9M/F RS-232C Cross Cable with D-SUB9P (1.8m) RSC-9F RS-232C Connection Conversion Straight Cable (25M→9F, 1.8m) RSS-25M/9F RS-232C Connection Conversion Cross Cable (25F→9F, 1.8m) RSC-25F/9F
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
30
Page 38
3. External Connection

Connecting it directly from the on-board connector

If connecting an external device directly from the connector on the board, use an optional connector CN5-D44M for creating your own cables.
Pin Assignment
Screw nut: UNC#4-40(inch screw)
44
31
Figure 3.4. Interface Connector < COM-2(LPCI)H >
Figure 3.5. Pin Assignments of Interface Connector < COM-2(LPCI)H >
30 15
- Connector used 44-pin D-SUB, female connector 103A-44FGTBBB3 (mfd. by COXOC)equivalent
1
- Applicable connector 101A-44MGTAAA3 (mfd. by COXOC, Male)
16
CN5-D44M (mfd. by CONTEC, Male) (Five connector set)
30
44
31
16
CN1
Pin No. Signal name Pin No. Signal name Pin No. Signal name
15
1
44 DCD1 30 DSR1 15 CTS1
43 TxDC1 29 RxD1 14 RI1
42 SG1 28 RTS1 13 DTR1
41 N.C. 27 N.C. 12 N.C.
40 DCD2 26 DSR2 11 CTS2
39 TxD2 25 RxD2 10 RI2
38 SG2 24 RTS2 9 DTR2
37 N.C. 23 N.C. 8 N.C.
36 N.C. 22 N.C. 7 N.C.
35 N.C. 21 N.C. 6 N.C.
34 N.C. 20 N.C. 5 N.C.
33 N.C. 19 N.C. 4 N.C.
32 N.C. 18 N.C. 3 N.C.
31 N.C. 17 N.C. 2 N.C.
--------- 16 N.C. 1 N.C.
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
31
Page 39
3. External Connection

In the case of COM-4(LPCI)H

When using a COM-4(LPCI)H, an alternative to connecting an external device directly to the connector on the board is to use a connection conversion cable.

Using the 9-pin D- S UB Co nnect or Conversion Cables

Use a PCE44/9P4S connection conversion cable (purchased separately) to connect to external devices after dividing into four 9-pin D-SUB male connector channels. Use cable suitable for use with 9-pin D-SUB connectors (purchase separately) with the four divided connectors.
- Cable 9-conductor shielded cable Cable length : 250mm
- Connector used 44-pin D-SUB, male connector Thumb screw : UNC #4-40 (inch sc rew)
Conductor size : AWG#28
CH1
CH2
SG 1
DTR 1
RxD 1
DCD 1
TxD 1
5 4 3 2 1
CH1
9
RI 1
8
CTS 1
7
RTS 1
6
DSR 1
TxD 4
5 4 3 2 1
CH4
9
RI 4
8
CTS 4
7
RTS 4
6
DSR 4
CH3
SG 4
CH4
- Connector used 9-pin D-SUB, male connector Thumb screw : UNC#4-40(inch screw)
- Applicable connectors 17JE-13090-02(D8C) (mfd. by DDK, Female)
DTR 4
RxD 4
DCD 4
Figure 3.6. Specification of “PCE44/9P4S”
Connection conversion (Option) Connection Conversion Cable (44M→9M
4, 250mm) PCE44/9P4S
x
Cable (Option) RS-232C Straight Cable with D-SUB9P (1.8m) RSS-9M/F RS-232C Cross Cable with D-SUB9P (1.8m) RSC-9F RS-232C Connection Conversion Straight Cable (25M→9F, 1.8m) RSS-25M/9F RS-232C Connection Conversion Cross Cable (25F→9F, 1.8m) RSC-25F/9F
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
32
Page 40
3. External Connection

Connecting it directly from the on-board connector

If connecting an external device directly from the connector on the board, use an optional connector CN5-D44M for creating your own cables.
Pin Assignment
Screw nut: UNC#4-40(inch screw)
44
31
Figure 3.7. Interface Connector < COM-4(LPCI)H >
Figure 3.8. Pin Assignments of Interface Connector < COM-4(LPCI)H >
30 15
- Connector used 44-pin D-SUB, female connector 103A-44FGTBBB3 (mfd. by COXOC)equivalent
1
- Applicable connector 101A-44MGTAAA3 (mfd. by COXOC, Male)
16
CN5-D44M (mfd. by CONTEC, Male) (Five connector set)
30
44
31
16
CN1
Pin No. Signal name Pin No. Signal name Pin No. Signal name
15
1
44 DCD1 30 DSR1 15 CTS1
43 TxDC1 29 RxD1 14 RI1
42 SG1 28 RTS1 13 DTR1
41 N.C. 27 N.C. 12 N.C.
40 DCD2 26 DSR2 11 CTS2
39 TxD2 25 RxD2 10 RI2
38 SG2 24 RTS2 9 DTR2
37 N.C. 23 N.C. 8 N.C.
36 DCD3 22 DSR3 7 CTS3
35 TxD3 21 RxD3 6 RI3
34 SG3 20 RTS3 5 DTR3
33 DCD4 19 N.C. 4 N.C.
32 TxD4 18 DSR4 3 CTS4
31 SG4 17 RxD4 2 RI4
--------- 16 RTS4 1 DTR4
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
33
Page 41
3. External Connection

Types of Cable and Example Connections

When using an RS-232C interface, different cables are required depending on the type of device to which you are connecting (computer or modem, etc.). Check the requirements of the external device and select either a straight-through or cros se d (n ull m odem) cable as appropriate. If special treatment of the signal lines in the conn ec tor is requ ir ed, ensu re th at this is done in accordance with the specifications.
TxD
RxD
RTS
CTS
DTR
DSR
SG
(Transmit Data)
TxD
RxD
(Receive Data)
(Request t o Send)
RTS
CTS
(Clear to Send)
DTR
(Data Terminal Ready)
DSR
(Data Set Ready)
(Signal Ground)
SG
External device
Figure 3.9. Example Connection to a Modem (Straight cable)
TxD
RxD
RTS
CTS
DTR
DSR
SG
TxD
RxD
RTS
CTS
DTR
DSR
SG
External device
Figure 3.10. Example Connection to a PC (Cross cable)
TxD
RxD
RTS
CTS
DTR
DSR
SG
TxD
RxD
RTS
CTS
DTR
DSR
SG
External device
Figure 3.11. Example Connection to a Device
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
34
Page 42
4. Functions
4. Functions
This section describes the functions of the board.

Communication Function

Serial Data Transmission

Sends and receives data in accordance with the RS-232C standard. The baud rate for each channel can be set independently in the range 2 to 921 ,600bps by software.

RS-232C Control Lines

All ports include the RTS, CTS, DTR, and DSR control lines. The lines can be controlled or monitored by software from the application

Send and Receive Data Buffers

Each channel has a separate 128-byte send and 128-byte receive buffer. The buffers operate as FIFO buffers and help reduce the load on the CPU for high-speed
communications or system operation. The data buffer settings (Use FIFO ON/OFF and FIFO trigger size) are set by the Device Manager (on
Windows 8, 7, Server 2008, Vista, XP, Server 2003, 2000) and by the API-TOOL configuration (un der Windows NT, Me, 98, and 95).
The FIFO trigger size specifies the data buffer size and determines the timing for generating hardware interrupts.
Setting a large FIFO trigger size lightens the load on the CPU by reducing the number of hardware interrupts generated by sending or receiving data.
However, as data is not actually sent or received until a certain amount of data has accumulated, the timing at which the data reaches the opposing device is slightly delayed. Similarly, there is also a delay in the timing between data being received and the data being passed the application.
Alternatively, setting a small FIFO trigger size or disabling FIFO operation increases the speed of data sending and receiving but increases the load on the CPU and risks received data being missed.
As the FIFO trigger size is variable, you can adjust this sett ing to achie ve optim um perform ance for y our system.
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
35
Page 43
4. Functions

Setting the Baud Rate

The output baud rate can be s et by sett ing the appr opriate va lue to the Baud Rate Genera tor re gister. The available setting range depends on which clock mode is used.
Clock 3 mode: 15 - 921,600bps Clock 2 mode: 8 - 460,800bps Clock 1 mode: 4 - 230,400bps Clock 0 mode: 2 - 115,200bps
However, some baud rate values do not have a corresponding Baud Rate Generator register setting. If the result of substitutin g the baud r ate into the equation be low is an integer, then that baud rate can be set. If the result contains a fractional part, the baud rate cannot be set.
Clock 3 mode 921600 ÷ Desired baud rate = Division register setting value Ex.) 921600 ÷ 9600bps = 96 (As the result is an integer, this baud rate can be set.) 921600 ÷ 128000bps = 7.2 (As the result contains a fractional part, this baud rate cannot be set.)
Clock 2 mode 460800 ÷ Desired baud rate = Division register setting value Ex.) 460800 ÷ 9600bps = 48 (As the result is an integer, this baud rate can be set.) 460800 ÷ 128000bps = 3.6 (As the result contains a fractional part, this baud rate cannot be set.)
Clock 1 mode 230400 ÷ Desired baud rate = Division register setting value Ex.) 230400 ÷ 9600bps = 24 (As the result is an integer, this baud rate can be set.) 230400 ÷ 128000bps = 1.8 (As the result contains a fractional part, this baud rate cannot be set.)
Clock 0 mode 115200 ÷ Desired baud rate = Division register setting value Ex.) 115200 ÷ 9600bps = 12 (As the result is an integer, this baud rate can be set.) 115200 ÷ 76800bps = 1.5 (As the result contains a fractional part, this baud rate cannot be set.)
CAUTION
The "Driver Library API-PAC(W32)" and the "Standard COM Driver Software COM Setup Disk"
from the supplied CD-ROM use "Clock mode 3". (Fixed)
CAUTION
As Visual Basic's communication control (MSComm) accepts any available baud rate settings,
using the MSComm functionalities limits the rate to 115,200bps maximum. For setting the baud rate higher than 115,200bps using Visual Basic, refer to the VB sample program included in the accompanying CD-ROM “Standard COM Driver Software COM Setup Disk”.
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
36
Page 44
4. Functions
Refer to the following baud rate setting examples. Baud rates other than those listed below can also be set if they produce a valid setting value in the equation described above.
Table 4.1. Baud Rate Generator Programming Table
Clock 0 mode
Output
baud rate
2 57600 ---
4 28800 --- 57600 ---
5 23040 --- 46080 ---
8 14400 --- 28800 --- 57600 ---
15 7680 --- 15360 --- 30720 --- 61440 ---
50 2304 --- 4608 --- 9216 --- 18432 ---
75 1536 --- 3072 --- 6144 --- 12288 ---
110 1047 0.026 2094 0.026 4189 0.0022 8378 0.0022
134.5 857 0.058 1713 0.0006 3426 0.0006 6852 0.0006
150 768 --- 1536 --- 3072 --- 6144 ---
300 384 --- 768 --- 1536 --- 3072 ---
600 192 --- 384 --- 768 --- 1536 ---
1200 96 --- 192 --- 384 --- 768 ---
1800 64 --- 128 --- 256 --- 512 ---
2000 58 0.68 115 0.17 230 0.17 461 0.04
2400 48 --- 96 --- 192 --- 384 ---
3600 32 --- 64 --- 128 --- 256 ---
4800 24 --- 48 --- 96 --- 192 ---
7200 16 --- 32 --- 64 --- 128 ---
9600 12 --- 24 --- 48 --- 96 ---
14400 8 --- 16 --- 32 --- 64 ---
19200 6 --- 12 --- 24 --- 48 ---
28800 4 --- 8 --- 16 --- 32 ---
38400 3 --- 6 --- 12 --- 24 ---
57600 2 --- 4 --- 8 --- 16 ---
76800 3 --- 6 --- 12 ---
115200 1 --- 2 --- 4 --- 8 ---
153600 3 --- 6 ---
230400 1 --- 2 --- 4 ---
460800 1 --- 2 ---
921600 1 ---
(1.8432MHz)
Baud Rate Generator
register
Setup error
(%)
Clock 1 mode (3.6864MHz)
Baud Rate Generator
register
Setup
error
(%)
Clock 2 mode (7.3728MHz)
Baud Rate
Generator
register
Setup error
(%)
Clock 3 mode
(14.7456MHz)
Baud Rate Generator
register
Setup
error
(%)
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
37
Page 45
4. Functions
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
38
Page 46
5. About Software

5. About Software

The "Standard COM Driver Software COM Setup Disk" from the supplied CD-ROM provides the following functions.
- Operation under Windows and Linux.
- The serial ports can be used in the same way as the standard COM ports on the PC.
- The boards can be used for all types of serial communications such as for remote access service (RAS) and uninterruptible power supply (UPS) applications.
- Under Windows, the serial ports can be accessed using the standard Win32 API communication routines (CreateFile( ), WriteFile( ), ReadFile( ), and SetCommState( ), etc.)
- The serial ports are also compatible with the Visual Basic communication control (MSComm).
- Supports the communication class of .NET Framework (SerialPort class).
- Under Linux, the software functions as a standard Linux tty driver. The standard open( ), close( ), read( ), and write( ), etc. routines are supported.
Refer to the \PCI\Readmee.txt and \Linux\Readmee.htm files on the CD-ROM for details.

About Sample programs

Sample programs are provided in the \Samples folder on the CD-ROM. Use the sample programs for reference and testing when developing software.
Visual Basic sample programs (1) Transmit/Receive sample
- Sends data entered from the keyboard and displays received data on the screen.
- Source folder: \Samples\Vb folder
Visual Basic 2005 sample programs (1) Transmit/Receive sample
- Sends data entered from the keyboard and displays received data on the screen.
- Source folder: \Samples\VB.NET folder
Visual C# 2005 sample programs (1) Transmit/Receive sample
- Sends data entered from the keyboard and displays received data on the screen.
- Source folder: \Samples \VCS folder
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
39
Page 47
5. About Software
Visual C++ sample programs (1) Transmit sample
- Sends data entered from the keyboard. Execute from the command prompt.
- Source folder: \Samples\Vc\Comsend.c file (2) Receive sample
- Displays received data on the screen.
- Source folder: \Samples \Vc\Comread.c file
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
40
Page 48
5. About Software

Uninstalling the driver software

To uninstall the driver software installed from the COM Setup Disk, follow the procedure given below. For uninstall the driver from a Linux machine, refer to the \Linux\Readmej.htm file on the bundled CD-ROM.
About the uninstall function The install function deletes the COM-DRV driver and registry information, available from
[Add/Remove Programs]. This function can be used only in Windows XP/Server 2003/2000. In other OSs, you have to uninstall
the driver manually.

Windows XP, Server 2003, 2000

(1) Open the Control Panel and launch Device Manager from the [System] applet. (2) Expand [Multifunction adapters] and delete [CONTEC Co., Ltd-XXXXXXXXXX] (installed
hardware name).
(3) Start [Add/Remove Programs] from the Control Panel. (4) Select [CONTEC COM-DRV(WDM) driver] from the list of applications, then click the
[Add/Remove] button to automatically start the uninstall procedure.

Windows 8, 7, Server 2008, Vista

(1) Open the Control Panel and launch Device Manager from the [System] applet. (2) Expand [Multifunction adapters] and delete [CONTEC Co., Ltd-XXXXXXXXXX] (installed
hardware name). To also delete all the driver files, check [Remove this device software].

Windows Me, 98

CAUTION
[CONTEC COM-DRV(WDM) driver] is not listed by [Add/Remove Programs].
Take the following steps to manu all y un inst all th e dr ive r sof twa re. (1) Start Config.exe and , then select [COM-DRV] from the [Tools] menu.
If any piece of hardware (board) has been registered, delete it. If not, leave the tool as it is. (2) Open the Control Panel and launch Device Manager from the [System] applet. (3) Delete [CONTEC Co., Ltd-XXXXXXXXXX] (installed hardware name) displayed on the
[Multifunction adapters].
(4) Start Windows Explorer. (5) Select [Folder Options] from the [Tools] menu. (6) Click the [View] tab. (7) Check [Show hidden files and folders] (or [Show all files]), then click [OK]. (8) Right-click on the \Windows\Inf folder and choose [Search].
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
41
Page 49
5. About Software
(9) Enter the model name of the hardware used ( for example, COM-2(LP CI)H) in the [Containi ng text:]
field, then click the [Search Now] button. Be careful not to enter text in the [Search for files or folders named:] (or [Name]) field. (10) Delete all the files detected by the search. (11) Delete files from the C:\Contec folder. (12) Delete ComDrv95.vxd from the \Windows\system folder.

Windows NT

Take the following steps to manu all y un inst all th e dr ive r sof twa re. (1) Delete files from the C:\Contec folder. (2) Delete ComDrv.sys from the \Winnt\system32\drivers folder.
Installing the API-PAC(W32) API-SIO Driver in the Windows Vista/XP/Server 2003/2000 Environment
(1) Run SETUP.EXE from the API-PAC(W32) CD-ROM or from the file (* hereafter
API-PAC(W32)) downloaded fro m th e Con t ec' s down lo ad site to inst all the AP I-SIO d river . (2) Reboot your OS, and the Hardware Wizard will be started. (3) During the installation, you will be prom pted for an INF file. S pecify the API-PAC(W32) INF
folder designated for the OS and device type in use. (4) Run Config.exe to register the board.
[Notes]
If you install API-SIO from the API-PAC(W32) CD-ROM in Windows XP, uncheck [Search removable media (floppy, CD-ROM...)] at the [Please choose your search and installation options.] prompt. Leaving the option checked prevents the API-SIO driver from being installed normally. If you have installed it with that option checked, take the steps for "Uninstalling the Driver Software" again as described above.
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
42
Page 50
5. About Software

CD-ROM Directory Structure

\ |– Linux Linux device driver (for PCI boards and PC cards only) |– PCCARD PC card related files |– PCI PCI board related files | |– ComDrv Windows device driver and INF files, etc. | |– InstDoc Installation instructions for each OS. |– Samples Various sample programs | |– VB Sample program for Visual Basic | |– VC Sample program for Visual C++ | |– VB.NET Sample program for VisualBasic.NET (for SerialPortClass) | |– VCS Sample program for VisualC.NET (for SerialPortClass) |– USB USB related files |– UsersGuide Manual of hardware (PDF) |– UTILITY Various utilities |– CommChk Self diagnostic program (Loopback communication test) |– CTstCom Self diagnostic program (Terminal utility)
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
43
Page 51
5. About Software
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
44
Page 52
6. About Hardware
6. About Hardware
This chapter provides hardware specifications and hardware-related supplementary information.

For detailed technical information

For further detailed technical information (“Technical Reference” including the information such as an I/O map, configuration register, etc.), visit the Contec's web site (http://www.contec.com/support/) to call for it.
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
45
Page 53
6. About Hardware

Hardware specification

Tables 6.1 - 6.3 list the board specifications.
COM-1(LPCI)H
Table 6.1. Specification
Item Specification
Number of channels 1ch
Interface type RS-232C
Transfer method Asynchronous serial transfer
Baud rate 2 - 921,600bps *1 *2
Data length 5, 6, 7, 8 bits
Parity check Even, Odd, Non-parity *1
Controller chip 162850 or equivalent
Connecting distance 15m(Typ.)
Interrupt requests 1 level use *3
I/O address Any 32-byte boundary
Operating temperature 0 - 50°C, 10 - 90%RH(No condensation)
Bus specification PCI (32bit, 33MHz, Universal key shapes supported *4)
Dimension (mm) 121.69(L) x 63.41(H)
Connector used 9-pin D-SUB connector, DELC-J9PAF-20L9 [mfd. by JAE, M(male) type] equivalent
Weight 60g
*1 These items can be set by software.
For the "Driver Library API-PAC(W32)" and the "Standard COM Driver Software COM Setup Disk" on the supplied CD-ROM, the range is 15 - 921,600 bps.
*2 Data transmission at high speed may not be performed normally depending on the environment including the
type of status of connected material of cable and environment. *3 The interrupt signals from all channels are connected as a single interrupt signal on the PCI bus.
*4 Boards with different board numbers are different in these specifications. See Table 6.4 "Different in the
specification" at the end of this document.
1, 1.5, 2 stop bits *1
(Each channel has 128-byte receive and 128-byte transmit FIFO buffers.)
3.3VDC 160mA (Max.) (JP1 pins 1 and 2 connected) *4 Power consumption
5VDC 160mA (Max.) (JP1 pins 2 and 3 connected) *4
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
46
Page 54
6. About Hardware
COM-2(LPCI)H
Table 6.2. Specification
Item Specification
Number of channels 2ch
Interface type RS-232C
Transfer method Asynchronous serial transfer
Baud rate 2 - 921,600bps *1 *2
Data length 5, 6, 7, 8 bits
1, 1.5, 2 stop bits *1
Parity check Even, Odd, Non-parity *1
Controller chip 162850 or equivalent
Connecting distance 15m(Typ.)
Interrupt requests 1 level use *3
I/O address Any 32-byte boundary
Operating temperature 0 - 50°C, 10 - 90%RH(No condensation)
Bus specification PCI (32bit, 33MHz, Universal key shapes supported *4)
Dimension (mm) 121.69(L) x 63.41(H)
Connector used 44-pin D-SUB, female connector
Weight 60g
*1 These items can be set by software.
For the "Driver Library API-PAC(W32)" and the "Standard COM Driver Software COM Setup Disk" on the supplied CD-ROM, the range is 15 - 921,600 bps.
*2 Data transmission at high speed may not be performed normally depending on the environment including the
type of status of connected material of cable and environment. *3 The interrupt signals from all channels are connected as a single interrupt signal on the PCI bus.
*4 Boards with different board numbers are different in these specifications. See Table 6.4 "Different in the
specification" at the end of this document.
(Each channel has 128-byte receive and 128-byte transmit FIFO buffers.)
3.3VDC 170mA (Max.) (JP1 pins 1 and 2 connected) *4 Power consumption
5VDC 170mA (Max.) (JP1 pins 2 and 3 connected) *4
103A-44FGTBBB3 (mfd. by COXOC)equivalent
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
47
Page 55
6. About Hardware
COM-4(LPCI)H
Table 6.3. Specification
Item Specification
Number of channels 4ch
Interface type RS-232C
Transfer method Asynchronous serial transfer
Baud rate 2 - 921,600bps *1 *2
Data length 5, 6, 7, 8 bits
1, 1.5, 2 stop bits *1
Parity check Even, Odd, Non-parity *1
Controller chip 162850 or equivalent
Connecting distance 15m(Typ.)
Interrupt requests 1 level use *3
I/O address Any 32-byte boundary
Operating temperature 0 - 50°C, 10 - 90%RH(No condensation)
Bus specification PCI (32bit, 33MHz, Universal key shapes supported *4)
Dimension (mm) 121.69(L) x 63.41(H)
Connector used 44-pin D-SUB, female connector
Weight 60g
*1 These items can be set by software.
For the "Driver Library API-PAC(W32)" and the "Standard COM Driver Software COM Setup Disk" on the supplied CD-ROM, the range is 15 - 921,600 bps.
*2 Data transmission at high speed may not be performed normally depending on the environment
including the type of status of connected material of cable and environment. *3 The interrupt signals from all channels are connected as a single interrupt signal on the PCI bus.
*4 Boards with different board numbers are different in these specifications. See Table 6.4 "Different
in the specification" at the end of this document.
(Each channel has 128-byte receive and 128-byte transmit FIFO buffers.)
3.3VDC 210mA (Max.) (JP1 pins 1 and 2 connected) *4 Power consumption
5VDC 210mA (Max.) (JP1 pins 2 and 3 connected) *4
103A-44FGTBBB3 (mfd. by COXOC)equivalent
Board Dimensions [ COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H ]
121.69(L)
63.41(H)
The standard outside dimension (L) is the distance from the end of the board to the outer surface of the slot cover.
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
48
[mm]
Page 56
6. About Hardware

Differences between the COM-1(LPCI)H, COM-2(LPCI)H and COM-4(LPCI)H

The COM-1(LPCI)H, COM-2(LPCI)H, and COM-4(LPCI)H are different in specifications, depending on the board number as listed below.
Table 6.4. Different in the specification
COM-1(LPCI)H
Board No. No.7211 No.7211A No.7211B
PCI bus specification 32bit, 33MHz 32bit, 33MHz 32bit, 33MHz
Universal key shapes supported Absent*1 Present*2 Present*2
Power voltage setting jumper (JP1)
Power consumption 5VDC 150mA(Max.) 5VDC 100mA(Max.)
COM-2(LPCI)H
Board No. No.7219 No.7219B No.7219C
PCI bus specification 32bit, 33MHz 32bit, 33MHz 32bit, 33MHz
Universal key shapes supported Absent*1 Present*2 Present*2
Power voltage setting jumper (JP1)
Power consumption 5VDC 150mA(Max.) 5VDC 100mA(Max.)
COM-4(LPCI)H
Board No. No.7210A No.7210B No.7210C
PCI bus specification 32bit, 33MHz 32bit, 33MHz 32bit, 33MHz
Universal key shapes supported Absent*1 Present*2 Present*2
Power voltage setting jumper (JP1)
Power consumption 5VDC 150mA(Max.) 5VDC 150mA(Max.)
*1 : 5 V is supplied to the 5V pin.
*2 : Power voltage is set by jumper.
Absent Present Present
5VDC 160mA(Max.)
3.3VDC 100mA(Max.)
Absent Present Present
3.3VDC 100mA(Max.)
Absent Present Present
3.3VDC 150mA(Max.)
3.3VDC 160mA(Max.)
5VDC 170mA(Max.)
3.3VDC 170mA(Max.)
5VDC 210mA(Max.)
3.3VDC 210mA(Max.)
COM-1(LPCI)H, COM-2(LPCI)H, COM-4(LPCI)H
49
Page 57
COM-1(LPCI)H
COM-2(LPCI)H COM-4(LPCI)H
User’s Guide
CONTEC CO.,LTD. August 2013 Edition
3-9-31, Himesato, Nishiyodogawa-ku, Osaka 555-0025, Japan Japanese http://www.contec.co.jp/ English http://www.contec.com/ Chinese http://www.contec.com.cn/
No part of this document may be copied or reproduced in any form by any means without prior written consent of CONTEC CO., LTD. [08302013]
[04112003] Management No. A-46-740 [08302013_rev6] Parts No. LYCP244
Loading...