
5 REGISTER MAP
Tables 4-1 and 4-2 contain the write and read functions of the board’s registers. Table 4-3 defines the
functions of each bit.
Note that the register at BASE + 2 is a multi-function register. Its function is set by bits CS0 and CS1 in
BASE + 3 register. Coding for Base + 02 register functions is contained in Table 4-4.
Table 4-5 gives the Gain Select codes for the CIO-DAS800.
NOTE: ONLY +/-5V IS SUPPORTED.
Table 4-6 provides special programming instructions.
Table 4-1. Register Map - Write Functions
FunctionData BitsWRITE
Functions
Register
8254 Counter/Timer Control Register
Base + 7
Cascade Pre-scaler
8254 C/T 2 Control Register
Base + 6
A/D Timer
8254 C/T 1 Control Register
Base + 5
8254 C/T 0 Control Register
Base + 4
Control Select
R0
R1R2R3
ENHFCS0CS1CSEBase + 3
Scan Limits Register
SC0SC1SC2EC0EC1EC2NANACS1/0=1/0
Conversion Control
ITECASCDTENIEOCEACSGTENNAHCENCS1/0=0/1
Control Register 1
MA0MA1MA2INTEOP1OP2OP3OP4CS1/0=0/0
Special Function
- (Depends on value of
CS0
1
Base + 2
Start Conversion*
Base + 1
Start Conversion
*
Base + 0
D0D1D2D3D4D5D6D7
* Writing (anything) to either BASE + 0 or BASE + 1 starts a conversion.
9
Commenti su questo manuale