English
Language : 

DS1722 Datasheet, PDF (7/14 Pages) Dallas Semiconductor – Digital Thermometer with SPI/3-Wire Interface
DS1722
inactive clock is determined by sampling SCLK when CE becomes active. Therefore, either SCLK
polarity can be accommodated. Input data (SDI) is latched on the internal strobe edge and output data
(SDO) is shifted out on the shift edge (See Table 6 and Figure 3). There is one clock for each bit
transferred. Address and data bits are transferred in groups of eight, MSB first.
FUNCTION TABLE Table 6
MODE
CE
Disable Reset
L
Write
H
SCLK
Input Disabled
CPOL=1*
SDI
Input Disabled
Data Bit Latch
SDO
High Z
High Z
CPOL=0
Read
H
CPOL=1
X
Next data bit
shift**
CPOL=0
*CPOL is the “Clock Polarity” bit that is set in the control register of the microcontroller.
** SDO remains at High Z until eight bits of data are ready to be shifted out during a read.
NOTE:
CPHA bit polarity must be set to “1”.
SERIAL CLOCK AS A FUNCTION OF MICROCONTROLLER CLOCK
POLARITY (CPOL) Figure 3
CPOL=1 CE
SCLK
SHIFT
INTERNAL
STROBE
CPOL=0 CE
SHIFT
INTERNAL
STROBE
SCLK
NOTE:
CPOL is a bit that is set in the microcontroller’s Control Register.
ADDRESS AND DATA BYTES
Address and data bytes are shifted MSB first into the serial data input (SDI) and out of the serial data
output (SDO). Any transfer requires the address of the byte to specify a write or a read, followed by one
or more bytes of data. Data is transferred out of the SDO for a read operation and into the SDI for a write
operation.
7 of 14