ADT7316/ADT7317/ADT7318
CS
1
8
1
8
SCLK
DIN
D7 D6 D5 D4 D3 D2 D1 D0
X
X
X
X
X
X
X
DOUT
X
X
X
X
X
X
X
X
D7 D6 D5 D4 D3 D2 D1
START
READ COMMAND
DATA BYTE 1
Figure 56. SPI —Reading a Single Byte of Data From a Selected Register
X
D0
STOP
CS
1
8
1
8
SCLK
DIN
D7 D6 D5 D4 D3 D2 D1 D0 X
X
X
X
X
X
X
X
DOUT
X
X
X
X
X
X
START
READ COMMAND
X X D7 D6 D5 D4 D3 D2 D1 D0
DATA BYTE 1
CS (CONTINUED)
1
8
SCLK (CONTINUED)
DIN (CONTINUED)
X
X
X
X
X
X
X
X
DOUT (CONTINUED)
D7 D6 D5 D4 D3 D2 D1
DATA BYTE 2
Figure 57. SPI—Reading Two Bytes of Data From Two Sequential Registers
D0
STOP
CS
SPI
READ OPERATION
WRITE OPERATION
Figure 58. SPI—Correct Use of CS During SPI Communication
Read Operation
Figure 56 and Figure 57 show the timing diagrams necessary
to accomplish correct read operations. To read back from a
register, first write to the address pointer register with the
address of the register to read from, as shown in Figure 53.
Figure 56 shows the procedure for reading back a single byte
of data. The read command is first sent to the part during the
first eight clock cycles. As the read command is being sent,
irrelevant data is output onto the DOUT line. During the
following eight clock cycles, the data contained in the register
selected by the address pointer register is output onto the
DOUT line. Data is output onto the DOUT line on the falling
edge of SCLK. Figure 57 shows the procedure when reading
data from two sequential registers. Multiple data reads are
possible in SPI interface mode as the address pointer register is
auto-incremental. The address pointer register auto-increments
from Address 0x00 to Address 0x3F and loops back to start all
over again at Address 0x00 when it reaches Address 0x3F.
Rev. B | Page 39 of 44