DLPU057A March 2018 – April 2022 DLP3030-Q1
This example reads the backlight value from the slave. This example assumes the currently active backlight value is 0xFA5A. The start and escape characters are not applicable to data sent by slave. In other words, slave will not add a START character 0xA5 before every transaction. Also, any special characters in the byte stream of slave will be transmitted without any change (will not use escape characters).
Also note that, if Length = 0x00, there are no data bytes. The byte after the length byte will be treated as the checksum byte.
The read checksum includes the response byte.
Read Checksum = (0x01 + 0x02 + 0x5A + 0xFA) MOD 0x100 = 0x57
The example is split into two lines for the sake of clarity.
86 | 87 | 88 | 89 | 90 | 91 | |
Host (Master) | A5 | 01 | 00 | 01 | 00 | 00 |
Piccolo (Slave) | FF | FF | FF | FF | FF | FF |
92 | 93 | 94 | 95 | 96 | |
Host (Master) | 00 | 00 | 00 | 00 | 00 |
Piccolo (Slave) | 01 | 02 | 5A | FA | 57 |