ETC APCI-ADADIOCS

J605 APCI-ADADIO
2192-09125-000-000
APCI-ADADIO
Introduction
The APCI-ADADIO is a 32-bit PCI Local Bus board which provides 8 differential (APCI-ADADIOCD) or
16 single-ended (APCI-ADADIOCS) multiplexed analogue inputs, two analogue outputs, 16 digital I/O
lines and three counter/timer channels. All I/O signals are routed to a 50 way D-Type socket which
conforms to Arcoms standard signal conditioning system (SCS).
Features
• 8 differential or 16 single ended, multiplexed 12-bit ADC channels.
– 10KHz channel-to-channel acquisition rate.
– 100KHz repeat rate.
– 10uS typical conversion rate.
– +/- 5V, +/-10V,0-5V,0-10V selectable input ranges.
• Two 12-bit(+/-1 bit accuracy) analogue output channels.
– +/- 5V, +/-10V,0-5V,0-10V selectable input ranges.
– 10uS settling time to 12-bit accuracy.
• 16 TTL nibble-configurable I/O lines.
– Output 24mA at 0.45V, sources from 1K resistor at +5V.
– Selectable power-up states.
• 8254-compatible 3-channel Counter/timer.
– 1 ADC Timer, 1 Interrupt timer, 1 general purpose timer.
– 1MHz master operating frequency.
• I/O connector conforms to Arcoms signal conditioning system (SCS).
• Board Access LED (RED).
• User LED (GREEN).
• 32-bit PCI 2.1 Compatible Bus Interface.
• Plug and Play Software compatible.
• CE compliant design.
• Operating Temperature range, 0°C to 70°C.
• Power consumption 180mA @ +5V, 280mA @ +12V.
• MTBF: 220,426 hours (using generic figures from MIL-HDBK-217F at ground benign).
Getting Started
•
•
•
•
Power down your PC system.
Install the board in a spare PCI Slot (See Installation for CE compliance).
Power up system with MSDOS.
Run APCI.EXE (supplied on the utility disk), this will search for the board and check I/O access. If
this fails, check board is correctly located.
Warning
This board contains CMOS devices which may be damaged by static electricity. Please ensure antistatic precautions are taken at all times when handling this board. If for any reason this board is
returned to Arcom control systems, please ensure it is adequately packed, to prevent damage
occurring during shipment.
Page 1
2192-09125-000-000
J605 APCI-ADADIO
Operation
PCI Bus Interface
The PCI bus is a high speed alternative to ISA bus, it has been designed to overcome some of the
limitations of ISA bus, and provide faster throughput for I/O intensive peripheral devices. PCI bus
also supports Plug and Play configuration which allows the system software to allocate resources
during initialisation helping to overcome address conflicts, which might exist in a system.
The APCI-ADADIO uses a single chip PCI bus slave controller which is designed and manufactured by
PLX Technology. This device has been designed to fully support the PCI 2.1 specification and
provides plug and play software capabilities. During power-up initialisation the PCI BIOS will detect
the card and assign a unique I/O address location and interrupt line. This ensures that there are no
resource conflicts on the PCI bus. Multiple cards are supported through this mechanism without the
need for address decode links.
The PLX device contains a standard type 00H configuration space header. The table below shows the
registers within this header which are required for configuration of the APCI-ADADIO.
Configuration Space Header
Offset
00-01H
02-03H
18-1BH
2C-2DH
2E-2FH
3CH
Register Name
Vendor ID
Device ID
Base Address Register
Subsystem Vendor ID
Subsystem ID
Interrupt Line
Description
ID of PCI device manufacturer
ID of PCI device
I/O base address assigned to card
ID of board manufacturer
ID of Board
Interrupt line assigned to device
Value
10B5H (PLX Technology)
9050H
0000xxxx
13ABH (ARCOM)
0605H (APCI-ADADIO)
0x
These registers can be accessed using PCI BIOS function calls.
I/O Map
The APCI-ADADIO uses an indexed addressing scheme to access the on-board devices and special
function registers. Two consecutive I/O locations are required to implement this scheme, the BASE
address is used to set the index value and the BASE+1 address is used to access the device. ADC and
DAC data is accessed via a dedicated pair of registers which are not part of the indexing scheme.
The I/O base address is set by the PCI BIOS during initialisation (refer to the PCI Bus section of this
manual for details). A PCI BIOS function call may be used to determine the base address once the
system has been initialised. Multiple boards may be used in a system as each will be given a unique
I/O base address.
I/O Address
Base
Base+1
Base+2
Base+3
Page 2
Function
Index register
Control/Status
ADC/DAC LSB Data
ADC/DAC MSB Data
Read/Write
Write
Read/Write
Read/Write
Read/Write
J605 APCI-ADADIO
2192-09125-000-000
Index Registers
Index
00
Register Name
Status
Read/Write
Read Base +1
Bit Function
Bit 0 ADC Ready
0 = Conversion completed since
last read of ADC Data High byte
Bit 1 Counter/Timer Ready
0 = OUT1 has transitioned lowhigh since Clear CTC Ready was
last accessed
00
ADC Start Conversion
Write Base +1
00
ADC Data 0-3
Read Base +2
00
ADC Data 4-11
Read Base +3
01
Multiplexer Channel Select
Write Base +1
02
DACA Register bit 0-3
Write Base +2
02
DACA Register bit 4-11
Write Base +3
03
DACB Register bit 0-3
Write Base +2
03
DACB Register bit 4-11
Write Base +3
04
05
06
07
08
Counter/Timer Channel 0
Counter/Timer Channel 1
Counter/Timer Channel 2
Counter/Timer Control
Clear Counter/Timer Interrupt
Read/Write Base +1
Read/Write Base +1
Read/Write Base +1
Write Base +1
Write Base +1
09
Digital I/O Configuration
Write Base +1
0A
Digital I/O 0-7
Read/Write Base +1
0B
Digital I/O 8-15
Read/Write Base +1
0C-7F
Not Used
N/A
Bit 0-7
Any data starts conversion
Bit 0-3
ADC 0-3 data
Bit 0-7
ADC 4-11 data
Bit 0-3
Mux Channel address
Bit 4-7
DACA 0-3 low data
Bit 0-7
DACA 4-11 high data
Bit 4-7
DACB 0-3 low data
Bit 0-7
DACB 4-11 high data
Counter 0 Value
Counter 1 Value
Counter 2 Value
Control
Any data clears Interrupt and sets
status to 1
Bit 0-3
0 = Nibble Output
1 = Nibble Input
Bit 0-7
0 = Input Low
1 = Input High
Bit 0-7
0 = Input Low
1 = Input High
N/A
Special Function Registers
Index
80
Register Name
User LED
Read/Write
Write Base +1
81
Board ID
Read Base +1
Bit Function
Bit 0
0 = LED Off
1 = LED On
Always returns 2DH
Page 3
2192-09125-000-000
J605 APCI-ADADIO
Interrupts
The APCI-ADADIO has one interrupt output signal which is routed to an IRQ line during the PCI BIOS
initialisation. This interrupt line is expanded on board to provide two interrupt sources. One of these
interrupts is connected to the ADC conversion complete signal and the other is connected to the
output of counter/timer channel 1.
If a counter/timer interrupt is generated a write sequence to Index register 8 must be executed in
order to clear the pending interrupt. The ADC Interrupt is cleared when the high byte data is
accessed.
A PCI BIOS call can be used to determine the IRQ signal assigned to this board.
Analogue to Digital Convertor
The APCI-ADADIO contains a single 12-bit successive approximation analogue to digital convertor.
The input to this device is connected to a 8 way (APCI-ADADIOCD) or 16 way Multiplexer (APCIADADIOCS). Prior to an AD conversion the appropriate channel can be selected by writing to the
Multiplexer Channel Select register (Index 1).
The ADC may be triggered from three different sources, selected by links LK9-11. Only one of these
links should be fitted at any time to ensure correct operation. The three sources are:1. Software trigger, initiated by an I/O write sequence.
2. Hardware trigger from an external TTL input (/RCONV), approximately 1-2 uS low pulse.
3. Periodic timer, programmed from the on-board counter/timer channel 0.
The following sequence can be used to perform an A/D conversion when using the software trigger
mode.
1. Write 01H to the BASE address.
2. Write to BASE+1 with the Multiplexer value for the appropriate channel.
3. Wait for approximately 50uSec for the input to settle.
4. Write 00H to the BASE address.
5. Write to BASE+1 (any value) to start conversion.
6. Wait for approximately 20uSec for the conversion to complete.
7. Read BASE+1 and check bit 0 is at logic ‘0’ i.e. conversion completed.
8. Read BASE+2 ADC data low nibble (bits 0-3).
9. Read BASE+3 ADC data high byte (bits 4-11).
The hardware trigger mode uses /RCONV on PL1 and the periodic timer mode uses counter/timer
channel 0 output to trigger the ADC. Conversion is initiated from these sources when /RCONV or
OUT0 are low. To ensure that the ADC does not perform multiple conversions the hardware and timer
pulses must be greater than 250nS and less than 6uS.
Maximum data throughput can be obtained by triggering a new conversion before data has been
read from the last conversion. To ensure that the ADC data registers contain the data from the last
conversion they must be read within 6uS of triggering a new conversion.
Digital to Analogue Convertor
The APCI-ADADIO contains two 12-bit digital to analogue convertors. On-board links can be used to
select between three possible output ranges +/- 5V, 0-5V and 0-10V. The DAC values are updated by
Page 4
J605 APCI-ADADIO
2192-09125-000-000
writing to the data register at BASE+2 (Low nibble bits 0-3) and BASE + 3 (High byte bits 4-11). Prior
to this the DAC channel must be selected by writing a value of 02H to the Index register for DAC A
and 03H for DAC B.
Digital I/O
The APCI-ADADIO provides 16 digital I/O lines, these are grouped into four nibbles. Each nibble has
a power-up/reset state link and can be programmed as either input or output via the Digital I/O
configuration register.
Access to the individual I/O lines is via Index registers 0AH and 0BH. Reading these registers will
provide the status of all I/O lines regardless of whether they are configured as input or output. It is
possible to use these lines as bi-directional with some careful programming ensuring that a conflict
does not exist on any of these lines.
Note:- If a nibble is to be used as an input the reset state link must be set to the high position,
otherwise the lines will be driven low as outputs which may cause damage.
Counter/Timer
The APCI-ADADIO contains an 8254 compatible counter/timer, which provides three 16-bit
counter/timers. Channel 0 can be used to trigger an A/D conversion and channel 1 can cause an
interrupt request sequence to be initiated.
A external connector (PL3) has been provided to allow internal or external signals to be used as clock
sources. The connector has been arranged to allow the on-board 1Mhz clock to be connected to the
clock input on channel 1 and 2 via links. The outputs of these timers can also be cascaded to provide
longer timing sequences.
Counter 0 should always be programmed in mode 2 which ensures that the output signal is only
active for a single clock cycle (i.e. 1uS when connected to the 1MHz clock). When the output from
counter 2 is used as the clock source the time between rising edges must not exceed 6 uS or be less
than 250nS.
Links
Throughout this section a ‘+’ indicates the default link position.
Default Link Position Diagram
Page 5
2192-09125-000-000
J605 APCI-ADADIO
LK1: Psedo Differential Ground Connection
Fit
Omit
APCI-ADADIOCS, fit only if inputs are isolated from 0VA
APCI-ADADIOCD, Differential inputs
LK3: Differential/Single-Ended Input selection
A
B
Differential - APCI-ADADIOCD
Single Ended - APCI-ADADIOCS
LK5-6: DAC Output range
LK5 and LK6 are used to select the output range for DAC1 and DAC0 respectively. The range settings
are as below:
+A
B
None
-5V to +5V
0V to +5V
0V to +10V
LK7-8 and LK18 ADC Input Ranges
These links are used to select the ADC input range. The range settings are as below:
LK7
+A
A
B
A
LK8
+A
B
A
B
LK18
+Omit
Omit
Omit
Fit
Range
-5V to +5V
0V to +10V
-10V to +10V
0V to +5V
Note:- Both links should not be fitted in position B on LK7 and LK8.
LK9-11 ADC Trigger Sources
These links are used to select between the three different ADC trigger sources. Each trigger source
is enabled when the link is fitted. To ensure correct operation only one link should be fitted.
+LK9
LK10
LK11
Enable Software trigger
Enable Hardware trigger
Enable Counter/timer channel 0 trigger
LK12-15 Digital I/O Reset State
These links select the state of the digital I/O lines at reset in nibble (4 bit) groups.
The link associated with each nibble is shown below:
LK15
LK14
LK13
LK12
A
+B
Digital I/O lines 0-3
Digital I/O lines 4-7
Digital I/O lines 8-11
Digital I/O lines 12-15
Sets output low
Sets output high
Note: If a nibble is to be used as an Input the corresponding link should be placed in position B to
ensure damage is not caused to the card or external circuitry.
LK16 Counter/Timer Channel 0 clock source
This link selects the clock source for counter timer channel 0.
LK16A
+LK16B
Page 6
Clocked by output from Counter/timer channel 2
1MHZ Clock
J605 APCI-ADADIO
2192-09125-000-000
LK17 Digital I/O Reset Test Link
Used for automated board testing of the digital I/O lines , to ensure they reset into the correct states
and should be left in position A.
User Configuration Record Diagram
Pseduo Differential Ground
Differential/Single Ended Input
DAC Output range
ADC Input Ranges
ADC Trigger Sources
Digital I/O Reset State
Counter/Timer Channel 0 Clock Source
Digital I/O Reset Test Link
LK1
LK3
LK5
LK6
LK7
LK8
LK18
LK9
LK10
LK11
LK12
LK13
LK14
LK15
LK16
LK17
Page 7
2192-09125-000-000
J605 APCI-ADADIO
Utility Disk
A demonstration program has been provided on the utility disk ADADIO.EXE.
This can be used to aid calibration and as source code is provided it will help demonstrate the
method used for accessing devices.
ADADIO.EXE
This program will display the ADC inputs, scroll an active bit along the digital I/O and allows setting
of the DAC’s. These will work with standard link settings. Decrementing counter/timer counts and
incrementing interrupt counts are also displayed, but a link must be fitted between pins 9 and 10 on
PL3.
ADADIO.INI
This is a text file which is used by the ADADIO program to select the number of channels, ADC and
DAC ranges etc. This file can be edited to reflect any changes in the board settings.
Calibration
Calibrating the ADC
In order to calibrate the ADC it is necessary to use a precision digital voltmeter (DVM) with at least
5 digit resolution and a high stability low noise DC signal source. During calibration it is necessary
to continually read and display the ADC data. A program ADADIO.EXE has been provided on the
utility disk to enable this.
Two trim adjusters, VR7 and VR1 , are provided for trimming the zero offset and gain respectively.
These trims are for fine-adjusting the standard ranges.
Unipolar Calibration
Set the necessary links for unipolar operation and the required voltage range. Run the ADADIO.EXE
program.
Zero Offset Adjust
1) Set the input voltage to 0.0000V.
2) Adjust VR7 to give 000 to 001 hex.
Full Scale Gain Adjust
1) Set the input voltage to full scale minus 1 LSB
+4.9985 for the 5V range.
+9.9975 for the 10V range.
2)Adjust VR1 to give FFE to FFF.
Bipolar Calibration
Set the necessary links for bipolar operation and the required voltage range. Run the ADADIO.EXE
program.
Bipolar Offset Adjust
1) Set the input voltage to full scale negative plus 1 LSB
-4.9975 for the 5V range.
-9.9950 for the 10V range.
2) Adjust VR7 to give 000 to 001 hex.
Page 8
J605 APCI-ADADIO
2192-09125-000-000
Full scale Gain Adjust
1) Set the input voltage to full scale positive minus 1 LSB
+4.9975 for the 5V range.
+9.9950 for the 10V range.
2) Adjust VR1 to give FFE to FFF.
Calibrating the DACs
In order to calibrate the DACs it is necessary to have a DVM with at least 5 digit resolution. On the
utility disk there is a
A single trimmer (VR2) is provided to adjust the reference voltage used by the DACs
Set the necessary links for the required mode and voltage ranges. Run the ADADIO.EXE program .
Measure the voltage between VREF (TP3) and AGND (TP9)and adjust VR2 until the reading is +5.02V.
Note:- If the gain adjust trimmers (VR3-4) have insufficient range , adjust VR2 to read 5.01V, and
repeat the calibration procedure.
Unipolar Calibration - DAC Channel A
Zero Offset Adjust
1) Set DAC A output to 000 hex.
2) Measure the voltage between DAC A output and analogue ground and adjust VR5 to give 0.000V.
Full Scale Gain Adjust
1) Set DAC A output to 800 hex,
2) Measure the voltage between DAC A output and analogue ground and adjust VR3 to exactly half
scale output.
2.500V for the 0-5V range.
5.000V for the 0-10V range.
3) Set DAC A output to FFF hex and check output voltage is:4.9985 for the 0-5V range.
9.9975 for the 0-10V range.
4) Adjust VR3 if necessary.
Repeat for DAC B replacing VR5 with VR6, and VR3 with VR4.
Bipolar Calibration - DAC Channel A
Zero Offset Adjust
1) Set DAC A output to 000 hex.
2) Measure the voltage between DAC A output and analogue ground and adjust VR5 to give full scale
negative i.e -5.000V.
Full Scale Gain Adjust
1) Set the DAC A output to 800 hex.
2) Measure the voltage between DAC A output and analogue ground and adjust VR3 to give half
scale output i.e 0.000V.
3) Set DAC A to FFF hex and check full scale is 4.9975V.
Repeat for DAC channel B replacing VR5 with VR6, and VR3 with VR4.
Page 9
2192-09125-000-000
J605 APCI-ADADIO
Test Point Locations
Test Point
TP2
TP3
TP5
TP6
TP7
TP8
TP9
TP10
TP11
TP13
Description
DAC +5V Voltage Reference.
+5V Analogue supply voltage.
+15V Analogue supply voltage.
-15V Analogue supply voltage.
ADC Chip enable signal.
ADC Status Signal.
Analogue ground.
Digital ground.
Active low reset signal.
+5V digital supply.
Test Point Location Diagram
Trimmer Location Diagram
Page 10
Trimmer Locations
Trimmer
VR1
VR2
VR3
VR4
VR5
VR6
VR7
Function
ADC Gain
DAC Reference Voltage
DAC Channel A Gain
DAC Channel B Gain
DAC Channel A zero Offset
DAC Channel B zero Offset
ADC zero Offset
J605 APCI-ADADIO
2192-09125-000-000
D-50 I/O Connector (PL1) Pin Assignments
The pin assignments are listed with the pin number of the D-50 connector and also the pin number
when a 50-way IDC ribbon cable is connected to the D-50. The pin assignments conform to the
Arcom signal conditioning system (SCS) and may be connected to an external signal conditioning
board.
Ribbon Cable D-Type
Ribbon Cable D-Type
Pin No.
Pin No. Signal Name
Pin No.
Pin No. Signal Name
1
1
ANALOGUE GROUND
26
42
DIGITAL I/O 3
2
34
PDIFF
27
26
DIGITAL I/O 4
3
18
CH0+
28
10
DIGITAL I/O 5
4
2
CH0-/CH8+
29
43
DIGITAL I/O 6
5
35
CH1+
30
27
DIGITAL I/O 7
6
19
CH1-/CH9+
31
11
GND
7
3
CH2+
32
44
/RCONV
8
36
CH2-/CH10+
33
28
DIGITAL I/O 8
9
20
CH3+
34
12
DIGITAL I/O 9
10
4
CH3-/CH11+
35
45
DIGITAL I/O 10
11
37
ANALOGUE GROUND
36
29
DIGITAL I/O 11
12
21
PDIFF
37
13
DIGITAL I/O 12
13
5
CH4+
38
46
DIGITAL I/O 13
14
38
CH4-/CH12+
39
30
DIGITAL I/O 14
15
22
CH5+
40
14
DIGITAL I/O 15
16
6
CH5-/CH13+
41
47
ANALOGUE GROUND
17
39
CH6+
42
31
RESERVED
18
23
CH6-/CH14+
43
15
DACA
19
7
CH7+
44
48
DACB
20
40
CH7-/CH15+
45
32
N/C
21
24
GND
46
16
N/C
22
8
PDIFF
47
49
-12V
23
41
DIGITAL I/O 0
48
33
+12V
24
25
DIGITAL I/O 1
49
17
+5V
25
9
DIGITAL I/O 2
50
50
+5V
10-way IDC Header (PL3)
PL3 is used for connecting external signals to buffered versions of the Counter/timer inputs and
outputs for channels 1 and 2. For maximum flexibility the connections have been arranged to allow
clock inputs to be linked to the standard 1MHz clock or other channel outputs using jumper links.
Pin No.
1
3
5
7
9
Signal Name
GND
CLK2
OUT1
GATE1
CLK1M
Pin No.
2
4
6
8
10
Signal Name
+5V
CLK1M
GATE2
OUT2
CLK1
Page 11
2192-09125-000-000
J605 APCI-ADADIO
Installation for CE Compliance
To maintain compliance with the requirements of the EMC directive (89/336/EEC), this product must
be correctly installed. The PC system in which the board is housed must be CE compliant as declared
by the manufacturer. The external I/O cable should be the Arcom CAB50CE, or a fully screened cable
to the same pattern.
1. Remove the cover of the PC observing any additional instructions of the PC manufacturer.
2. Locate the board in a spare PCI slot and press gently but firmly into place.
3. Ensure that the metal bracket attached to the board is fully seated.
4. Fit the bracket clamping screw and firmly tighten this on the bracket.
Note:- Good contact of the bracket to the chassis is essential.
5. Replace the cover of the PC observing any additional instructions of the PC manufacturer.
The following standards have been applied to this product:
BS EN50081-1
BS EN50082-1
BS EN55022
Page 12
: 1992 Generic Emissions Standard, Residential, Commercial, Light Industry
: 1992 Generic Immunity Standard, Residential, Commercial, Light Industry
: 1995 ITE Emissions, Class B, Limits and Methods.
J605 APCI-ADADIO
2192-09125-000-000
Revision History
Manual
PCB
Issue A
V1 Iss 1
Comments
980512
First released in this format.
Page 13
2192-09125-000-000
J605 APCI-ADADIO
Product Information
Full information about other Arcom products is available via the Fax-on-Demand System, (Telephone
Numbers are listed below), or by contacting our WebSite in the UK at: www.arcom.co.uk or in the US at:
www.arcomcontrols.com
Useful Contact Information
Customer Support
Tel:
+44 (0)1223 412 428
Fax:
+44 (0)1223 403 400
E-mail: [email protected]
United Kingdom
Arcom Control Systems Ltd
Clifton Road
Cambridge CB1 4WH, UK
Tel: 01223 411 200
Fax:: 01223 410 457
FoD: 01223 240 600
Sales
Tel:
Fax:
E-mail
E-mail
United States
Arcom Control Systems Inc
13510 South Oak Street
Kansas City MO 64145 USA
Tel: 816 941 7025
Fax:: 816 941 0343
FoD: 800 747 1097
+44 (0)1223 411 200
+44 (0)1223 410 457
[email protected] or for the US
[email protected]
France
Arcom Control Systems
Centre d’affaires SCALDY
23 rue Colbert
7885 SAINT QUENTIN
Cedex, FRANCE
Tel: 0800 90 84 06
Fax: 0800 90 84 12
FoD: 0800 90 23 80
Germany
Kostenlose Infoline:
Tel: 0130 824 511
Fax: 0130 824 512
FoD: 0130 860 449
Italy
NumeroVerde:
FoD: 1678 73600
Belgium
Groen Nummer:
Tel: 0800 7 3192
Fax:: 0800 7 3191
Netherlands
Gratis 0800 Nummer:
Tel: 0800 022 11 36
Fax:: 0800 022 11 48
The choice of boards or systems is the responsibility of the buyer, and the use to which they are put cannot be the liability of
Arcom Control Systems Ltd. However, Arcom’s sales team is always available to assist you in making your decision.
© 1997 Arcom Control Systems Ltd
Arcom Control Systems is a subsidiary of Fairey Group Plc.
Specifications are subject to change without notice and do not form part of any contract.
All trademarks recognised.
Arcom Control Systems Ltd operate a company-wide quality management system which has
been certified by the British Standards Institution (BSI) as compliant with ISO9001:1994
Page 14