English
Language : 

DS1682_13 Datasheet, PDF (11/14 Pages) Dallas Semiconductor – Total-Elapsed-Time Recorder with Alarm
DS1682 Total-Elapsed-Time Recorder with Alarm
The DS1682 can operate in the following two modes:
Slave Receiver Mode (Write Mode): Serial data and clock are received through SDA and SCL. After
each byte is received, the receiver transmits an acknowledge bit. START and STOP conditions are
recognized as the beginning and end of a serial transfer. The slave address byte is the first byte received
after the master generates a START condition. The address byte contains the 7-bit DS1682 address,
which is 1101011, followed by the direction bit (R/W). The second byte from the master is the register
address. This sets the register pointer. The master then transmits each byte of data, with the DS1682
acknowledging each byte received. The register pointer increments after each byte is written. The master
generates a STOP condition to terminate the data write (Figure 7).
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 DS1682 while the serial clock is input on SCL. The slave address byte is the
first byte received after the master generates a START condition. The address byte contains the 7-bit
DS1682 address, followed by the direction bit (R/W). After receiving a valid slave address byte and
direction bit, the DS1682 generates an acknowledge on the SDA line. The DS1682 begins to transmit
data on each SCL pulse starting with the register address pointed to by the register pointer. As the master
reads each byte, it must generate an acknowledge. The register pointer increments after each byte is read.
The DS1682 must receive a “not acknowledge” on the last byte to end a read (Figure 8).
Figure 7. Data Write—Slave Receiver Mode
SLAVE
R/W
ADDRESS
REGISTER
ADDRESS
DATA (n)
DATA (n + 1)
DATA (n + x)
S 1101011 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 8. Data Read—Slave Transmitter Mode
SLAVE
ADDRESS R/W
DATA (n)
DATA (n + 1)
DATA (n + 2)
DATA (n + x)
S 1101011 1 A XXXXXXXX A XXXXXXXX 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)
11 of 14