Datasheet
SBAS124C − DECEMBER 1999 − REVISED DECEMBER 2005
www.ti.com
16
Note that the seven lower bits of this byte are written to register 4, the Gain/Mux register.
All other controllable ADS7870 parameters are values previously stored in their respective registers. These
values are either the power-up default values (0) or values that were previously written to one of the control
registers in a register mode operation. No additional data is required for a direct mode instruction.
Register Mode
In register mode (Bit D7 of the Instruction Byte is 0) a read or write instruction to one of the ADS7870’s registers
is initiated. All of the user determinable functions and features of the ADS7870 can be controlled by writing
information to these registers (see Figure 15). Conversion results can be read from the A/D Output registers.
REGISTER ADDRESS REGISTER CONTENT
A4 A3 A2 A1 A0
ADDR
NO.
READ
/
WRITE
D7
(MSB)
D6 D5 D4 D3 D2 D1 D0
REGISTER NAME
0 0 0 0 0 0 Read ADC3 ADC2 ADC1 ADC0 0 0 0 OVR
A/D Output Data,
LS Byte
0 0 0 0 1 1 Read ADC11 ADC10 ADC9 ADC8 ADC7 ADC6 ADC5 ADC4
A/D Output Data,
MS Byte
0 0 0 1 0 2 Read 0 0 VLD5 VLD4 VLD3 VLD2 VLD1 VLD0 PGA Valid Register
0 0 0 1 1 3 R/W 0 0 BIN 0 RMB1 RBM0 CFD1 CFD0 A/D Control Register
0 0 1 0 0 4 R/W
CNV/
BSY
G2 G1 G0 M3 M2 M1 M0 Gain/Mux Register
0 0 1 0 1 5 R/W
CNV/
BSY
0 0 0 IO3 IO2 IO1 IO0
Digital I/O State
Register
0 0 1 1 0 6 R/W 0 0 0 0 OE3 OE2 OE1 OE0
Digital I/O Control
Register
0 0 1 1 1 7 R/W 0 0 OSCR OSCE REFE BUFE R2V RBG
Ref/Oscillator
Control Register
1 1 0 0 0 24 R/W LSB 2W/3W 8051 0 0 8501 2W/3W LSB
Serial Interface
Control Register
1 1 1 1 1 31 Read 0 0 0 0 0 0 0 1 ID Register
Figure 15. Register Address Map
The instruction byte (see Figure 14) contains the address of the register for the next read/write operation,
determines whether the serial communication is to be done in 8-bit or 16-bit word length, and determines
whether the next operation is read-from or written-to the addressed register.
The structure of the instruction byte for register mode is shown in Figure 14.
D D7: This bit is set to 0 for register mode operation.
D D6 (R/W): Bit 6 of the instruction byte determines whether a read or write operation is performed, 1 for
a read or 0 for a write.
D D5 (16/8): This bit determines the word length of the read or write operation that follows, 1 for sixteen bits
(two eight-bit bytes) or 0 for eight bits.
D D4 through D0 (A4 − A0): These bits determine the address of the register that is to be read from or written
to. Register address coding and other information are tabulated in Figure 15.
For sixteen-bit operations, the first eight bits is written-to/read-from the address encoded by the instruction byte,
bits A4 through A0 (register address). The address of the next eight bits depends upon whether the register
address for the first byte is odd or even. If it is even, then the address for the second byte is the register address
+ 1. If the register address is odd, then the address for the second byte is the register address – 1.
This arrangement allows transfer of conversion results from the two A/D Output Data registers either MS byte
first or LS byte first (refer to the section Serial Interface Control Register).
Register Summary
A summary of information about the addressable registers is shown in Figure 15. Their descriptions follow, and
more detailed information is provided later in the section Internal User-Accessible Registers.
Registers 0 and 1, the A/D Output Data registers, contain the least significant and most significant bits of the
A/D conversion result (ADC0 through ADC13). Register 0 also has three fixed zeros (D3, D2, and D1), and a
bit to indicate if the internal voltage limits of the PGA have been over ranged (OVR). This is a read only register.
Write an 8-bit word to register 0 and the ADS7870 resets.