Block Write W/O Pec Byte; Block Write With Pec Byte - Texas Instruments UCD3138 Technical Reference Manual

Digital power supply controller
Hide thumbs Also See for UCD3138:
Table of Contents

Advertisement

www.ti.com
10.7.7 Block Write
S
Device Addr
Wr
S
Device Addr
The Block Write protocol is similar to a Write Word in its structure, with the exception of transmission of
more than 2 data bytes in the message. Additionally, the first data byte following the command byte
specifies the length of the block of data bytes. As with a majority of the message protocols, the PEC byte
can be appended to the end of the write data to the Slave.
To initiate a Block Write message on the PMBus, the Master Control Register is programmed with the
block length in the Byte Count bits. The block length is the number of data bytes, excluding the command
byte and the first data byte that contains the block length. The PMBus Interface will automatically insert
the block length into the message if the number of data bytes specified by the firmware exceeds 2. The
initial write data is loaded into the Transmit Data Register. With bits 7-0 representing the command byte,
the remaining 3 bytes represent the first three data bytes following the block length.
Following programming of the Master Control Register, the Block Write message is initiated on the
PMBus. If the block length exceeds three bytes, the PMBus Interface will provide a data request interrupt,
indicating the need for additional data bytes in the Transmit Data Register. The PMBus Interface assumes
that if more than 4 bytes are needed to complete the message, the firmware will utilize all 4 bytes when
programming the Transmit Data Register. If less than 4 bytes are needed to finish the Block Write
message, the firmware only needs to program the appropriate bits of the Transmit Data Register.
Upon completion of the message, the PMBus Interface issues an EOM interrupt. The interface can be
checked to verify the slave accepted the block of write data.
SNIU028A – February 2016 – Revised April 2016
Submit Documentation Feedback
A
Command
A
Sr
Byte #(N-1)
Figure 10-37. Block Write w/o PEC Byte
Wr
A
Command
Byte #(N-1)
Figure 10-38. Block Write with PEC Byte
Copyright © 2016, Texas Instruments Incorporated
Device Addr
Rd
A
......
A
PEC
NA
P
A
Byte Count = N
......
A
PEC
A
P
Master Mode Operation Reference
Byte Count = N
A
Byte #0
A
Byte #0
A
PMBus Interface/I2C Interface
A
377

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents