Rainbow Electronics W90P710CDG User Manual

Page 473

Advertising
background image

W90P710CD/W90P710CDG

Publication Release Date: September 19, 2006

- 473 -

Revision B2

START or Repeated START signal

When the bus is free/idle, meaning no master device is engaging the bus (both SCL and SDA lines
are high), a master can initiate a transfer by sending a START signal. A START signal, usually
referred to as the S-bit, is defined as a HIGH to LOW transition on the SDA line while SCL is HIGH.
The START signal denotes the beginning of a new data transfer.
A Repeated START (Sr) is a START signal without first generating a STOP signal. The master uses
this method to communicate with another slave or the same slave in a different transfer direction (e.g.
from writing to a device to reading from a device) without releasing the bus.
The I

2

C core generates a START signal when the START bit in the Command Register (CMDR) is set

and the READ or WRITE bits are also set. Depending on the current status of the SCL line, a START
or Repeated START is generated.

STOP signal

The master can terminate the communication by generating a STOP signal. A STOP signal, usually
referred to as the P-bit, is defined as a LOW to HIGH transition on the SDA line while SCL is HIGH.

START condition

STOP condition

SCL

SDA

START and STOP conditions

Slave Address Transfer

The first byte of data transferred by the master immediately after the START signal is the slave
address. This is a 7-bits calling address followed by a RW bit. The RW bit signals the slave the data
transfer direction. No two slaves in the system can have the same address. Only the slave with an
address that matches the one transmitted by the master will respond by returning an acknowledge bit
by pulling the SDA low at the 9th SCL clock cycle.
The core treats a Slave Address Transfer as any other write action. Store the slave device’s address
in the Transmit Register (TxR) and set the WRITE bit. The core will then transfer the slave address on
the bus.

MSB

LSB

R/W

A0

A1

A2

A3

A4

A5

A6

slave address

The first byte after the START procedure

Advertising