beautypg.com

Figure 6. data transfer on 2-wire serial bus – Rainbow Electronics DS1672 User Manual

Page 12

background image

DS1672

12 of 12

Figure 6. Data Transfer on 2-Wire Serial Bus

MSB

slave address

R/W

direction

bit

SDA

SCL

START

CONDITION

1

2

6

7

8

9

1

2

8

9

STOP CONDITION

OR

REPEATED

START CONDITION

3 - 8

acknowledgement

signal from receiver

acknowledgement

signal from receiver

ACK

ACK

repeated if more bytes

are transferred

Figure 7. Data Write: Slave Receiver Mode

Figure 8. Data Read: Slave Transmitter Mode

A

XXXXXXXX

A

1101000

S

0

XXXXXXXX

A XXXXXXXX

A XXXXXXXX

A P

S - START
A - ACKNOWLEDGE
P - STOP

W

>

R/W - READ/WRITE OR DIRECTION BIT ADDRESS = D0H

DATA TRANSFERRED

(X+1 BYTES + ACKNOWLEDGE)

A

XXXXXXXX

A

1101000

S

1

XXXXXXXX

A XXXXXXXX

A XXXXXXXX

A P

S - START
A - ACKNOWLEDGE
P - STOP
A - NOT ACKNOWLEDGE

W

>

R/W - READ/WRITE OR DIRECTION BIT ADDRESS = D1H

DATA TRANSFERRED

(X+1 BYTES + ACKNOWLEDGE); NOTE: LAST DATA BYTE IS

FOLLOWED BY A NOT ACKNOWLEDGE (A) SIGNAL)