Your new Measurement Computing product comes with a fantastic extra —
Management committed to your satisfaction!
Thank you for choosing a Measurement Computing product—and congratulations! You own the finest, and you can now enjoy
the protection of the most comprehensive warranties and unmatched phone tech support. It’s the embodiment of our mission:
To provide data acquisition hardware and software that will save time and save money.
Simple installations minimize the time between setting up your system and actually making measurements. We offer quick and
simple access to outstanding live FREE technical support to help integrate MCC products into a DAQ system.
Limited Lifetime Warranty: Most MCC products are covered by a limited lifetime warranty against defects in materials or
workmanship for the life of the product, to the original purchaser, unless otherwise noted. Any products found to be defective in
material or workmanship will be repaired, replaced with same or similar device, or refunded at MCC’s discretion. For specific
information, please refer to the terms and conditions of sale.
Harsh Environment Program: Any Measurement Computing product that is damaged due to misuse, or any reason, may be
eligible for replacement with the same or similar device for 50% of the current list price. I/O boards face some harsh
environments, some harsher than the boards are designed to withstand. Contact MCC to determine your product’s eligibility for
this program.
30 Day Money-Back Guarantee: Any Measurement Computing Corporation product may be returned within 30 days of
purchase for a full refund of the price paid for the product being returned. If you are not satisfied, or chose the wrong product by
mistake, you do not have to keep it.
These warranties are in lieu of all other warranties, expressed or implied, including any implied warranty of merchantability or
fitness for a particular application. The remedies provided herein are the buyer’s sole and exclusive remedies. Neither
Measurement Computing Corporation, nor its employees shall be liable for any direct or indirect, special, incidental or
consequential damage arising from the use of its products, even if Measurement Computing Corporation has been notified in
advance of the possibility of such damages.
Trademark and Copyright Information
Measurement Computing Corporation, InstaCal, Universal Library, and the Measurement Computing logo are either trademarks
or registered trademarks of Measurement Computing Corporation. Refer to the Copyrights & Trademarks section on
mccdaq.com/legal for more information about Measurement Computing trademarks. Other product and company names
retrieval system, or transmitted, in any form by any means, electronic, mechanical, by photocopying, recording, or otherwise
without the prior written permission of Measurement Computing Corporation.
Notice
Measurement Computing Corporation does not authorize any Measurement Computing Corporation product for use
in life support systems and/or devices without prior written consent from Measurement Computing Corporation.
Life support devices/systems are devices or systems that, a) are intended for surgical implantation into the body, or
b) support or sustain life and whose failure to perform can be reasonably expected to result in injury. Measurement
Computing Corporation products are not designed with the components required, and are not subject to the testing
required to ensure a level of reliability suitable for the treatment and diagnosis of people.
The CIO-DAS08-AO family of boards, referred to as CIO-DAS08-AOx in this manual, has three members. Where specific
aspects of a board are described, the specific part number CIO-DAS08-AOH, CIO-DAS08-AOL, or CIO-DAS08-AOM are used.
The three boards differ only in the A/D gain ranges. T he AOH has 'high' gains, the AOL has 'low' gains, and the AOM has
'MetraByte' gains and gain codes.
The analog amplifier is located approximately in the center of the board. The amplifier on the CIO-DAS08-AOH and
CIO-DAS08-AOM is part number PGA202. The amplifier on the CIO-DAS08-AOL is part number PGA203.
The CIO-DAS08-AOx boards are an extension of the popular CIO-DAS08 architecture. The two boards are identical at the
register level, performance and connector with the following exceptions.
1.Gains are software-programmable. There is only one version of the MetraByte DAS-8AO with gains of 0.5, 1, 10, 100,
and 500. Measurement Computing offers two versions. They are the CIO-DAS08-AOH and CIO-DAS08-AOL. The 'H'
gains are 0.5, 1, 5, 10, 50, 100, 500, and 1000. The 'L' gains are 0.5, 1, 2, 4, and 8.
2.Analog inputs are differential vs. the single-ended inputs of a CIO-DAS08. To maintain compatibility with signal
conditioning boards such as the CIO-EXP16, an optional SIP resistor provides ground reference to the CH LO inputs.
3.A stable crystal oscillator provides the A/D pacer clock pulse. To allow software-compatibility with programs written for
the CIO-DAS08, a jumper is provided to choose between the crystal or the PC Bus clock.
4.A DC/DC converter supplies stable +/-15V power to the analog circuitry. An optional version of the board without the
DC/DC converter is available on special order of 10 or more units. The cost is lower but the ranges of analog inputs are
limited.
5.There is a second digital connector on the CIO-DAS08-AOx as there is on the CIO-DAS08. The MetraByte DAS-08AO
does not provide the additional digital I/O lines.
2SOFTWARE INSTALLATION
Before you open your computer and install the board, install and run InstaCal™, the installation, calibration and test utility
included with your board. InstaCal™ will guide you through switch and jumper settings fo r your board. Detailed information
regarding these settings can be found below. Refer to the Software Installation manual for InstaCal™ installation instructions.
1
Page 6
3HARDWARE INSTALLATION
The CIO-DAS08-AOx has three banks of switches and three jumper blocks which must be set before installing the board in your
computer.
3.1 BASE ADDRESS
The base address of the CIO-DAS08-AOx is set by switching a bank
of DIP switches on the board (Figure 3-1). This bank of switches is
labeled ADDRESS and numbered 9 to 4.
Ignore the word ON and the numbers printed on the switch
The switch works by adding up the weights of individual switches to
make a base address. A 'weight' is active when the switch is down.
Shown to the right, switches 9 and 8 are down, all others are up.
Weights 200h and 100h are active, equaling 300h base address. Refer
to Table 1-1 for a list of standard PC addresses.
Figure 3-1. Base Address Switches
RANGE
070-071
0F0-0FF
Table 3-1.
FUNCTIONADDRESS
MASK (AT)
(AT)
Standard PC I/O Addresses
FUNCTIONADDRESS
RANGE
EGA2C0-2CF8237 DMA #1000-00F
EGA2D0-2DF8259 PIC #1020-021
GPIB (AT) 2E0-2E78253 TIMER040-043
SERIAL PORT2E8-2EF8255 PPI (XT)060-063
SERIAL PORT2F8-2FF8742 CONTROLLER (AT)060-064
PROTOTYPE CARD300-30FCMOS RAM & NMI
PROTOTTYPE CARD310-31FDMA PAGE REGISTERS080-08F
HARD DISK (XT)320-32F8259 PIC #2 (AT)0A0-0A1
PARALLEL PRINTER378-37FNMI MASK (XT)0A0-0AF
SDLC380-38F8237 #2 (AT)0C0-0DF
SDLC3A0-3AF80287 NUMERIC CO-P
MDA3B0-3BBHARD DISK (AT)1F0-1FF
PARALLEL PRINTER3BC-3BFGAME CONTROL200-20F
EGA3C0-3CFEXPANSION UNIT (XT)210-21F
CGA3D0-3DFBUS MOUSE238-23B
SERIAL PORT3E8-3EFALT BUS MOUSE23C-23F
FLOPPY DISK3F0-3F7PARALLEL PRINTER270-27F
SERIAL PORT3F8-3FFEGA2B0-2BF
2
Page 7
3.2 INTERRUPT LEVEL SELECT
The interrupt jumper need only be set if the software you are using
requires it. If you do set the interrupt jumper, please check your PC's
current configuration for interrupt conflicts, and do not use IR2 in
PC/AT class machines (or higher).
There is a jumper block on the CIO-DAS08-AOx located just above the
PC bus interface (gold pins). The factory default setting is that no
interrupt level is set. The jumper is in the 'X' position.
Figure 3-2. Interrupt Jumper Block
If you need to pace conversions through hardware (either the on - board pacer or an external clock), move this jumper to one
of the other positions (see table 3-2).
The following table shows some typical interrupt assignments on a PC. The CIO-DAS08-AOx may be configured for
interrupt levels 2 through 7. The levels most often available are 5 and 7.
Table 3-2. Interrupt Assignments
DESCRIPTIONNAMEDESCRIPTIONNAME
REAL TIME CLOCK (AT)IRQ8PARITYNMI
IRQ9TIMERIRQ0
IRQ2
INT 8-15 (AT)
IRQ5
LPT (AT)
RE-DIRECTED TO IRQ2
(AT)
UNASSIGNEDIRQ10KEYBOARDIRQ1
UNASSIGNEDIRQ11RESERVED (XT)
UNASSIGNEDIRQ12COM OR SDLCIRQ3
80287 NUMERIC CO-PIRQ13COM OR SDLCIRQ4
HARD DISKIRQ14HARD DISK (XT)
UNASSIGNEDIRQ15FLOPPY DISKIRQ6
Note: IRQ8-15 are AT onlyLPTIRQ7
3.3 XTAL/PC BUS CLOCK JUMPER
The A/D pacer clock sources for the MetraByte DAS-8PGA and DAS-8 are different. The source for the DAS-8PGA is fixed
at 1 MHz while the source for the DAS-8 is dependent on PC bus speed. The CIO-DAS08-AOx attempts to deal with these
differences in a way that satisfies software written for either board.
The CIO-DAS08-AOx is equipped with a jumper which allows you to
choose the source of the A/D pacer clock pulse (Figure 3-3). The default
for this jumper is the 1 MHz position.
The MetraByte DAS-8PGA is only available with a 1MHz XTAL as the
source for the A/D pacer clock. This created problems for users who
wanted to use the DAS-8PGA in place of the DAS-8and use existing
software because the DAS-8 gets its A/D pacer clock pulse from the PC
Bus Clock.
Figure 3-3. Clock Source Jumper
If you need compatibility with the DAS-8 pacing scheme, you can select the PC Bus Clock as the source for the A/D pacer
clock.
3
Page 8
3.4 WAIT STATE
A wait state may be enabled on the CIO-DAS08-AOx by selecting WAIT
STATE ON at the jumper provided on the board. Enabling the wait state
causes the personal computer's bus transfer rate to slow down whenever the
O
O
F
N
F
WAIT
STATE
CIO-DAS08-AOx is written to or read from.
WAIT STATE JUMPER BLOCK - A
The wait state jumper is provided in case you one day own a personal
computer with an I/O bus transfer rate which is too fast for the
CIO-DAS08-AOx. If your board were to fail sporadically in random ways,
you could try using it with the wait state ON.
wait state is not selected on this
jumper block. For a wait state,
place the jumper on the two
leftmost pins.
Figure 3-4. Wait State Jumper Block
3.5 D/A RANGE SWITCH
The analog output voltage range is selectable. A set of DIP switches, one set of six per channel, allo w you to choose a range
for each channel (Figure 3-5 and Table 3-3). .
Figure 3-5. Analog Output Range Switches - Typical
Table 3-3. Analog Output Range Select Switches Coding
RANGE SELECTION SWITCH SETTINGS - U = Up, D = Down
The dual D/A converter can be updated simultaneously or individually. A jumper controls this feature.
When the jumper (see Figure 3-6) is in the NORMAL position, the DAC low byte is written to first, then the high byte (4 bit
nibble). When the high byte is written, the DAC output is updated.
When the jumper is in the SIM position, both DACs outputs are updated when you read from DAC 0 Low Byte. First you
must load the new output value into both or one DAC, then when the DACs have the correct output value loaded, read from
BASE + 8 and the outputs will be updated. Analog Output Range Select Switches
D/A Simultaneous
Update Jumper
Figure 3-6. CIO-DAS08-A0x Board Layout
3.7 INSTALL THE CIO-DAS08-AOx IN THE COMPUTER
Turn the power off.
Remove the cover of your computer. Please be careful not to dislodge any of the cables installed on the boards in your
computer as you slide the cover off.
Locate an empty expansion slot in your computer.
Push the board firmly down into the expansion bus connector. If it is not seated fully it may fail to work and could short
circuit the PC bus power onto a PC bus signal. This could damage the motherboard in your PC as well as the
CIO-DAS08-AOx.
5
Page 10
4CALIBRATION AND TEST
The CIO-DAS08-AOx is supplied with InstaCal software which also performs calibration and board testing.
Every board is fully tested and calibrated before shipment. For normal environments, a calibration interval of 6 months to one
year is recommended. If frequent variations in temperature or humidity are common, re-calibrate at least every three months. It
requires less than 30 minutes to calibrate the CIO-DAS08-AOx.
The CIO-DAS08-AOx does not require recalibration when moved from one computer to another. The reason is that the board has
a stable DC/DC converter on-board which supplies the analog +/−15V voltages.
6
Page 11
5SIGNAL CONNECTION
Making correct signal connections is one of the most important aspects of applying a data acq uisition board. Failure to properly
connect signals is the most common reason for calls to technical support. Usually, a problem can be located by cross-checking the
wiring against the connector diagram
5.1 ANALOG CONNECTOR DIAGRAM
The CIO-DAS08-AOx analog connector is a male 37-pin D-type connector,
accessible from the rear of the PC through the expansion backplate.
The connector accepts female 37-pin D-type connectors, such as those on
the C73FF-2, 2 foot cable with connectors.
If frequent changes to signal connections or signal conditioning is required,
please refer to the information on the CIO-TERMINAL and CIO-MINI37
screw terminal boards, CIO-EXP32, 32 channel analog MUX/AMP.
Isolation amplifiers may be mounted using the ISO-RACK08 and 5B
isolation modules.
37 CH 0 HIGH
36 CH 1 HIGH
35 CH 2 HIGH
34 CH 3 HIGH
33 CH 4 HIGH
32 CH 5 HIGH
31 CH 6 HIGH
30 CH 7 HIGH
29 PC BUS +5
28 DIGITAL GND
27 IP3
26 IP2
25 IP1
24 IR INPUT
23 GATE 2
22 GATE 1
21 D/A LLGND
20 DAC 0 OUT
Figure 4-1. Analog Connector Diagram
The CIO-DAS08-AOx has eight differential analog inputs. For a detailed description of differential vs. single-ended analog
inputs, turn to the section of this manual on Analog Electronics.
Briefly, differential inp uts are three-wire ana log hoo kups consisting of a signal-high, a signal-low, and a chassis gr ound. The
benefits of differential inputs are the ability to reject noise, and the ability to eliminate ground loops or potentials between
signal low and chassis ground.
Although differential inputs are often preferable to single ended inputs, there are occasions when the floating nature of a
differential input can cause input reading difficulties. In those cases, the CIO-DAS08-AOx inputs can be converted to
modified differential.
Examine the diagram of the CIO-DAS08-AOx board. A position for an optional Single Inline Package (SIP) of resistors is
located near the 37-pin connector. Installing the SIP converts the analog inputs from fully differential to modified differential
with a resistive reference to ground. A SIP resistor network is included with the board for this purpose.
7
Page 12
NOTE: When using the CIO-DAS08-PGx with the CIO-EXP16 or CIO-EXP32, the optional SIP resistor must be
installed. The CIO-EXP16 and CIO-EXP32 (and MetraByte EXP16) were designed to interface to a single-ended
input. Failure to install the SIP resistor when the board is used with these expansion boards will result in floating,
unstable readings.
Special instructions and solder are packaged with the SIP resistor. Follow the installation instructions
carefully and use the solder provided. Use of any other so lder, o r failure to follow instructions can result in
a degradation of the analog input's accuracy and may require out-of-warranty repair.
5.3 DIGITAL OUTPUTS & INPUTS OP0-2 & IP0-3
The digital outputs and inputs located on the main, or analog connector, may best be reserved for use as CIO-EXP mux
controls or trigger inputs. General digital interfacing should be done on the rear 24-bit digital connector.
The digital inputs/outputs on the CIO-DAS08-AOx are at TTL level. TTL is an electronics industry term, short for Transistor
Transistor Logic, with describes a standard for digital signals. It is a common misconception that TTL signals are always 0V
for low and +5V for high. Altho ugh the low signal is relia bl y clo se to 0V , the high signal may be a nywhere from 2.4 V to 5V ,
and be within the TTL specification.
5.4 DIGITAL I/O CONNECTOR
The 24 bits of digital I /O at the re ar of the bo ar d are bro ught to a 4 0-p in head er co nnec tor . Yo u can a ssemble your own cab le
or purchase a BP40-37 which translates the 40-pin header into a 37-pin, D-type connector with mounting bracket.
Figure 4-2 is the schematic for the BP40-37.
After connection to a BP40-37, the signals at the 37-pin D connector are exactly the same as a CIO-DIO24 or MetraByte
PIO12 standard.
Figure 4-3 has the pin assignments at the 37-pin connector.
Figure 4-2. BP-37 Cable Schematic Figure 4-3. Pin Assignments on D-37 End of BP40-37
8
Page 13
6CIO-DAS08-AOx ARCHITECTURE
All of the programmable functions of the CIO-DAS08-AOx are accessible through the control and data registers, which are
explained here.
6.1 REGISTER LAYOUT
The CIO-DAS08-AOx is controlled and monitored by writing to and reading from 16 consecutive 8-bit I/O addresses. The
first address, or BASE ADDRESS, is determined by setting a bank of switches on the board.
Register manipulation is best left to experienced programmers as most of the possible functions are implemented in easy to
use Universal Library™.
The register descriptions use the following format:
01234567
A/D11A/D10A/D9
LSB
The numbers along the top row are the bit po sitions within the 8-bit byte and the numbers and symbols in the bo ttom row are
the functions associated with that bit.
CH1CH2CH4CH8A/D12
To write to or read from a register in decimal or hexadecimal, the bit weights in Table 6-1 apply:
Table 6-1. Byte Bit Weights
HEX VALUEDECIMAL VALUEBIT POSITION
110
221
442
883
10164
20325
40646
801287
To write control words or data to a register, the individual bits must be set to 0 or 1 then combined to form a byte. Data read
from registers must be analyzed to determine which bits are on or off.
The method of programming required to set/read bits from bytes is beyond the scope of this manual. It will be covered in
most Introduction To Programming books, available from a bookstore.
In summary form, the registers and their function are listed on Table 6-2. Within each register are eight bits which may
constitute a byte of data or they may be eight individual bit set/read functions.
9
Page 14
6.2 A/D DATA REGISTER
BASE ADDRESS (Read / Write)
Table 6-2. Register Functions
WRITE FUNCTIONREAD FUNCTIONADDRESS
Start 8 bit A/D conversionA/D Bits 9 - 12 (LSB)BASE
Start 12 bit A/D conversionA/D Bits 1 (MSB) - 8BASE + 1
OP1 - OP4, INTE & MUX AddressEOC, IP1 - IP3, IRQ, MUX AddressBASE + 2
Programmable gain controlChannel MUX and Gain StatusBASE + 3
Load Counter 0Read Counter 0BASE + 4
Load Counter 1Read Counter 1BASE + 5
Load Counter 2Read Counter 2BASE + 6
Counter ControlNot usedBASE + 7
DAC 0 Low ByteSimultaneous UpdateBASE + 8
DAC 0 High Byte (& individual update)Simultaneous UpdateBASE + 9
DAC 1 Low ByteSimultaneous UpdateBASE + 10
DAC 1 High Byte (& individual update) Simultaneous UpdateBASE + 11
PORT A 82C55PORT A 82C55BASE + 12
PORT B 82C55PORT B 82C55BASE + 13
PORT C 82C55PORT C 82C55BASE + 14
82C55 ControlNoneBASE + 15
01234567
A/D11A/D10A/D9
LSB
0000A/D12
READ
On read, it contains the least significant four digits of the analog input data.
These four bits of analog input data must be combined with the eight bits of analog input data in BASE + 1, forming a
complete 12 bit number. The data is in the format 0 = minus full scale. 4095 = +FS.
WRITE
Writing any data to the register causes an immediate 8-bit A/D conversion.
BASE ADDRESS + 1 (Read / Write)
01234567
A/D8A/D7A/D6A/D5A/D4A/D3A/D2A/D1
MSB
READ
On read the most significant A/D byte is read.
The A/D Bits code corresponds to the voltage on the input according to the table below.
UNIPOLARBIPOLARHEXDECIMAL
+ Full Scale+ Full ScaleFFF4095
½ Full Scale0 Volts8002048
0 Volts- Full Scale00
WRITE
Writing to this register starts a 12-bit A/D conversion.
A note of caution: Place several NO-OP instr uctions between consecutive 12-bit A/D conversions to avoid overrunning the
A/D converter.
10
Page 15
6.3 STATUS AND CONTROL REGISTER
BASE ADDRESS + 2 (Read / Write) Read Functions
MUX0MUX1MUX2IRQIP1IP2IP3EOC
READ = STATUS
EOC = 1 the A/D is busy converting and data should not be read.
EOC = 0 the A/D is not busy and data may be read.
IP3 to IP1 are the digital input lines on the 37-pin analog connector.
IRQ is the status of an edge triggered latch connected to pin 24 of the analog connecto r. It is high (1) when a positive edge
has been detected. It may be reset to 0 by writing to the INTE mask at BASE + 2 write.
MUX 2 to MUX 0 is the current multiplexer channel. The current channel is a binary coded number between 0 and 7 .
WRITE = CONTROL
BASE + 2 (Read / Write) Write Functions
MUX0MUX1MUX2INTEOP1OP2OP3OP4
01234567
01234567
OP4 to OP1 are the digital output lines on the 37-pin analog connector.
INTE = 1 enables interrupts (positive edge triggered) onto the PC bus IRQ selected via the IRQ jumper on the
CIO-DAS08-AOx.
INTE = 0 disables the passing of the interrupt detected at pin 24 to the PC bus.
IRQ is set to 1 every time an interrupt occurs. If you want to process successive interrupts then set INTE = 1 as the last step
in your interrupt service routine.
MUX2 to MUX0. Set the current channel address by writing a binary coded number between 0 and 7 to these three bits.
NOTE
Every write to this register sets the current A/D channel MUX setting to the number in bits 2-0.
6.4 PROGRAMMABLE GAIN REGISTER
BASE ADDRESS + 3
A software-programmable register controls the input amplifier. It allows you to select unipolar/bipolar ranges and gains of 1,
10, 100 or 1000 (...AOH) or 1, 2, 4 or 8 (...AOL) via software command.
The register is ad dressed at the boar d's Base Address + 3. This register is unused on the CIO-DAS08 and so rep resents no
conflict with existing CIO-DAS08 software.
To set the input range of the CIO-DAS08-AOx board, select the desired range fro m the table and write the code in d ecimal or
hexadecimal to base address +3. Here is an example in BASIC:
100 OUT &H303, 6'Set gain = 1000, +/-0.005V range.
11
Page 16
The register's Write layout is :
BASE + 3 (Read / Write) Write Functions
The register's Read layout is :
BASE + 3 (Read / Write) Read Functions
R3 to R0: Indicate the current analog input range.
MA2 to MA0: Indicate the analog input channel that is currently selected (by writing to base +2).
6.4.1CIO-DAS08-AOH GAIN/RANGES
The gain/range of the board is controlled by writing a control code to the Base + 3 register. The gain/range codes are:
1000110 to 101
1100330 to 110
1010550 to 0.1100
1110770 to 0.011000
6.4.2 CIO-DAS08-AOL GAIN/RANGES
There are fewer ranges available for the CIO-DAS08-AOL. Gains of 2, 4 & 8 are often called binary gains. These
ranges are not available on the MetraByte DAS-8AO. The gain/range of the board is controlled by writing a control code
to the Base + 3 register.
1000110 to 101
1100330 to 52
1010550 to 2.54
1110770 to 1.258
6.4.3 GAIN/RANGES CIO-DAS08-AOM
For those who require the exact ranges and gain codes of the MetraByte DAS08-AO, the CIO-DAS08-AOM is available.
The codes entered in Base + 3 register for the desired range follow:
1001990 to 101
1101B110 to 110
1011D130 to 0.1100
1111F150 to 0.011000
6.5 COUNTER LOAD & READ REGISTERS
COUNTER 0
BASE ADDRESS + 4 (Read / Write)
COUNTER 1
BASE ADDRESS + 5 (Read / Write)
COUNTER 2
BASE ADDRESS + 6 (Read / Write)
The data in the counter read register, and the action taken on the data in a counter load register, is wholly dependent upon the
control code written to the control register.
The counters are 16-bit counters, each with an 8-bit window, the read / load register. Data is shifted into and out of the 16-bit
counters through these 8-bit windows according to the control byte.
You will need an 8254 data sheet if you want to program the 8254 directly at the register level.
01234567
D0D1D2D3D4D5D6D7
01234567
D0D1D2D3D4D5D6D7
01234567
D0D1D2D3D4D5D6D7
13
Page 18
6.6 COUNTER CONTROL REGISTER
BASE ADDRESS + 7 (Write Only)
WRITE
SC1 to SC0 are the counter select bits. They are binary-coded between 0 and 2.
RL1 to RL0 are the read and load control bits:
Latch counter00
Read/load high byte10
Read/load low byte01
Read/load low the high byte (Word Transfer)11
M2 to M0 are the counter control operation type bits:
BCD = 0 then counter data is 16 bit binary. (65,535 max)
BCD = 1 then counter data is 4 decade Binary Coded Decimal. (9,999 max)
6.7 COUNTER TIMER OPERATION
The 8254 counter timer chip (Figure 6-1) can be used for event counting, frequency and pulse measurement and as a pacer
clock for the A/D converter. All the inputs, outputs, and gates of the counter are accessible through the 37-pin analog
connector with the exception of the counter 2 input.
The counter is easy to understand. The GATE line determines whether or not TTL level pulses present at the CLK input will
decrement the counter. The OUT line then transitio ns (pulses o r shifts) dep ending o n the co des in the co ntrol register and the
count value in the count register.
The counter gates, inputs and outputs are all simple TTL.
14
Page 19
The primary purpose of the counter timer chip is to pace the A/D samples. The input of counter 2 is jumper selectable for a
crystal controlled source or the PC bus clock source.
10K
+5
RN1
22
2
4
GATE 0
CLK 0
GATE 1
CLK 1
COUNTER 0
COUNTER 1
3
5
GATE 2
CLK 2
CLK BUS
2
U8
3
COUNTER 2
U14
6
37 PIN
ANALOG
CONN. P2
10
1 MHz
0
10 MHz
OSCILLATOR
23
PC BUS PCLK - B20
Figure 6-1. 82C54 Counter/Timer Control
The PCLK signal is divided by two prior to the input at counter 2. Therefore, if the PCLK signal on your PC/AT were 8 MHz,
the signal at the input of counter 2 would be 4 MHz. The 10 MHz crystal source is divided by 10.
Assuming a 4 MHz signal at counter 2, the rates out of counter 2 (pin 6) may vary between 2 MHz (4 MHz / 2) to 61 Hz
(4 MHz / 65,535). For rates slower than 61 Hz, the output of counter 2 should be wired to the input of counter 1. The output
of counter 1 would then be wired to the interrupt input (pin 24). The slowest rate would then be once every 17 minutes.
When using the crystal source, the minimum rate would be about 15 Hz using only one counter.
6.8 D/A 0 CONTROL REGISTERS
Each D/A is controlled by a pair of 8-bit registers. These registers contain the low byte and the high nibble of the D/A 12-bit
control word. The value written to these two registers controls the output of the D/A chip relative to the range selected by the
D/A range select switch.
The D/A output range can generally be calculated as (#/4096) * FSR.
The #/4096 is a proportion of the Full Scale Range selected by the range switch.
Bipolar ranges are 0V at DAC value 2048.
BASE ADDRESS + 8, DAC 0 LOW BYTE (Read / Write)
DA1DA2DA3DA4DA5DA6DA7
15
01234567
DA0
LSb
Page 20
WRITE
A write to this register loads the value written into DAC0’s register, but does not update the DAC output.
READ
A read from this register updates both DACs when the Update jumper is set for simultaneous mode. The value read contains
no meaningful information.
BASE ADDRESS + 9, DAC 0 HIGH BYTE (Read / Write)
XXXX
MSb
WRITE
A write to this register loads the value written into DAC0’s register and updates DAC0’s output when the Update jumper is
set for normal mode.
READ
A read from this register updates both DACs when the Update jumper is set for simultaneous mode. The value read contains
no meaningful information.
6.9 D/A 1 CONTROL REGISTERS
01234567
DA8DA9DA10DA11
BASE ADDRESS + 10, DAC 1 LOW BYTE (Read / Write)
01234567
DA1DA2DA3DA4DA5DA6DA7
WRITE
A write to this register loads the value written into DAC1’s register, but does not update the DAC output.
READ
A read from this register updates both DACs when the Update jumper is set for simultaneous mode. The value read contains
no meaningful information.
BASE ADDRESS + 11, DAC 1 HIGH BYTE (Read / Write)
XXXX
MSb
WRITE
A write to this register loads the value written into DAC1’s register and updates DAC1’s output when the Update jumper is
set for normal mode.
READ
A read from this register updates both DACs when the Update jumper is set for simultaneous mode. The value read contains
no meaningful information.
DA0
LSb
01234567
DA8DA9DA10DA11
16
Page 21
6.10 82C55 CONTROL & DATA REGISTERS
The 24 bits of digital I/O is composed of one 82C55 parallel I/O chip which contains three data and one control register
occupying four consecutive I/O locations.
In summary form, the registers and their function are listed on the following table. Within each register are eight bits which
may constitute a byte of data or they may be eight individual bit set/read functions.
Port A OutputPort A Input of 82C55 #1BASE + 12
Port B OutputPort B InputBASE + 13
Port C OutputPort C InputBASE + 14
Configure 82C55 #1None. No read back on 82C55BASE + 15
PORT A DATA
BASE ADDRESS +12 (Read / Write)
PORT B DATA
BASE ADDRESS + 13 (Read / Write)
Ports A & B may be programmed as input or o utput. Each is written to and read from in bytes, although for control and
monitoring purposes the individual bits are used.
01234567
A0A1A2A3A4A5A6A7
01234567
B0B1B2B3B4B5B6B7
Bit set/reset and bit read functions require that unwanted bits be masked out of reads and ORed into writes.
PORT C DATA
BASE ADDRESS + 14 (Read / Write)
01234567
C0C1C2C3C4C5C6C7
CL0CL1CL2CL3CH0CH1CH2CH3
Port C may be used as one 8-bit port of either input or output, or it may be split into two, 4-bit ports which independently may
be input or output. The notation for the upper 4-bit port is CH3 - CH0, and for the lower, CL3 - CL0.
Although it may be split, every read and write to port C carries ei ght bits of data so unwanted information must be ANDed out
of reads, and writes must be ORed with the current status of the other port.
OUTPUT PORTS
In 82C55 mode 0 configuration, p orts configured for output hold the output data written to them. This output byte may be
read back by reading a port configured for output.
INPUT PORTS
In 82C55 mode 0 configuration, ports configured for input read the state of the input lines at the moment the read is executed,
transitions are not latched.
For information on modes 1 (strobed I/O) and 2 (bi-directional strobed I/O), you will need to acquire an Intel or AMD data
book and see the 82C55 data sheet.
82C55 CONTROL REGISTER
BASE ADDRESS + 15 (Write Only)
01234567
CLBM1CUAM2M3MS
Group BGroup A
17
Page 22
The 82C55 may be programmed to operate in Input/ Output (mode 0), Strobed Input/ Output (mode 1) or Bi-directional Bus
(mode 2).
NOTE
Information on programming the 82C55 in mode 0 is included here. Those wishing to use the 82C55 in modes 1 or 2 must
procure a data book from Intel Corporation Literature Department.
When the PC is powered up or RESET, the 82C55 is reset. This places all 24 lines in Input mode. No further programming is
needed to use the 24 lines as TTL inputs.
To program the 82C55 for other modes, the following control code byte must be assembled into on 8-bit byte.
M1 = 0 is mode 0 for group B.Input / Output
M1 = 1 is mode 1 for group B.Strobed Input / Output
Port A, Port B, Port C-High, and Port C-Low can be independently programmed for inputs or outputs.
The two groups of ports, group A and group B, may be independently programmed in one of several modes. The most
commonly used mode is mode 0, input/output mode. The codes for programming the 82C55 in mode 0 are shown in the table
below.
D7 is always 1 and D6, D5 & D2 are always 0.
CLBCUADECHEXD0D1D3D4
OUTOUTOUTOUT128800000
INOUTOUTOUT129811000
OUTINOUTOUT130820100
ININOUTOUT131831100
OUTOUTINOUT136880010
INOUTINOUT137891010
OUTININOUT1388A0110
INININOUT1398B1110
OUTOUTOUTIN144900001
INOUTOUTIN145911001
OUTINOUTIN146920101
ININOUTIN147931101
OUTOUTININ152980011
INOUTININ153991011
OUTINININ1549A0111
ININININ1559B1111
18
Page 23
7SPECIFICATIONS
Power consumption
+5V:670 mA typical, 840 mA max
Analog input section
A/D converter type574AJ
Resolution12 bits
Number of channels8 differential (configurable as quasi-differential via installation of SIP resistor)
Input Ranges
CIO-DAS08-AOH±10V, ±5V, ±1V, ±0.5V , ±0.1V, ±0.05V, ±0.01V, ±0.005V, 0 to 10V, 0 to 1V, 0 to
0.1V, 0 to 0.01V software selectable
CIO-DAS08-AOL±10V, ±5V, ±2.5V, ±1.25V, ±0.625V, 0 to 10V, 0 to 5V, 0 to 2.5V, 0 to 1.25V
software selectable
CIO-DAS08-AOM±10V, ±5V, ±0.5V, ±0.05V, ±0.01V, 0 to 10V, 0 to 1V, 0 to 0.1V, 0 to 0.01V
software selectable
PolarityUnipolar/Bipolar, software selectable
A/D pacingInternal counter or external source (Interrupt Inp ut, jumper selectable, rising edge) o r
software polled
A/D Trigger sourcesExternal hardware/software (Digital In 1)
Data transferInterrupt or software polled
DMANone
A/D conversion time25 µs
Throughput20 KHz, PC dependent
Accuracy±0.01% of reading ±1 LSB
±0.05% of full scale
Differential Linearity error±1 LSB
Integral Linearity error±0.5 LSB
No missing codes guaranteed12 bits
Gain drift (A/D specs)±25 ppm/°C
Zero drift (A/D specs)±10 µV/°C
Common Mode Range±10V
CMRR72 dB
Input leakage current (@25 Deg C)100 nA
Input impedance10 Meg Ohms min
Absolute maximum input voltage±35V
19
Page 24
Analog Output:
D/A converter typeAD7237 dual DAC
Resolution12 bits
Number of channels2
Output Ranges±10V, ±5V, ±2.5V, ±1.67V, 0 to 10V, 0 to 5V, 0 to 2.5V, 0 to 1 .67V Each channel
independently switch selectable
Offset error±1 LSB max (adjustable to 0 with potentiometer)
Gain error±1 LSB max (adjustable to 0 with potentiometer)
Differential nonlinearity±0.9 LSB max
Integral nonlinearity±1 LSB max
MonotonicityGuaranteed monotonic to 12 bits over temperature
D/A Gain drift±3 ppm/°C max
D/A Bipolar offset drift±30 ppm/°C max
D/A Unipolar offset drift±50 ppm/°C max
D/A pacingSoftware paced
D/A trigger modesSoftware
Data transferProgrammed I/O
Settling time (D/A converter)
(full scale step to ±0.5 LSB)8 µs max
Slew Rate (OP07)0.3V/µs
Current Drive±5 mA
Output short-circuit durationindefinite
Output couplingDC
Output impedance0.1 Ohms max
MiscellaneousDouble buffered output latches
Update DACs individually or simultaneously (jumper selectable)
Digital Input / Output
Digital Type (main connector)
Output: 74LS273
Input: 74LS244
Configuration4 fixed output bits, 3 fixed input bits
Number of channels4 out, 3 in
Output High2.7 volts min @ −0.4 mA
Output Low0.4 volts max @ 8 mA
Input High2.0 volts min, 7 volts absolute max
Input Low0.8 volts max, −0.5 volts absolute min
Output power-up / reset state
Digital Type (Digital I/O connector)82C55
Configuration2 banks of 8, 2 banks of 4, programmable by bank as input or output
Number of channels24 I/O
Output High3.0 volts min @ −2.5mA
Output Low0.4 volts max @ 2.5mA
Input High2.0 volts min, 5.5 volts absolute max
Input Low0.8 volts max, −0.5 volts absolute min
Power-up / reset stateInput mode (high impedance)
Counter type82C54
Configuration3 down counters, 16 bits each
Counter 0 - independent, user configurable
Source: user connector (Counter 0 In)
Gate:tied high through 10k (enabled)
Output: user connector (Counter 0 Out)
Counter 1 - independent, user configurable
Source: user connector (Counter 1 In)
Gate:user connector (Gate 1)
Output: user connector (Counter 1 Out)
Counter 2 - independent, user configurable
Source: 1MHz (from 10MHz Xtal via divide-by-ten) or PC SysClk (via divide by 2 circuit)
selectable by jumper
Gate:user connector (Gate 2)
Output: user connector (Counter 2 Out)
Clock input frequency10 Mhz max
High pulse width (clock input)30 ns min
Low pulse width (clock input)50 ns min
Gate width high50 ns min
Gate width low50 ns min
Input low voltage0.8V max
Input high voltage2.0V min
Output low voltage0.4V max
Output high voltage3.0V min
Environmental
Operating temperature range0 to 50°C
Storage temperature range−20 to 70°C
Humidity0 to 95% non-condensing
21
Page 26
8APPLICATION NOTES
8.1 VOLTAGE DIVIDERS
If you wish to measure a signal which varies over a range greater than the input range of an analog or digital input, a voltage
divider must be used to drop the voltage of the input signal to the level the analog or digital input can measure.
A voltage divider takes advantage of Ohm's law, which states,
Voltage = Current * Resistance
and Kirkoff's voltage law which states,
The sum of the voltage drops around a circuit will be equal to the voltage drop for the entire circuit.
Implied in the above is that any variation in the voltage drop for the
circuit as a whole will have a proportional variation in all the voltage
drops in the circuit.
In a voltage divider, the voltage across one resistor in a circuit is
proportional to the voltage across the total resistance in the circuit.
The object in using a voltage divider is to choo se two resistors with
the proper proportions relative to the full scale of the analog or
digital input and the maximum signal voltage.
Dropping a voltage proportionally is called attenuation. The formula
for attenuation is:
The variable attenuation is the proportional
Attenuation = R1 + R2
R2
2 = 10K + 10K
10K
R1 = (A-1) * R2
Digital inputs may require the use of voltage dividers. For example, if you wish to input a digital signal that is at 0 vo lts when
off and 24 volts when on, you cannot connect that directly to the CIO-AD digital inputs. The voltage must be dropped to 5
volts max when on. The attenuation is 24:5 or 4.8. Use the equation above to find an appropriate R1 if R2 is 1K. Remember
that a TTL input is 'on' when the input voltage is greater than 2.5 volts.
The resistors, R1 and R2, are going to dissipate all the power in the divider circuit according to the equation
Current (I) = Voltage / Resistance and power (W) = I
the less power dissipated by the divider circuit. Here are two simple rules:
difference b etween the signal voltage max and
the full scale of the analog input.
For example, if the signal varies between 0 and
20 volts and you wish to measure that with an
analog input with a full scale range of 0 to 10
volts, the Attenuation is 2:1 or just 2.
For a given attenuation, p ick a handy resisitor
and call it R2, the use this formula to calculate
R1.
IMPORTANT NOTE
2
* R. The higher the value of the resistance (R1 + R2)
For Attenuation of 5:1 or less, no resistor should be less than 10K.
For Attenuation of greater than 5:1, no resistor should be less than 1K.
22
Page 27
The CIO-TERMINAL has the circuitry on board to create custom voltage dividers. The CIO-TERMINAL is a 16" by 4"
screw terminal board with two 37-pin D-type connectors and 56 screw terminals (12 - 22 AWG). Designed for table top, wall
or rack mounting, the board provides prototype, divider circuit, filter circuit and pull-up resistor po sitions which you may
complete with the proper value components for your application.
8.2 DIFFERENTIAL & SINGLE ENDED INPUTS
This application note uses the CIO-DAS16 as the example board. Please apply the signal names to the board you have.
Two type of analog inputs are commonly found on A/D boards, they are differential and single ended. Single-ended is
typically the less expensive of the two since input connector density is double that for differential inputs.
8.3 COMMON MODE RANGE
Differential inputs have a co mmon mode range (CMR) (V cm). Single ended inputs have no CMR. Co mmon mode range is
the voltage range over which differences in the low side of the signal and A/D input ground have no impact on the A/D's
measurement of the signal voltage. A differential input can reject differences between signal ground and PC ground.
Shown here is a CIO-DAS16 in differential mode. The multiplexer is omitted for simplicity.
A single ended input has no common mode range because there is only one LOW wire, which is assumed to be the same
voltage at the source and at the A/D board.
The maximum difference which may be rejected is the CMR.
For example, the CIO-DAS16 has a common mode plus signal range of 11.5 volts, common mode not to exceed 10 volts.
23
Page 28
This specification is illustrated graphically here and will be referred to as Cumulative Signal Range (CSR).
Most manufactures of A/D boards specify the CMR directly from the component data sheet, ignoring the effect of the board
level system on that specification. A data sheet of that type might claim 10 volts of CMR. Although this is a factual
specification and the designer of the board (or other EE) would be able to translate that into a systems specification, most A/D
board owners are confused or mislead by such specs.
8.4 COMMON MISUNDERSTANDINGS
The CMR specification of a differential input is often confused with an isolation specification, which it is not. It makes sense.
doesn't it, that 10 volts of CMR is the same as 10 volts of isolation? No. The graph above shows why.
Also, failure to specify the common mode plus signal system specification leads people to believe that a DC offset equal to
the component CMR can be rejected regardless of the input signal voltage. It cannot as the graph above illustrates.
When is a differential input useful? The best answer is whenever electromagnetic interference (EMI) or radio frequency
interference (RFI) may be present in the path of the signal wires. EMI and RFI can induce voltages on both signal wires and
the effect on single ended inputs is generally a voltage fluctuation between signal high and signal ground.
A differential input is not affected in that way. When the signal high and signal low of a differential input have EMI or RFI
voltage induced on them, that common mode voltage is rejected, subject to the system constraint that common mode plus
signal not exceed the A/D board's CSR specification.
8.5 GROUND LOOPS
Ground loops are circuits in which the signal ground and the PC ground are not the same. Ground loop inducing voltage
differential may be a few volts of hundr eds of volts. They may be constant or tr ansient (spikes). A differe ntial input will
prevent a ground loop as long as the CSR specifications is not exceeded.
If ground differences greater than the CMR are encountered, isolation is required.
8.6 USE OF SINGLE-ENDED INPUTS
Why use single ended inputs? First, single ended inputs require fewer parts so they cost less. On an A/D board, the parts cost
to go from 16 single ended channels to 16 differential channels is small so that cannot be the reason. The real reason is
connector space. Single ended inputs require one analog high input per channel and one LLGND shared by all inputs.
Differential inputs require signal high and signal low inputs for each channel and one common shared LLGND.
Single ended inputs save connector space, parts cost and in all cases where there is no common mode voltage or EMI/RFI
they work just as well as differential inputs.
24
Page 29
8.7 LOW PASS FILTERS
A low pass filter is placed on the signal wires between a signal source and an A/D board input. It greatly reduces frequencies
greater than the cut off frequency that are entering the A/D board's analog or digital inputs.
The key term in a low pass filter circuit is cut-off frequency. The cut-off frequency is that frequency above which no
variation of voltage with respect to time may enter the circuit. For example, if a low pass filter had a cut-off frequency of 30
Hz, the kind of interference associated with line voltage (60Hz) would be filtered out but a signal of 2 5Hz would be allowed
to pass.
Also, in digital circuits, low pass filters are often used remove to switch bounce noise.
A simple low pass filter can be made from one resistor (R) and one capacitor (C). T he cut off frequency is determined by the
formula:
Fc = 1
2 * Pi * R * C
therefore,
R = 1
2* Pi * C * Fc
Fc = cycles/sec
Pi = 3.14...
R = Ohms
C = Farads
25
Page 30
For Your Notes
26
Page 31
EC Declaration of Conformity
We, Measurement Computing Corp., declare under sole responsibility that the product:
CIO-DAS08-AOx
DescriptionPart Number
to which this declaration relates, meets the essential requirements, is in conformity with, and CE marking has been applied according to
the relevant EC Directives listed below using the relevant section of the following EC standards and other normative documents:
EU EMC Directive 89/336/EEC
EU 55022 Class B
EN 50082-1
IEC 801-2
IEC 801-3
IEC 801-4
Carl Haapaoja, Director of Quality Assurance
: Electrostatic discharge requirements for industrial process measurement and control equipment.
: Radiated electromagnetic field requirements for industrial process measurements and control equipment.
: Electrically fast transients for industrial process measurement and control equipment.
: Limits and methods of measurements of radio interference characteristics of information technology equipment.
: EC generic immunity requirements.
: Essential requirements relating to electromagnetic compatibility.
Page 32
Measurement Computing Corporation
10 Commerce Way
Suite 1008
Norton, Massachusetts 02766
(508) 946-5100
Fax: (508) 946-9500
E-mail: info@mccdaq.com
www.mccdaq.com
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.