English
Language : 

MIC24045 Datasheet, PDF (39/46 Pages) Microchip Technology – I2C Programmable, 4.5V-19V Input, 5A Step-Down Converter
MIC24045
8.5.5
BLOCK WRITE (AUTO-INCREMENT
MODE)
This command writes data to the designated register
and to all the following registers that are specified
through the command byte. Bit<6> of the command
byte indicates the Auto-Increment mode. If this bit is
set, the address gets incremented by one automatically
and the registers are written in order, starting from the
address provided by the command byte.
The Block/Auto-Increment Write command is as
follows and it is illustrated in the timing diagram of
Figure 8-7 below.
1. Send START sequence
2. Send 7-bit slave address
3. Send the R/W bit - 0 to indicate a write operation
4. Wait for acknowledge from the slave
5. Send the command byte – address that needs to
be written with Bit<6> set high to indicate the
Auto-Increment Write mode.
6. Wait for acknowledge from the slave.
7. Receive the 8-bit data from the master and write
it to the slave register indicated in step 5,
starting from MSB.
8. Acknowledge from the slave
9. Repeat steps 7 and 8 until the entire data is sent
10. Send STOP sequence
SCL 1 2 3 4 5 6 7 8 9
SDA S
Slave address
Command byte
0A01
START condition
R/W ACK from Slave
Data to port
A
DATA 1
ACK from Slave
Data to port
A
DATA 1
ACK from Slave
A
ACK from Slave
Data to port
DATA 1
STOP condition
AP
ACK from Slave
Data out from port
FIGURE 8-7:
Block Write Timing Diagram.
Note:
If the master is using a non-existing
register location, a reject (NACK) will be
generated.
DATA 1 VALID
DATA 2 VALID
DATA n VALID
 2016 Microchip Technology Inc.
DS20005568A-page 39