Datasheet


SLAS370CAPRIL 2002 − REVISED OCTOBER 2004
www.ti.com
20
Read Operation
A read operation is similar to a write operation except that data flow (after the instruction byte) is from the
ADS7871 to the host controller. After the instruction byte has been latched (on the eighth active edge of SCLK),
the DOUT pin (and the DIN pin if in two-wire mode) begins driving data on the next nonactive edge of SCLK.
This allows the host controller to have valid data on the next active edge of SCLK.
The data on DOUT (or DIN) transitions on the nonactive edges of SCLK. The DIN pin (two-wire mode) ceases
driving data (return to high impedance) on the nonactive edge of SCLK following the eighth (or sixteenth) active
edge of the read data. DOUT is only high impedance when CS
is not asserted. With CS high (1), DOUT (or
DIN) is forced to high impedance mode. In general, the ADS7871 is insensitive to the idle state of the clock
except that the state of SCLK may determine if DIN is driving data or not.
Upon completion of the read operation, the ADS7871 is ready to receive the next instruction byte. Read
operations reflect the state of the ADS7871 on the first active edge of SCLK of the data byte transferred.
Figure 21 shows an example of an eight-bit read operation with LSB first and SCLK active on the rising edge.
The double rising arrows indicate when the instruction is latched.
A0
A1
A2 1
D0 D1 D2 D6 D7
SCLK
DIN
DOUT
CS
0
A3 A4
0
D3 D4
D5
Figure 21. Timing Diagram for an 8-Bit Read Operation
Figure 22 provides an example of a 16-bit read operation from an odd address with LSB first and SCLK active
on the rising edge. The address (ADDR) for the second byte is decremented by one since the ADDR in the
instruction byte is odd. For an even ADDR, the address for the second byte would be incremented by one.
1 A2 110
D0 D1 D2 D3 D6
D7
D0 D3 D4
Data from ADDR
Data from ADDR−1
SCLK
DIN
DOUT
CS
A1
A3
A4
D4 D5
D1 D2 D5 D6 D7
Figure 22. Timing Diagram for a 16-Bit Read Operation to an Odd Address