ZHCSMR1C october 2019 – september 2021 UCC5870-Q1
PRODUCTION DATA
The CRC checks for SPI transfer are continuously updated as SPI traffic is received/ sent. The CRC is updated with every 16-bits that are received. An example of calculating the SPI CRC for a sent command is given in Figure 7-36. In this set of commands, we are updating the configuration for CFG1 and then doing a CRC comparison on that command.
Command | Purpose | CRC Before | CRC_After |
---|---|---|---|
0xFC00 | Change the SPI address pointer to CFG1 register | 0xFF (Initialized) | 0x3F |
0xFA58 | Update the high byte with 0x58 configuration | 0x3F | 0x23 |
0xFB2A | Update the low byte with 0x2A configuration | 0x23 | 0xC4 |
0xFC13 | Change the SPI address point to CRCDATA register | 0xC4 | 0x28 |
0xFA30 | Update the CRC_TX bits with the calculated CRC | 0x28 | 0x30 (written to the CRC_TX bits) |