2b i2c read, Figure 8. control port timing, i2c mode, I2c read – Cirrus Logic CS4392 User Manual

Page 15: See figure 8 for the clock to da, Cs4392, 2b i, C read

Advertising
background image

CS4392

DS459PP3

15

4.0.2b

I

2

C Read

To read from the device, follow the procedure below while adhering to the control port
Switching Specifications.

1) Initiate a START condition to the I

2

C bus followed by the address byte. The upper 6 bits

must be 001000. The seventh bit must match the setting of the AD0 pin, and the eighth must
be 1. The eighth bit of the address byte is the R/W bit.

2) After transmitting an acknowledge (ACK), the device will then transmit the contents of
the register pointed to by the MAP. The MAP register will contain the address of the last
register written to the MAP, or the default address (see section 4.1) if an I

2

C read is the first

operation performed on the device.

3) Once the device has transmitted the contents of the register pointed to by the MAP, issue
an ACK.

4) If the INCR bit is set to 1, the device will continue to transmit the contents of successive
registers. Continue providing a clock and issue an ACK after each byte until all the desired
registers are read, then initiate a STOP condition to the bus.

5) If the INCR bit is set to 0 and further I

2

C reads from other registers are desired, it is nec-

essary to initiate a STOP condition and follow the procedure detailed from steps 1 and 2
from the I

2

C Write instructions followed by step 1 of the I

2

C Read section. If no further

reads from other registers are desired, initiate a STOP condition to the bus.

S D A

S C L

0 01 0 00

A D D R
A D 0

R /W

S ta rt

A C K

D A T A
1 -8

A C K

D A T A
1-8

A C K

Stop

N o te : If o p e ra tio n is a w rite , th is b y te c o n ta in s th e M e m o ry A d d re s s P o in te r, M A P .

N o te 1

Figure 8. Control Port Timing, I

2

C Mode

Advertising