English
Language : 

DS1339 Datasheet, PDF (17/18 Pages) Dallas Semiconductor – Serial Real-Time Clock
DS1339 I2C Serial Real-Time Clock
data, with the DS1339 acknowledging each byte received. The address pointer increments after each data
byte is transferred. The master generates a STOP condition to terminate the data write.
2) Slave Transmitter Mode (Read Mode): The first byte is received and handled as in the slave receiver mode.
However, in this mode, the direction bit indicates that the transfer direction is reversed. Serial data is
transmitted on SDA by the DS1339 while the serial clock is input on SCL. START and STOP conditions are
recognized as the beginning and end of a serial transfer (Figure 10). The slave address byte is the first byte
received after the START condition is generated by the master. The slave address byte contains the 7-bit
DS1339 address, which is 1101000, followed by the direction bit (R/W), which is 1 for a read. After receiving
and decoding the slave address byte the slave outputs an acknowledge on the SDA line. The DS1339 then
begins to transmit data starting with the register address pointed to by the register pointer. If the register
pointer is not written to before the initiation of a read mode the first address that is read is the last one stored in
the register pointer. The address pointer is incremented after each byte is transferred. The DS1339 must
receive a “not acknowledge” to end a read.
Figure 9. Data Write—Slave Receiver Mode
slave address
register address (n) Data (n)
Data (n+1)
Data (n+x)
S 1101000 0 A XXXXXXXX A XXXXXXXX A XXXXXXXX A XXXXXXXX P
S - START
A - ACKNOWLEDGE
P - STOP
R/W - READ/WRITE OR DIRECTION BIT
DATA TRANSFERRED
(X+1 BYTES + ACKNOWLEDGE)
Figure 10. Data Read—Slave Transmitter Mode
slave address
Data (n)
Data (n+1)
S 1101000 1 A XXXXXXXX A XXXXXXXX
Data (n+2)
Data (n+x)
A XXXXXXXX A XXXXXXXX /A
S - START
A - ACKNOWLEDGE
P - STOP
/A - NOT ACKNOWLEDGE
R/W - READ/WRITE OR DIRECTION BIT
DATA TRANSFERRED
(X+1 BYTES + ACKNOWLEDGE)
17 of 18