NCP81233
www.onsemi.com
42
Figure 23. Single Byte Write to a Register
SLAVE
ADDRESS
W A
DATA
SAA P
COMMAND
CODE
231567 84
Write Word
In this operation, the master device sends a command byte
and two data bytes to the slave device as follows:
1. The master device asserts a start condition on
SDA.
2. The master sends the 7-bit slave address followed
by the write bit (low).
3. The addressed slave device asserts ACK on SDA.
4. The master sends a command code.
5. The slave asserts ACK on SDA.
6. The master sends the first data byte.
7. The slave asserts ACK on SDA.
8. The master sends the second data byte.
9. The slave asserts ACK on SDA.
10. The master asserts a stop condition on SDA and
the transaction ends.
The word write operation is shown in Figure 24.
Figure 24. Single Word Write to a Register
SLAVE
ADDRESS
WA
DATA
(LSB)
SAA
COMMAND
CODE
23156784
DATA
(MSB)
AP
910
Block Write
In this operation, the master device sends a command byte
and a byte count followed by the stated number of data bytes
to the slave device as follows:
1. The master device asserts a START condition on
SDA.
2. The master sends the 7-bit slave address followed
by the write bit (low).
3. The addressed slave device asserts ACK on SDA.
4. The master sends a command code.
5. The slave asserts ACK on SDA.
6. The master sends the byte count N.
7. The slave asserts ACK on SDA.
8. The master sends the first data byte.
9. The slave asserts ACK on SDA.
10. The master sends the second data byte.
11. The slave asserts ACK on SDA.
12. The master sends the remainder of the data byes.
13. The slave asserts an ACK on SDA after each data
byte.
14. After the last data byte the master asserts a STOP
condition on SDA.
Figure 25. Block Write to a Register
SLAVE
ADDRESS
W A
BYTE COUNT
=N
SAA
COMMAND
CODE
23156784
DATA
BYTE 1
A
9
PA
DATA
BYTE N
A
DATA
BYTE 2
10
11
12
13 14
Read Operations
The NCP81233 uses the following I
2
C read protocols.
Read Byte
In this operation, the master device receives a single byte
from a slave device as follows:
1. The master device asserts a start condition on
SDA.
2. The master sends the 7-bit slave address followed
by the write bit (low).
3. The addressed slave device asserts ACK on SDA.
4. The master sends a command code.
5. The slave asserted ACK on SDA.
6. The master sends a repeated start condition on
SDA.
7. The master sends the 7 bit slave address followed
by the read bit (high).
8. The slave asserts ACK on SDA.
9. The slave sends the Data Byte.
10. The master asserts NO ACK on SDA.
11. The master asserts a stop condition on SDA and
the transaction ends.
Figure 26. Single Byte Read to a Register
SLAVE
ADDRESS
W A
SLAVE
ADDRESS
SAA
COMMAND
CODE
23156784
DATA
A P
910
S
11
R
Read Word
In this operation, the master device receives two data
bytes from a slave device as follows:
1. The master device asserts a start condition on
SDA.
2. The master sends the 7-bit slave address followed
by the write bit (low).
3. The addressed slave device asserts ACK on SDA.
4. he master sends a command code.
5. The slave asserted ACK on SDA.
6. The master sends a repeated start condition on
SDA.