Contec AD12-64(PCI), AD12-16(PCI) User Manual

AD12-64(PCI) AD12-16(PCI)
64/16 Channel Analog to Digital Input
Board for PCI
User’s Guide
Copyright
Copyright 1999 CONTEC Co., LTD. ALL RIGHTS RESERVED No part of this document may be copied or reproduced in any form
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 nor for results obtained by the user as a result of using this product.
Trademarks
MS, Microsoft, MS-DOS and Windows are trademarks of Microsoft Corporation. Other brand and product names are trademarks of their respective holder.
AD12-64(PCI), AD12-16(PCI) i
Product Configuration
- AD12-64(PCI)/AD12-16(PCI) board…1
- User's Guide (This Booklet)…1
Unpacking:
This board is specially packed in an anti-static bag to prevent damage in shipping.
Check the contents to make sure that you have everything listed above. If you do not have all the items, contact your distributor or CONTEC group office where you purchased.
Note!
Do not remove the board from its protective packaging until the computer case is open and ready for installation. Electrical static can cause damage to electrical components.
AD12-64(PCI), AD12-16(PCI)ii
Table of Contents
Copyright............................................................................i
Trademarks ........................................................................i
Product Configuration ..................................................... ii
1. Introduction .............................................................1
Features.........................................................................1
Limited Three-Year Warranty......................................3
How to Obtain Service..................................................3
Liability .........................................................................3
About this Manual ........................................................ 4
2. Setup ....................................................................... 5
Setup Components of the Board.......................................5
Names of Components ..................................................5
Setting on Board Jumpers and Switch ............................6
Setting the Board ID.....................................................6
Setting procedure..........................................................6
Installing the Board on Your PC and Turning
the Power On.....................................................................6
Setting up the Board.........................................................7
Installing for Windows 98 ............................................7
Installing for Windows 95 .......................................... 11
Installing for Windows NT .........................................18
Installing for other OS System .................................. 19
3. Connecting an External Device................................21
Interface Connector.........................................................21
AD12-64(PCI) CN1 Pin Assignments to Signals.......21
AD12-16(PCI) CN1 Pin Assignments to Signals.......23
Connecting the Analog Input Signals ............................25
Connection example in single-ended input mode......25
Connection example in differential input mode........27
Connecting the Digital Input/Output Signals and
Control Signals................................................................29
AD12-64(PCI), AD12-16(PCI) iii
4. Functions and Operating Procedures........................ 31
Functional Overview.......................................................31
Description ......................................................................31
Analog Input Function ...............................................31
Initialization process ..................................................33
Specifying sampling conditions.................................. 34
Specifying input range................................................36
Setting internal sampling clock .................................38
Starting sampling operation ...................................... 39
Feeding conversion data.............................................40
Details of analog input status ....................................42
Digital input function .................................................44
Digital output function ............................................... 44
Interrupt function.......................................................45
External trigger ..........................................................47
Timer ........................................................................... 48
Status of external trigger and timer..........................50
I/O address map list....................................................51
Command list .............................................................. 53
5. Sample Program for MS-DOS.................................. 55
Preparation .................................................................56
6. Calibration Procedures............................................ 59
7. System Reference.................................................... 61
Specifications...................................................................61
Block Diagram.................................................................62
External Sampling Clock Operation Timing .................63
8. Index ..................................................................... 65
AD12-64(PCI), AD12-16(PCI)iv
List of Figures
Figure 2.1. Names of Components..............................................5
Figure 2.2. Board ID Setting (SW1)........................................... 6
Figure 3.1. AD12-64(PCI) CN1 Pin Assignments to Signals.... 21
Figure 3.2. AD12-16(PCI) CN1 Pin Assignments to Signals.... 23
Figure 3.3. Connection for the Single-ended Input (via a Flat
Cable)..................................................................... 25
Figure 3.4. Connecting the Single-end Input (via a shielded
Cable)..................................................................... 25
Figure 3.5. Connection for the Differential Input (via a Flat
Cable)..................................................................... 27
Figure 3.6. Connection for the Differential Input (via a Shielded
Cable)..................................................................... 27
Figure 3.7. Connecting the Control Signal Inputs..................... 29
Figure 3.8. Connecting the Control Signal Outputs.................. 29
Figure 4.1. Basic operation for analog input............................. 32
Figure 4.2. Analog input procedures......................................... 32
Figure 4.3. Procedures for setting input range .......................... 36
Figure 4.4. Input conversion data ............................................. 40
Figure 4.5. Timing for setting/resetting sampling busy status... 42 Figure 4.6. Timing for setting/resetting data overwrite error status
............................................................................... 43
Figure 6.1. Instruments for Calibration..................................... 59
Figure 7.1. Board Dimensions.................................................. 62
Figure 7.2. Circuit Block Diagram............................................ 62
Figure 7.3. External Sampling Clock Operation Timing Diagram
............................................................................... 63
AD12-64(PCI), AD12-16(PCI) v
List of Tables
Table 4.1. Input range and setting data ...................................... 36
Table 4.2. Example conversion data in a ±10 –volt range
conversion.............................................................. 40
Table 4.3. Output port list.......................................................... 51
Table 4.4. Input port list ............................................................ 52
Table 4.5. Command list............................................................ 53
Table 6.1. Correspondence between Analog Input Circuit
Adjusting Trimmers and Channels.......................... 59
Table 7.1. Specifications............................................................ 61
Table 7.2. Description for each portion...................................... 63
AD12-64(PCI), AD12-16(PCI)vi
1. Introduction
Thank you for purchasing our non-insulated type analog input board. The product is a PCI-compliant analog input board, which is provided with analog input function for converting analog signals into digital signals, digital input/output function, and programmable timer function. This board is used by inserting it in a PCI-bus expansion slot on a PC main unit or a slot on an I/O expansion unit. Read this manual carefully for setting up the board and connecting the board to peripheral devices. For building an application under Windows 98, Windows 95, or Windows NT environment, use optionally available support software.
Support software sold separately
API-PAC(W32) Ver. Aug. 1999 or later
The API-PAC(W32) does not necessarily support full functions of the board. Make sure specifications of the driver software before purchase.
Features
- Multi-channel analog input capability 64 single-ended analog inputs or 32 differential analog inputs (AD12-64(PCI)). 16 single-ended analog inputs or 8 differential analog inputs (AD12-16(PCI)). Single-ended or differential input is selected by software.
- 8-type selectable input ranges Input ranges are selectable among 8-types including both unipolar and bipolar inputs. Ranges are selectable for each channel, and changing ranges is allowed under operation.
- Sampling control Two types of sampling functions are provided, namely sampling by software command and periodical sampling in synchronization with sampling clock. Either a special-purpose clock signal on board or an external clock signal is selectable as a sampling clock.
Introduction
AD12-64(PCI), AD12-16(PCI) 1
Introduction
- Digital input/output The board is capable of four TTL-level digital inputs and four TTL-level digital outputs.
- Programmable timer function The board is provided with an independent programmable timer. The timer allows generating interrupts and outputting count-up signals at regular intervals. The timer can be monitored on the basis of status without using interrupt capability.
- External trigger input capability The board allows generating an interrupt by inputting a TTL-level digital signal. Also, trigger input can be monitored on the basis of status without using interrupt capability. Status of input signals can be monitored directly. This function is independent of other functions.
- Capability of generating interrupts by multiple causes The board is capable of monitoring sampling operation, programmable timer, or external trigger, etc. simultaneously.
- The following optional devices are available for easier connecting and wiring Relay terminal box EPD-96 * 96-pin half-pitch connector shield cable (one end)
PCA96PS
96-pin half-pitch connector shield cable (both ends)
PCB96PS
* An optional cable (PCB96PS) is required separately.
AD12-64(PCI), AD12-16(PCI)2
Limited Three-Year Warranty
CONTEC Interface boards are warranted by CONTEC Co., LTD. to be free from defects in material and workmanship for up to three years from the date of purchase by the original purchaser.
Repair will be free of charge only when this device is returned freight prepaid with a copy of the original 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 applicable if the device has been tampered with or damaged through 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.
Introduction
* 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 such defect or consequences that arise from inexperienced usage, misuse, or malfunction of this device.
AD12-64(PCI), AD12-16(PCI) 3
Introduction
About this Manual
This manual consists of the following chapters : Chapter 1 Introduction Chapter 2 Setup
Chapter 3 Connecting an External Device
Chapter 4 Functions and Operating Procedures
Chapter 5 Sample Program for MS-DOS
Chapter 6 Calibration Procedure
This chapter explains how to set up the board and to set its on-board switch before it can be used.
This chapter describes the interface connector of the board and provides precautions on the signal connection to an external device.
This chapter describes the functions and operating procedures of the board as well as the functions of the individual bits in the I/O ports.
This chapter describes the provided sample program.
This chapter describes the procedure for calibrating the board.
Chapter 7 System Reference
This chapter contains a major specifications list and circuit block diagram of the board.
Chapter 8 Index
AD12-64(PCI), AD12-16(PCI)4
2. Setup
Setup Components of the Board
Names of Components
Analog input adjusting trimmers
VR1 VR2 VR3 VR4
Board ID setting switch
SW1
BOARD ID
9
7
A
6
B
5
C
4
D
3
E
2
F
0
1
Setup
Signal connector
Figure 2.1. Names of Components
Note that the switch setting in the illustration is the factory default.
AD12-64(PCI), AD12-16(PCI) 5
Setup
Setting on Board Jumpers and Switch
Setting the Board ID
If you install two or more same type boards into one personal computer, set their respective board IDs to distinguish them. Assign a different value to each of the boards. The board IDs can be set from 0 to F to identify up to sixteen boards.
Setting procedure
To set the board ID, use the rotary switch. Turn the SW1 knob to set the board ID as shown below.
Figure 2.2. Board ID Setting (SW1)
Installing the Board on Your PC and Turning
the Power On
Make sure first that the main unit of your PC is off, then disconnect the power plug from the outlet of the equipment. Plug the board into a PCI expansion slot in the PC. When plugging the board, follow the relevant instructions in the manual for the PC. Make sure that the board has been plugged correctly, connect the power plug to the outlet of the equipment, then turn on the main unit of the PC. Even when you use an I/O expansion unit, install the board in the same way.
AD12-64(PCI), AD12-16(PCI)6
Setting up the Board
The board setup method depends on the operating system being used. Set up the board using the method appropriate for the OS that you are using.
Installing for Windows 98
Installing the board hardware
Before the board can be used under Windows 98, the OS must recognize the I/O addresses and interrupt level (IRQ) to be used for the board. Use the appropriate procedure to install the board.
(1) Set the board ID. (2) Be sure to check that the personal computer is off; then plug
the board into a PCI bus slot in the system. (3) Turn the personal computer ON to start up Windows 98. (4) Windows 98 will come up with the [New Hardware] detection
dialog box. In the [Add New Hardware Wizard] that appears
next, check that "PCI Multimedia Device" has been listed, then
select [Next>].
Setup
(5) In the next dialog box, select a radio button of [Search for the
best driver for your device. (Recommended).], then select
[Next>]. (6) In the next dialog box, select both of the [Floppy disk drives
(F)] and [Specify Location (L)] check boxes, then enter the
drive name and the directory name, WIN95, into the
[Location] field.
(In the next dialog box, select two check box both of [Floppy
disk drives] and [Specify Location:], then enter the drive name
in the [Location] field.)
Insert the attached FD into the disk drive, then select [Next>]. (7) In the [Windows driver file search for the device] dialog box,
check that "CONTEC Co., Ltd. - AD12-x(PCI)" and
"AIO_PI0.INF" in the [Location of driver] has been listed,
then select [Next>].
AD12-64(PCI), AD12-16(PCI) 7
Setup
(8) In the next dialog box, check the "Windows has finished
installing the software that your new hardware device
requires." message, then select [Finish]. After completed the
board installation, be sure to check the assigned resources.
The "Checking resources" part of this section explains you
how to check the OS assigned resources of this board. (When
board setup has been completed, be sure to check the assigned
resources.)
Method of installing two or more boards :
Follow the procedure below to install two boards for use under Windows 98.
(1) Check the board ID of the first board, plug it into a PCI bus
slot, then start up Windows 98 to install the first board
correctly. (2) Check that the first board has been set up correctly, as
described in "Checking resources". Be sure to complete
installation of the first board before attempting to install the
second one. (3) Exit Windows 98 and turn the personal computer off. (4) Check the board ID of the second board, then plug it into a PCI
bus slot. Assign ID to the second board a board ID that is
different from the ID assigned to the first board. (5) Turn the personal computer on again to start up Windows 98. (6) Windows 98 will come up with the [New Hardware] detection
dialog box. In the [Add New Hardware Wizard] that appears
next, check that "CONTEC Co., Ltd. - AD12-x(PCI)" has been
listed, then select [Next>]. (7) In the next dialog box, select a radio button of [Display a list
of all the drivers in a specific location, so you can select the
driver you want.], then select [Next>]. (8) In the next dialog box, select "CONTEC Co., Ltd. -
AD12-x(PCI) " from [Models], then select [Next>].
AD12-64(PCI), AD12-16(PCI)8
Notes!
Setup
(9) In the [Windows driver file search for the device] dialog box,
check that "CONTEC Co., Ltd. - AD12-x(PCI)" and
"CONTEC~*.INF" in the [Location of driver] has been listed,
then select [Next>]. (* is a number which the OS assigned.) (10) In the next dialog box, check the "Windows has finished
installing the software that your new hardware device
requires." message, then select [Finish]. This completes
installation of the board. After finishing installing the board,
be sure to check the assigned resources again. For installing the third board and any additional boards, follow the
same steps as those for installing a second board. Before you can install a third board or additional boards, all board that are already installed must be in PCI bus slots.
- The second 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 second board, first determine what PC resources are free.
- The resources used for each board do not depend on the location
of the PCI bus slot or the board itself. If you remove two or more board that have already been installed and then remount one of them on the computer, it is unknown which one of the sets of resources previously assigned to the two boards is assigned to the remounted board. In this case, re-check the resource settings.
AD12-64(PCI), AD12-16(PCI) 9
Setup
Checking resources
Resources assigned to the board, which are managed by OS, are verified with the following procedures:
(1) Select [System] from [Control Panel] and then open [Device
Manager]. (2) Double-click on [Multi-function adapters] folder. (3) Double-click on [CONTEC Co., Ltd. - AD12-x(PCI)] folder to
open "Property" screen. (4) Select [Resource]. Verify types and settings of resources, and
there is no conflict.
Support software
CONTEC provides the following driver software for Windows 98.
API-PAC(W32) Ver. Aug. 1999 or later
The above driver software supports simultaneous use of up to 16 boards. The API-PAC(W32) does not necessarily support all functions of the board. Make sure the specifications of the driver software before purchase. Only development languages of 32 bit compatible language/version are usable for API-PAC(W32). 16 bit development languages are not applicable to the board.
AD12-64(PCI), AD12-16(PCI)10
Installing for Windows 95
Installing the board hardware
Before the board can be used under the Windows 95 operation system (OS), the OS must recognize the assigned I/O address range and the interrupt level (IRQ) of this board and register these information into OS itself. Refer the following procedure to register the board information for Windows 95.
Checking the OS version
Note that the procedure for installing the board depends on which version of Windows 95 you are using. Check the version of Windows 95 on your system as follows before installing the board.
(1) Open [Control Panel] from [My Computer]. (2) Double-click on the [System] option to open the [System
Properties] property sheet. (3) Check the "System:" number displayed on the [General] page.
System : Microsoft Windows 95
4.00.950
Setup
The version numbers of Windows 95 include 4.00.950, 4.00.950a,
4.00.950B and 4.00.950C. The board setup depends on the version number of Windows 95 that is being used.
AD12-64(PCI), AD12-16(PCI) 11
Setup
Procedure for use under Windows 95 version 4.00.950 or
4.00.950a :
(1) Set the board ID. (2) Be sure to check that the personal computer is off, then plug
the board into a PCI bus slot in the personal computer. (3) Turn the personal computer on to start up Windows 95. (4) Windows 95 will come up with the [New Hardware] detection
dialog box. Select [Multimedia Device: Select which driver
you want to install for your new hardware.] and then [Driver
from disk provided by hardware manufacturer]. (5) In the [Install From Disk] dialog box, the attached FD into the
disk drive, enter the drive name and directory name in the
[Copy Distributed File From] field, then click on [OK].
This completes installation of the board. (6) Follow the instructions on the screen to complete installation
of the board. After completed the board installation, be sure
to check the assigned resources. The "Checking resources"
part of this section explains you how to check the OS assigned
resources of this board.
AD12-64(PCI), AD12-16(PCI)12
Setup
Procedure for use under Windows 95 version 4.00.950B or
4.00.950C :
(1) Set the board ID. (2) Be sure to check that the personal computer is off, then plug
the board into a PCI bus slot in the personal computer. (3) Turn the personal computer on to start up Windows 95. (4) Windows 95 will come up with the [New Hardware] detection
dialog box. In the [Device Driver Wizard] that appears next,
check that "PCI Multimedia Device" has been listed, then
select [Next>]. (5) In the next dialog box, select [Specify Location...]. Insert the
supplied FD in a drive, enter the drive name and directory
name (WIN95) in the [Location] field, then click on [OK]. (6) In the next dialog box, check the "Updated driver found for
this device" message, then select [End]. This completes
installation of the board.
After completed the board installation, be sure to check the
assigned resources. The "Checking resources" part of this
section explains you how to check the OS assigned resources
of this board.
AD12-64(PCI), AD12-16(PCI) 13
Setup
Method of installing two or more Boards (For use under Windows 95 version 4.00.950 or 4.00.950a)
Follow the procedure below to install two boards for use under Windows 95 version 4.00.950 or 4.00.950a.
(1) Check the board ID of the first board, plug it into a PCI bus
slot, then start up Windows 95 to install the first board
correctly. (2) Check that the first board has been set up correctly, as
described in "Checking resources." Be sure to complete
installation of the first board before attempting to install the
second one. (3) Exit Windows 95 and turn the personal computer off. (4) Check the board ID of the second board, then plug it into a PCI
bus slot. Assign ID to the second board a board ID that is
different from the ID assigned to the first board. (5) Turn the personal computer on again to start up Windows 95. (6) Windows 95 will come up with the [New Hardware] detection
dialog box. In [Multimedia Device: Select which driver you
want to install for your new hardware.], select [Select from
List]. (7) The [Select Hardware Type] dialog box will then appear. In
[Select Hardware Type to Install], select [Other Devices]. (8) In the [Select Device] dialog box that appears, select
[CONTEC] from [Manufacturers] and select [CONTEC Co.,
Ltd. - AD12-x(PCI)] from [Models]. (9) The [Change System Settings] dialog box appears. Follow
the messages to restart the computer. (10) When Windows 95 is restarted, installation of the second board
is completed. Check the assigned resources again.
AD12-64(PCI), AD12-16(PCI)14
Notes!
Setup
For installing the third board and later, follow the same steps as those for installing the second one. Before you can install the third board or later, all of the already installed boards must be in the PCI bus slots.
- The second 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 second board, first determine what PC resources are free.
- The resources used for each board do not depend on the location
of the PCI bus slot or the board itself. If you remove two or more boards that have already been installed and then re-mount one of them on the computer, it is unknown which one of the sets of resources previously assigned to the two boards is assigned to the re-mounted board. In this case, re-check the resource settings.
AD12-64(PCI), AD12-16(PCI) 15
Setup
Method of installing two or more Boards (For use under Windows 95 version 4.00.950B or 4.00.950C)
Follow the procedure below to install two boards for use under Windows 95 version 4.00.950B or 4.00.950C.
(1) Check the board ID of the first board. Then plug it into a PCI
bus slot. Finally, start up Windows 95 to install the first
board correctly. (2) Check that the first boa rd has been set up correctly, as
described in "Checking resources." Be sure to complete
installation of the first board before attempting to install the
second one. (3) Exit Windows 95 and turn the personal computer OFF. (4) Check the board ID of the second board. Then plug it into a
PCI bus slot. Assign to the second board a board ID different
from that assigned to the first board. (5) Turn the personal computer ON again to start up Windows 95. (6) The OS will then automatically install the second board.
When the installation has been completed, re-check the
assigned resources.
Notes!
For installing the third board and any additional boards, follow the same steps as those for installing a second board. Before you can install a third board or additional boards, all boards that are already installed must be in PCI bus slots.
- A second board cannot be properly installed unless the resources
(I/O addresses and interrupt level) to be used for the board can be allocated. Before attempting to install a second board, first determine which PC resources are free.
- The resources used for each board do not depend on the location
of the PCI bus slot or the board itself. If you remove two or
more boards that have already been installed and then re-mount
one of them on the computer, it is unknown which one of the sets of resources previously assigned to the two boards is assigned to the re-mounted board. In this case, check the resource settings again.
AD12-64(PCI), AD12-16(PCI)16
Loading...
+ 53 hidden pages