Copyright 1999 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 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.
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 boxEPD-96 *
96-pin half-pitch connector shield cable (one end)
* 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 1Introduction
Chapter 2Setup
Chapter 3Connecting an External Device
Chapter 4Functions and Operating Procedures
Chapter 5Sample Program for MS-DOS
Chapter 6Calibration 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 7System Reference
This chapter contains a major specifications list and
circuit block diagram of the board.
Chapter 8Index
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
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 95.
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)17
Setup
Installing for Windows NT
Installing the board requires separately priced CONTEC driver
software. Follow the procedure below to install the board.
Verifying PC settings
Be sure that [PnP OS] is either [disabled] or set to [not to use] in the
PC's BIOS setup. If this is set to [Windows 95], for example, the
board might not be recognized properly.
Installing the board driver software
To use the board under Windows NT operation system, you need an
optional CONTEC installation driver program. Refer the
following procedure to install this board to the Windows NT OS.
(1) Set the board ID.
(2) Be sure that the personal computer power is off. Then plug
the board into a PCI bus slot in the system.
(3) Start Windows NT with Administrator.
(4) Execute the optional driver program to install the board.
Refer the driver program's manual or the driver program's help
file for details.
After completed the board installation, be sure to check the
assigned resources. The "Checking resources" part this section
explains you know to check the OS assigned resources of this
board.
Checking resources
Follow the steps below to check the assigned resources managed by
the OS.
(1) Open [Windows NT Diagnostic Program] from [Management
Tools].
(2) Select [Resources] (IRQ/port settings). Check the types and
settings of resources assigned to the relevant driver and the
corresponding device list.
AD12-64(PCI), AD12-16(PCI)18
Support software
CONTEC provides following driver software for Windows NT.
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.
Installing for other OS System
For all the other operation systems, in addition of the Windows OS,
we use MS-DOS as an example to show how to use the board under
the OS.
For a PCI bus board, the system will automatically assign a usable
resource/resources to the board. Refer the following procedure to
resource/resources.
Procedure
(1) Set the board ID.
Setup
(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 MS-DOS.
(4) Setting up the board is completed when MS-DOS gets and
running. When setting up the board has been completed, be
sure to check the assigned resources.
AD12-64(PCI), AD12-16(PCI)19
Setup
Checking resources
Before operating the board, be sure to check the personal computer
resources (I/O addresses and interrupt level) assigned to the board.
For PCI compatible (Plug and Play Compliant) board, free
resources among the personal computer resources are assigned
automatically upon activation of the personal computer. Follow
the steps below to check the assigned resources.
(1) Run the resource check program "AIOPCI.EXE" stored in the
DOS directory on the supplied floppy disk (FD).
(2) Check the I/O addresses and interrupt level (IRQ) displayed on
the screen. Once the board has been set up correctly, it can be
used under MS-DOS.
Obtaining resource information
You can get information on the personal computer resources
assigned to the board by accessing the PCI BIOS. For the precise
method, refer the AIOPCI.C stored in the DOS directory on the
supplied FD.
AD12-64(PCI), AD12-16(PCI)20
Connecting an External Device
3. Connecting an External Device
Interface Connector
Connect the board to an external device using the on-board
interface connector (96-pin half-pitch male connector designated as
CN1).
AD12-64(PCI) CN1 Pin Assignments to Signals
[1]
[49]
B48
Analog Input63/31 [-]
Analog Input55/31 [+]
Analog Input62/30 [-]
Analog Input54/30 [+]
Analog Input61/29 [-]
Analog Input53/29 [+]
Analog Input60/28 [-]
Analog Input52/28 [+]
Analog Ground
Analog Ground
Analog Input47/23 [-]
Analog Input39/23 [+]
Analog Input46/22 [-]
Analog Input38/22 [+]
Analog Input45/21 [-]
Analog Input37/21 [+]
Analog Input44/20 [-]
Analog Input36/20 [+]
Analog Ground
Analog Ground
Analog Input31/15[- ]
Analog Input23/ 15[+]
Analog Input30/14[- ]
Analog Input22/ 14[+]
Analog Input29/13[- ]
Analog Input21/ 13[+]
Analog Input28/12[- ]
Analog Input20/ 12[+]
Analog Ground
Analog Ground
Analog Input15/7[- ]
Analog Input7/7[+ ]
Analog Input14/6[- ]
Analog Input6/6[+ ]
Analog Input13/5[- ]
Aanalog Input5/5[+ ]
Analog Input12/4[- ]
Analog Input4/4[+ ]
Analog Ground
Analog Ground
+5V DC f rom PC
+5V DC f rom PC
Samp ling Busy
Tim er Output
Digit al Output 3
Digit al Output 2
Digit al Output 1
Digit al Output 0
* Pin numbers in parentheses "[ ]" comply with those defined by
HONDA TS USHIN KOGYO CO., LTD.
Figure 3.1. AD12-64(PCI) CN1 Pin Assignments to Signals
Analog Input0 ~ Analog Input63 indicate signals in single-ended
input mode, while Analog Input0[+] ~ Analog input31[+] and
Analog Input0[-] ~ Analog Input31[-] indicate signals in differential
input mode.
Dig ital O utput3
Dig ital O utput2
Dig ital O utput1
Dig ital O utput0
* Pin numbers in parentheses "[ ]" comply with those defined by
HONDA TSUSHIN KOGYO CO. , LTD.
N.C .
N.C .
N.C .
N.C .
N.C .
N.C .
N.C .
N.C .
N.C .
N.C .
N.C .
N.C .
N.C .
N.C .
N.C .
N.C .
N.C .
Timer Outp ut
Figure 3.2. AD12-16(PCI) CN1 Pin Assignments to Signals
Analog Input0 through Analog Input15 indicate signals in singleended input mode, while Analog Input0[+] ~ Analog input7[+] and
Analog Input0[-] ~ Analog Input7[-] indicate signals in differential
input mode.
The board allows input of analog signals in both single-ended mode
and differential mode, and different connection systems to signals
are employed for each input mode. This section gives examples of
connecting the analog input signals to the board using a flat cable or
a shielded cable.
Connection example in single-ended input mode
The following example uses a flat cable. Connect each signal
source and ground for CN1's each analog input channel on a one-toone basis.
BOARD
Analog Input 0...63
Analog Ground
*1 0...15 on the AD12-16 (PCI) board
CN1CableSignal Source
*1
V
Figure 3.3. Connection for the Single-ended Input
(via a Flat Cable)
The following example uses a coaxial cable to connect the board to
an external device. Use this type of cable when the distance
between the board and external device is long or when the
connection requires higher noise immunity. Use the center (core)
conductor of the coaxial cable to connect the CN1's analog output
pins to the input of the external device and use the outer (braided)
conductor to connect the CN1's analog ground pins to the ground of
the external device.
BOARD
Analog Input 0...63
Analog Ground
*1 0...15 on the AD12-16 (PCI) board
CN1
*1
Shield cable
Signal Source
V
Figure 3.4. Connecting the Single-end Input
(via a shielded Cable)
AD12-64(PCI), AD12-16(PCI)25
Connecting an External Device
Notes!
- Frequency components higher than 1MHz contained in a signal
may cause crosstalk across channels.
- Analog input signals may be interfered if a connection cable is
susceptible to noises. Keep a connection cable away from
potential sources of noises.
- A long connection cable may impair input of precise analog
signals. Keep a connection cable as short as possible.
- Do not input an analog signal that exceeds a maximum input
voltage level allowed, relative to the analog ground on the board.
A signal exceeding the maximum level may damage the board.
- Conversion data is indefinite when an input pin is left open.
For a channel that is not connected to a signal source, short
circuit the input terminal to analog ground.
AD12-64(PCI), AD12-16(PCI)26
Connecting an External Device
Connection example in differential input mode
The following example uses a flat cable.
Connect each analog input channel [+] of CN1's to a signal, and
connect [-] input to ground of signal source. Then connect analog
ground with ground of signal source.
BOARD
Analog Input 0[+]...31[+]
Analog Input 0[-]...31[-]
Analog Ground
*2 0[+]...7[+] and 0[-].. .7[-] are respectively applicable to AD12-16(PCI).
*2
CN1
CableSignal Source
V
Figure 3.5. Connection for the Differential Input
(via a Flat Cable)
The following example uses a two-conductor shielded cable to
connect the board to an external device. Use this type of cable
when the distance between the board and external device is long or
when the connection requires higher noise immunity. Connect
each analog input channel [+] of CN1's to a signal, and connect [-]
input to ground of signal source. Then connect analog ground of
the board with ground of signal source using the outer (braided)
conductor.
BOARDSignal Source
Analog Input 0[+]...31[+]
Analog Input 0[-]...31[-]
Analog Ground
*2
CN1
Shield cable
V
*2 0[+]...7[+] and 0[-] ...7[-] are respectively applicable to AD12-16(PCI).
Figure 3.6. Connection for the Differential Input
(via a Shielded Cable)
AD12-64(PCI), AD12-16(PCI)27
Connecting an External Device
Notes!
- Frequency components higher than 1MHz contained in a signal
may cause crosstalk across channels.
- Conversion data is indefinite when analog ground is
unconnected.
- Analog input signals may be interfered if a connection cable is
susceptible to noises. Keep a connection cable away from
potential sources of noises.
- A long connection cable may impair input of precise analog
signals. Keep a connection cable as short as possible.
- No analog signal should be applied to either [+] or [-] input
exceeding a maximum input voltage level allowed, relative to the
analog ground on the board. A signal exceeding the maximum
level may damage the board.
- Conversion data is indefinite when either [+] or [-] input pin is
left open. For a channel that is not connected to a signal
source, short circuit the both input terminals to analog ground.
AD12-64(PCI), AD12-16(PCI)28
Connecting an External Device
Connecting the Digital Input/Output Signals
and Control Signals
This section gives an example of connecting digital input/output
signals and control signals between the board and an external
device using a flat cable. To the control input signals (external
sampling clock input and external trigger input), connect TTL-level
signals.
ALS540 or equivalent
BOARD
10kΩ
Input
Digital Ground
CableCN1
Figure 3.7. Connecting the Control Signal Inputs
The digital output and control output signals (sampling operation
signals output and programmable timer output) are TTL-level
outputs.
Target
Notes!
ALS540 or equivalent
BOARD
Output
IOL = 24mA
Digital Ground
CableCN1
Target
Figure 3.8. Connecting the Control Signal Outputs
- Do not connect any digital output or control output signal to the
analog or digital ground as doing so can result in a fault in the
board.
- Do not connect one digital output or control output signal to
another or to any output signal from the external device as doing
so can result in a fault in the board, the device, or both.
- The maximum low-level output current IOL of control output
signals is 24mA. Do not connect an external device whose load
exceeds the range, or it can result in a fault in the board.
AD12-64(PCI), AD12-16(PCI)29
Connecting an External Device
- Control input signals are TTL-level signals. Do not connect
any signal outside the range from 0 to +5V; doing so can result
in a fault in the board.
- Do not plug or unplug the cable to/from the interface connector
with the PC or external device powered on; doing so can result
in a fault in the board, the PC or device, or both.
- When affected by noise, the connection cable may fail to
input/output accurate analog signals. Route the connection
cable apart from noise sources.
- A longer connection cable may fail to output accurate analog
signals if it is long. The connection cable length should be
within 1.5m.
- If a mechanical contact such as a switch and relay or a signal
which requires long high-to-low transition time is connected to a
control input signal, chattering may cause the board to
malfunction.
AD12-64(PCI), AD12-16(PCI)30
Functions and Operating Procedures
4. Functions and Operating Procedures
Functional Overview
The AD12-16(PCI) or AD12-64(PCI) board consists of the
following four independent function blocks:
(1) Analog input function
(2) Digital input function
(3) Digital output function
(4) Interrupt function
Description
Analog Input Function
By outputting a sampling start command, the board converts an
analog input signal into 12 bit digital data under specified sampling
conditions, at a maximum rate of 10 microsecond/channel.
The conversion operation is roughly divided into the following two:
Software mode:Sampling operation is performed once
for a channel specified by sampling
start command.
Clock mode:Sampling operation is performed
periodically for a specified channel, in
sync with a sampling clock.
A sampling clock can be used either derived from a dedicated clock
signal on board or an external clock signal.
Channels to be sampled are specified in the following two modes:
Single-channel mode:A specified channel is sampled by a
single sampling operation.
Multi-channel mode:Specified two or more channels are
sampled by a single sampling operation.
A/D conversion is performed by combining the above clock and
sampling modes.
AD12-64(PCI), AD12-16(PCI)31
Functions and Operating Procedures
sampling start
input channel
sampling start
input channel
sampling start
sampling clock
3ch1ch
a. Software mode - Single channel mode
3ch2ch1ch0ch3ch2ch1ch0ch
b. Software mode - Multichannel mode
input channel
sampling start
sampling clock
input channel
Figure 4.1. Basic operation for analog input
Sampling operation is verified by
monitoring status. Generating an
interrupt by status change is allowed
also. Figure 4.2. shows procedures for
inputting analog signals. Perform
initialization before starting sampling.
Then specify sampling conditions, such
as mode of operation and input range.
Output the start command to feed the
data for conversion.
1ch1ch
c. Clock mode - Single cha nnel mode
d. Clock mode - Multich annel mode
Start
Initialization
Specify sampling
conditions
Specify input range
Start sampling
Input data
3ch2ch1ch0ch3ch2ch1ch0ch
End
Figure 4.2.
Analog input procedures
AD12-64(PCI), AD12-16(PCI)32
Functions and Operating Procedures
Initialization process
The process initializes the analog input function.
The initialization command clears all settings and statuses to intial
values and sets the board to "initial status," as it is when the PC has
been recycled or the reset button has been pressed.
The following are control ports for initialization:
Output
(+08h)
D 7
+8
D 6
D 5D 4D 3D 2D 1D 0
00000000
Command
The following are examples of initialization settings described in
high-level languages:
Microsoft CMicrosoft QBASIC
outp( ADR+8, 0 );OUT ADR+8, 0
* "ADR" is a leading I/O address assigned by PCI BIOS.
Sampling conditions must be defined. Sampling conditions are
specified by outputting a command for setting sampling conditions,
followed by outputting setting data.
Output
(+08h)
(+0ch)
D 7
+8
00000001
+12
****
D 6
D 5D 4D 3D 2D 1D 0
Command
Setting data 0 (conditions)
Analog input
Method
Channel
Mode
Sampling
Clock Sour ce
Analog input mode [D3]
Select "single-ended input" or "differential input" mode in
accordance with connection between signal source and analog input
pins.
Analog Input Method [0] : Single-end* Initial status
[1] : Differential
Channel mode [D2]
Specify the mode for performing sampling. Select "single channel
mode" for specifying only one channel or select "multi channel
mode" for specifying two or more channels.
Channel Mode[0] : Single* Initial status
[1] : Multi
Sampling clock source [D1]
Specify sampling clock source only when "clock" mode has been
selected as sampling mode. Select either "Internal clock" for using
on-board dedicated clock, or "External Clock" for using a clock
signal derived from external source.
Sampling
Mode
Sampling Clock Source[0] : Internal Clock *Initial status
[1] : External Clock
AD12-64(PCI), AD12-16(PCI)34
Functions and Operating Procedures
Sampling mode [D0]
Configure mode of sampling operation.
Select "Software Command" for performing one sampling operation
on specified channel or select "Clock" for performing periodical
sampling using a clock signal.
Sampling Mode[0] : Software Command
*Initial status
[1] : Clock
The following are examples of initialization settings described in
high-level languages:
Sample software : AI1.C, AI2.C, AI3.C, AI4.C, AII.C, ATII98.C
* Outputting the command for specifying sampling conditions
during sampling operation results in halting of the sampling
operation.
AD12-64(PCI), AD12-16(PCI)35
Functions and Operating Procedures
Specifying input range
"Input range" is the voltage range for inputting analog signals.
Input ranges are specified for each channel. The voltages within
the specified range are converted into a digital signal, in 12 bit
resolution.
Input ranges are specified for up to 64 channels. On the
AD12-64(PCI) system, however, data specified for channels from 0
~ 31 is valid when differential input is specified for analog input.
On the AD12-16(PCI) system, data for channels from 0 ~ 15 is
valid when single-ended input is specified, or data for channels
from 0 ~ 7 is valid when differential input is specified.
The following are the control ports for specifying input range:
Output
+8
(+08h)
+12
(+0ch)
+13
(+0dh)
D 7
00000100
Channel
Data 7
Range
Data 7
D 6
Channel
Data 6
Range
Data 6
D 5D 4D 3D 2D 1D 0
Channel
Data 5
Range
Data 5
Command
Setting data 0 (channel)
Channel
Data 4
Setting data 1 (range)
Range
Data 4
Table 4.1. Input range and setting data
Figure 4.3. Procedures for setting
Channel
Data 3
Range
Data 3
Data 2
Range
Data 2
Channel
Data 1
Range
Data 1
Chann el
input range
Channel
Data 0
Range
Data 0
AD12-64(PCI), AD12-16(PCI)36
Functions and Operating Procedures
The following are examples of initialization settings described in
high-level languages:
outp( ADR+12, i );OUT ADR+12, I
outp( ADR+13, 0x04 );OUT ADR+13, &H04
}NEXT
Reference
Sample software : AI1.C, AI2.C, AI3.C, AI4.C, AII.C, AII98.C
* Range settings can be changed during sampling operation.
AD12-64(PCI), AD12-16(PCI)37
Functions and Operating Procedures
10000nsec
Setting internal sampling clock
Specify sampling period (clock data) if "Clock mode" and "Internal
sampling clock" have been selected as sampling conditions. Since
clock data is indefinite under initial status, be sure to set up clock
data when using internal sampling clock. Clock data is specified
in steps of 250nsec. Range of settable clock values is from
10,000nsec to 1,073,741,824,000nsec (approximately 17min and
54sec), which corresponds to setting data from 39 to 4,294,967,295.
The following formula expresses relation between the sampling
period and setting data:
Clock data =-1
Where "sampling clock" is in nanoseconds.
Sampling clock value must satisfy the following formula:
Sampling clock
250
Sampling clock≥
x Number of specifies channels
(10µsec)
If a specified clock time is shorter than the conversion time for the
specified number of channels, sampling is not performed in precise
cycles. The following shows control ports for setting internal
sampling clock.
AD12-64(PCI), AD12-16(PCI)38
Functions and Operating Procedures
The following are examples of initialization settings described in
high-level languages:
The examples specify a range from 0 to 10 volts for all channels.
Start sampling operation.
In single-channel mode , specify a channel to be converted. In
multi-channel mode, specify an upper limit of channels (value
greater than 1). For example, specifying "channel 10" means
sampling channels from 0 to 10.
The following shows control ports for starting sampling.
Output
+4
(+04h)
D 7
N/A
D 6
N/A
D 5D 4D 3D 2D 1D 0
Channel
Data 5
Channel data
Channel
Data 4
Channel
Data 3
Channel
Data 2
Channel
Data 1
Channel
Data 0
In "software command" sampling mode, a specified channel is
sampled only one time. In "clock mode" or "external sampling
clock" mode, the external sampling clock gate is opened and
inputting an external sampling clock signal is allowed.
If sampling operation is started again with the clock-mode sampling
already executed, the conversion data and analog input status of the
clock-mode sampling is reset for starting a new sampling operation.
Executing initialization command or sampling conditions setting
command for the board causes the sampling operation to halt.
The following are examples of sampling start settings described in
high-level languages:
Before feeding conversion data, verify that the conversion data is
contained in a given register. Conversion data can be fed from the
register even during conversion operation.
The figure on the right shows the
procedures for inputting conversion data.
The conversion data is in offset binary
format and the following equation
represents the relation between conversion
data and input voltage:
Data =(Voltage + Offset)
Span
Input rangeOffsetSpanInput rangeOffsetSpan
-10V to +10V10200V to +10V010
-5V to +5V5100V to +5V05
-2.5V to +2.5V2.550V to +2.5V02.5
-1.25V to +1.25V1.252.50V to +1.25V01.25
x 2
12
Start
Analog input status
Verify DRE status
Verify
Input data
End
Figure 4.4.
Input conversion
data
Table 4.2. Example conversion data in a ±10
–volt range conversion
Input voltage 12-bit conversion data
(±10V range)Offset binary
+9.995V0FFF h
::
0.005V0801 h
0.000V0800 h
-0.005V07FF h
::
-10.000V0000 h
AD12-64(PCI), AD12-16(PCI)40
Functions and Operating Procedures
The following shows control ports for feeding conversion data.
Input
(+06h)
(+00h)
(+01h)
+6
+0
+1
D 7
000
Conversion
Data 7
D 6
Conversion
Data 6
D 5D 4D 3D 2D 1D 0
Conversion
Data 5
Analog input status
Analog input data (lower)
Conversion
Data 4
Analog input data (upper)
0
0000
Sampling
Clock Error
Conversion
Data 3
Conversion
Data 11(MSB)
Data Over
Write Error
Conversion
Data 2
Conversion
Data 10
Data Read
Enable
Conversion
Conversion
Details of AI status will be discussed in later section. The
following are examples of sampling start settings described in highlevel languages:
Analog input status indicates a state of A/D conversion operation.
Input
+6
(+06h)
sampling start
sampling busy
input channel
D 7
00
D 6
D 5D 4D 3D 2D 1D 0
Sampling
Clock Error
Analog input status
Sampling
Clock Input
0
Data Over
Write Error
Data Read
Enable
Sampling
Busy Status
Sampling busy status (BSY) [D0]
Indicates that the board is currently sampling. The status is set to
"1" upon sampling start command output. The status is cleared
upon halt or completion of sampling operation. *
sampling start
sampling clock
sampling busy
0ch
1ch 2ch 3ch
a. Software mode
0ch 1ch
2ch
3ch
input channel
0ch
1ch 2ch 3ch
b. Clock mode
0ch 1ch
2ch
Figure 4.5. Timing for setting/resetting sampling busy
status
Data read enable status (DRE) [D1]
Indicates that readable conversion data exists. In a single channel
mode, the status is set to "1" if any piece of readable conversion
data is stored. In multi-channel mode, the status is set to "1" if
readable conversion data for all specified channels exists. The
status is cleared when no more readable conversion data exists.
3ch
AD12-64(PCI), AD12-16(PCI)42
Functions and Operating Procedures
Data overwrite error status (DOWE) [D2]
Value "1" set to the status indicates that readable conversion data
has been overwritten during clock-mode operation, because
intervals of sampling clock are longer than data input intervals. If
this status is detected, sampling clock interval must be expanded or
reading intervals must be shortened. The status is cleared when no
more overwritten data exists.
Figure 4.6. Timing for setting/resetting data overwrite
error status
Sampling clock input status (SCI) [D4]
The status is set to "1" if a sampling clock is input after outputting
sampling start command in clock mode. The value is cleared after
the status is read. *
Sampling clock error status (SCE) [D5]
The status is set to "1" if a sampling data is clocked during
sampling operation in clock mode. The value is cleared after the
status is read. * The sampling clock input during sampling
operation is ignored.
* Each status is also cleared to "0" under the following conditions:
- Upon output of initialization command.
- Upon output of sampling conditions setting command.
- Upon output of sampling start command (except for sampling
busy status).
Reference
Sample software : AI1.C, AI2.C, AI3.C, AI4.C
AD12-64(PCI), AD12-16(PCI)43
Functions and Operating Procedures
Digital input function
The digital input function feeds activ-high 4-point TTL-level digital
signals. The following shows control ports for digital input. "1"
is input if digital input pints are unconnected.
Input
(+05h)
D 7
+5
D 6
D 5D 4D 3D 2D 1D 0
Digital input data
00DI1DI0DI3DI200
The following are examples of sampling start settings described in
high-level languages:
Microsoft CMicrosoft QBASIC
DiData = inp( ADR+5 );DiData = INP( ADR+5 )
Reference
Sample software : DI.C
Digital output function
The digital output function provides active-high 4-point TTL-level
digital signals. "Low" is output upon turning on the power,
resetting the board, or initialization process. The following shows
control ports for digital output.
Output
(+05h)
D 7
+5
The following are examples of sampling start settings described in
high-level languages:
D 6
D 5D 4D 3D 2D 1D 0
Digital output data
00DO1DO0DO3DO200
Microsoft CMicrosoft QBASIC
outp( ADR+5 ,DoData );OUT ADR+5 DoData
Reference
Sample software : DO.C
AD12-64(PCI), AD12-16(PCI)44
Functions and Operating Procedures
Interrupt function
The board is allowed to use hardware interrupt for a PC. An
interrupt level specified by PCI BIOS is used for interrupt. When
using the interrupt function, interrupt sources can be selected from
the following statuses in advance. (Two or more statuses can be
selected.)
Status
Data Read EnableData read enable status is set.
Data Over Write ErrorData overwrite error status is set.
Sampling Clock InputSampling clock is input (external/internal)
Sampling Clock ErrorSampling clock error status is set.
Ext. Trigger Input* External trigger is input (falling edge)
Ext. Trigger Input O/R * External trigger is input when external trigger input status is set.
Timer Count Up* Timer is counted up.
Timer Count Up O/R* Time is counted up when timer count up status is set.
* The statuses are discussed in later sections.
Description
Interrupt request signal is generated simultaneously when the status
specified as interrupt source is set. If two or more interrupt
sources have been specified, a cause of interrupt can be identified
by inputting status within interrupt handler.
Specifying interrupt sources
Specify interrupt source. The following are the control ports for
specifying interrupt sources:
Output
+8
(+08h)
Output
+12
(+0ch)
+13
(+0dh)
D 7
00001000
D 7
1
1
D 6
D 6
1
1
D 5D 4D 3D 2D 1D 0
D 5D 4D 3D 2D 1D 0
Sampling
Clock Error
Timer
O/R Status
Command
Setting data 0 (interrupt sources)
Sampling
Clock Input
Setting data 1 (interrupt sources)
Timer
Ext. Trigger
Status
O/R Status
1
Data Over
Writ e Error
Ext. Trigger
Status
Data Read
Enable
1
11
Outputting "1" for an interrupt source masks the cause. Outputting
"0" specifies the item as an interrupt source.
[1]Masked* Initial status
[0]Interrupt Request Enable
AD12-64(PCI), AD12-16(PCI)45
Functions and Operating Procedures
The following are examples of timer period settings described in
high-level languages:
An interrupt request signal can be generated by a falling edge of an
external TTL-level signal. Even if it is not specified as an
interrupt source, feeding the status enables monitoring of the
operation. An external trigger is allowed to enable and disable
inputting of external signal by opening and closing an external
trigger gate. Initial status of the external trigger gate is "closed."
"Open" the external trigger gate when using an external trigger.
The following are the control ports for opening an external trigger
gate:
Input
(+08h)
D 7
+8
D 6
D 5D 4D 3D 2D 1D 0
Command
10000000
The following are the control ports for closing an external trigger
gate:
Output
+8
(+08h)
D 7
D 6
D 5D 4D 3D 2D 1D 0
Command
10000001
The following are examples of timer period settings described in
high-level languages:
Microsoft CMicrosoft QBASIC
outp( ADR+8, 8 );OUT ADR+8 8
: :
outp( ADR+8, 9 );OUT ADR+8 9
Reference
Sample software : EXTI.C, EXTI98.C
AD12-64(PCI), AD12-16(PCI)47
Functions and Operating Procedures
Timer
The timer generates interrupt signals periodically. The timer is
completely independent of a sampling clock. Even if it is not
specified as an interrupt source, feeding the status enables
monitoring of the operation. Data specified upon initialization is
indefinite. Periods must be specified for using timer. Timer is
set in steps of 250nsec. Range of specifiable clock values is from
500nsec to 1,073,741,824,000nsec (approximately 17 minutes and
54 seconds), which corresponds to setting data from 1 to
4,294,967,295. The following equation represents relation
between the sampling cycles and setting data:
Timer period
Clock data
where "timer period" is in nanoseconds.
The following shows control ports for setting timer period:
=
250
-1
Output
+8
(+08h)
+12
(+0ch)
+13
(+0dh)
+14
(+0eh)
+15
(+0fh)
D 7
00001001
D 7
Timer
Data 7
Timer
Data 15
Timer
Data 23
Timer
Data 31
D 6
D 6
Timer
Data 6
Timer
Data 14
Timer
Data 22
Timer
Data 30
D 5D 4D 3D 2D 1D 0
D 5D 4D 3D 2D 1D 0Output
Timer
Data 5
Timer
Data 13
Timer
Data 21
Timer
Data 29
Command
Setting data 0 (clock)
Timer
Data 4
Setting data 1 (clock)
Timer
Data 12
etting data 2 (clock)
Timer
Data 20
Setting data 3 (clock)
Timer
Data 28
Timer
Data 3
Timer
Data 11
Timer
Data 19
Timer
Data 27
Timer
Data 2
Timer
Data 10
Timer
Data 18
Timer
Data 26
Timer
Data 1
Timer
Data 9
Timer
Data 17
Timer
Data 25
AD12-64(PCI), AD12-16(PCI)48
Timer
Data 0
Timer
Data 8
Timer
Data 16
Timer
Data 24
Functions and Operating Procedures
The following shows control ports for starting timer:
Output
+8
(+08h)
D 7
00001100
D 6
D 5D 4D 3D 2D 1D 0
Command
The following shows control ports for stopping timer:
Output
+8
(+08h)
D 7
00001101
D 6
D 5D 4D 3D 2D 1D 0
Command
The following are examples of timer period settings described in
high-level languages:
The following are commands to "Output port +8" on
AD12-64(PCI)/AD12-16(PCI).
Table 4.5. Command list
No.HexFunction
000Initialization
011Setup for sampling conditions
022Setup for input range
033Setup for internal sampling clock
044Setup for interrupt source
055Setup for timer period
066Start timer
077Stop timer
088Open external trigger gate
099Close external trigger gate
AD12-64(PCI), AD12-16(PCI)53
Functions and Operating Procedures
AD12-64(PCI), AD12-16(PCI)54
Sample Program for MS-DOS
5. Sample Program for MS-DOS
Sample programs are provided for introducing basic use of the
board. The provided setup disk contains the following sample
programs:
AI1.CAnalog input function sample program source file
(Software - single channel mode)
AI1.EXEAnalog input function sample program
(Software - single channel mode)
AI2.CAnalog input function sample program source file
(Software - multi channel mode)
AI2.EXEAnalog input function sample program
(Software - multi channel mode)
AI3.CAnalog input function sample program source file
(Clock - single channel mode)
AI3.EXEAnalog input function sample program
(Clock - single channel mode)
AI4.CAnalog input function sample program source file
(Clock - multi channel mode)
AI4.EXEAnalog input function sample program
(Clock - multi channel mode)
DI.CDigital input function sample program source file
DI.EXEDigital input function sample program
DO.CDigital output function sample program source file
DO.EXEDigital output function sample program
Sample for IBM PC-AT compatible computers
AII.CInterrupt function sample program source file
(Interrupt source: Data Read Enable)
AII.EXEInterrupt function sample program
(Interrupt source : Data Read Enable)
AD12-64(PCI), AD12-16(PCI)55
Sample Program for MS-DOS
TI.CInterrupt function sample program source file
TII.EXEInterrupt function sample program
EXTI.CInterrupt function sample program source file
EXTI.EXEInterrupt function sample program
Sample for NEC PC-98 compatible computers
AII98.CInterrupt function sample program source file
AII98.EXEInterrupt function sample program
TI98.CInterrupt function sample program source file
TII98.EXEInterrupt function sample program
(Interrupt source : Timer Status)
(Interrupt source : Timer Status)
(Interrupt source : Ext. Trigger Input)
(Interrupt source : Ext. Trigger Input)
(Interrupt source : Data Read Enable)
(Interrupt source : Data Read Enable)
(Interrupt source : Timer Status)
(Interrupt source: Timer Status)
EXTI98Interrupt function sample program source file
(Interrupt source : Ext. Trigger Input)
EXTI98.EXE Interrupt function sample program
(Interrupt source: Ext. Trigger Input)
Preparation
(1) Verify settings of board ID using SW1 on the board.
(2) Install the board on a PC.
(3) Turn on the power of a PC and start up MS-DOS.
(4) Insert provided setup disk to an availabl e disk drive.
The sample programs are contained in the following directory if the
setup disk is inserted in drive "A":
A:¥DOS
AD12-64(PCI), AD12-16(PCI)56
Sample Program for MS-DOS
Analog input function
This section describes programs AI1.EXE, AI2.EXE, AI3.EXE, and
AI4.EXE. The program samples all channels in specified mode,
and displays analog data on screen. (AI3.EXE samples channel 0
only.)
A start-up command is the following (Exemplified by AI1.EXE):
AI1 -B [board ID]
- B: board ID ("0" if omitted)
If a board ID is not "0," enter board ID (decimal) following "-B".
Use a reference voltage generator or a dry battery as a signal source
to be connected. Connect all analog input pins that are
unconnected to a signal source, to analog ground. (Input range is
specified at ±10V.)
Digital input function
Displays input status of the four points of digital input.
A start-up command is the following:
DI -B [board ID]
- B: board ID ("0" if omitted)
If a board ID is not "0," enter board ID (decimal) following "-B".
The following is an example startup command and display on
screen.
>DI
DIGTAL INPUT DI3[1], DI2[0], DI1[0], D I0[1]
>
AD12-64(PCI), AD12-16(PCI)57
Sample Program for MS-DOS
Digital output function
Outputs values of any of four digital outputs and displays output
status.
A start-up command is the following:
DO -B [board ID]
- B: board ID ("0" if omitted)
If a board ID is not "0," enter board ID (decimal) following "-B".
The following is an example startup command and display on
screen.
>DO 1, 1, 0, 1
DIGTAL OUTPUT DO3[1], DO2[1], DO 1[0], DO0[1]
>
Interrupt function
This section describes AII.EXE, TI.EXE, EXTI.EXE, AII98.EXE,
TI98.EXE, and EXTI98.EXE. The program generates an interrupt
signal of a specified interrupt source, counts the number of
interrupts within interrupt handler, and then displays the number of
interrupts on screen.
A start-up command is the following(Exemplified by TI.EXE):
TI -B [board ID]
- B: board ID ("0" if omitted)
If a board ID is not "0," enter board ID (decimal) following "-B".
Executing EXTI.EXE or EXTI98.EXE requires input of an external
trigger signal. Execution of AII.EXE or AII98 displays an input
voltage in channel 0.
AD12-64(PCI), AD12-16(PCI)58
6. Calibration Procedures
This program calibrates the analog input and analog output
functions under MS-DOS. You must follow the instructions of
this calibration program to calibration.
Voltage standard
Figure 6.1. Instruments for Calibration
Connect the output from the standard voltage generator to the 1ch
pin. Connect the ground pin to the analog ground pin. Connect
all the input pins except the 1ch pin to the analog ground.
Then, follow the instructions from the calibration program to
change the output voltage of the standard voltage generator and
adjust the trimmer.
Format:CAL -B [Board ID]
Option:-B: Board ID (default is 0.)
Calibration Procedures
Note!
Do not exercise any operation out of the instructions of this
program. Doing so may damage the board.
The table below shows the correspondence between analog output
adjust trimmers and values to be adjusted.
Table 6.1. Correspondence between Analog Input Circuit
B-8F, Hua Tong Building, No. B19, Che Gong Zhuang West Road,
Hai Dian District, Beijing 100044, China
Tel: +86(10)8801-8228Fax : +86 (10)8801-8209
E-mail: ict@ict.com.cn
SHANGHAI CONTEC MICROELECTRONICS CORP.
No. 481 Gui Ping Road, Cao He Jing Hi-Tech Park Shanghai, 200233, China
Tel: +86 (21) 6485-1907Fax : +86 (21) 6485-0330
E-mail: contec@contec.com.cn