Page - x
Interrupts ..................................................................................................................................... 3-2
Digital I/O .................................................................................................................................... 3-2
Selecting and Setting the Base Address ............................................................................................ 3-3
Selecting a Base Address ........................................................................................................... 3-3
Setting the Base Address ........................................................................................................... 3-3
Using the Setup Program to Set the Base Address .................................................................... 3-4
Installing the AD12-8 Card .................................................................................................................. 3-4
Calibration and Test ........................................................................................................................... 3-5
Calibration Procedure .................................................................................................................. 3-5
Chapter 4: Programming the AD12-8 ....................................................................... 4-1
AD12-8 Register Address Map ........................................................................................................... 4-1
Register Definitions ............................................................................................................................ 4-1
Control Registers ........................................................................................................................ 4-1
Status Register ........................................................................................................................... 4-2
A/D Registers ............................................................................................................................. 4-3
Digital I/O .................................................................................................................................... 4-3
Counter/Timer Registers .............................................................................................................. 4-4
Programming Using the Drivers .......................................................................................................... 4-6
Using the Driver with Turbo or Borland C ..................................................................................... 4-7
Using the Driver with Microsoft C ................................................................................................ 4-7
Using the Driver with Turbo Pascal .............................................................................................. 4-8
Using the Driver with QuickBASIC ............................................................................................... 4-8
Using the Driver with BASIC ........................................................................................................ 4-9
Chapter 5: AD12-8 Driver Reference ........................................................................ 5-1
Using the Driver ................................................................................................................................. 5-1
The Point List Concept ................................................................................................................ 5-1
Other Software Features ............................................................................................................. 5-1
Task Summary .................................................................................................................................. 5-2
Task Reference .................................................................................................................................. 5-2
Task 0: Initialize ......................................................................................................................... 5-2
Task 1: Check A/D Operations ................................................................................................... 5-4
Task 2: Fetch Gain Code for a Point Address ............................................................................ 5-4
Task 3: Fetch Point Address for a Point List Index ..................................................................... 5-5
Task 4: Assign Gain Code to Range of Point Addresses ............................................................ 5-5
Task 5: Assign Point Addresses to the Point List ...................................................................... 5-7
Task 6: Fetch Data from a Point Address .................................................................................. 5-8
Task 7: Fetch Data from Next Point Address in List ................................................................... 5-8
Task 8: Fetch Multiple Buffered Conversions .............................................................................. 5-9
Task 9: Interrupt Driven Data Acquisition ................................................................................... 5-10
Task 10: Thermocouple/Function Assignment ........................................................................... 5-12
Task 11: Reset Functions ......................................................................................................... 5-15
Task 12: Digital Output ............................................................................................................... 5-16