DLPU057A March 2018 – April 2022 DLP3030-Q1
Special characters can come in any section of the command. This example shows special character in checksum area of a command.
On computing checksum for this command, we get 0x5A as shown below:
Checksum = (0x00 + 0x02 + 0xE9 + 0x6F) MOD 0x100 = 0x5A
To transmit 0x5A as checksum, we need to send two bytes (bytes 31 and 32) as shown below.
26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | |
Host (Master) | A5 | 00 | 02 | E9 | 6F | 5A | 5A | 00 | 00 |
Piccolo (Slave) | FF | FF | FF | FF | FF | FF | FF | FF | 01 |