JAJSSO2 December 2023 MCF8315C
PRODMIX
All values used in this example section are in hex format. I2C target ID used in the examples is 0x60.
Example for 32-bit Write Operation: Address – 0x00000080, Data – 0x1234ABCD, CRC Byte – 0x45 (Sample value; does not match with the actual CRC calculation)
Start Byte | Control Word 0 | Control Word 1 | Control Word 2 | Data Bytes | CRC | ||||||||
Target ID | I2C Write | OP_R/W | CRC_EN | DLEN | MEM_SEC | MEM_PAGE | MEM_ADDR | MEM_ADDR | DB0 | DB1 | DB2 | DB3 | CRC Byte |
A6-A0 | W0 | CW23 | CW22 | CW21-CW20 | CW19-CW16 | CW15-CW12 | CW11-CW8 | CW7-CW0 | D7-D0 | D7-D0 | D7-D0 | D7-D0 | C7-C0 |
0x60 | 0x0 | 0x0 | 0x1 | 0x1 | 0x0 | 0x0 | 0x0 | 0x80 | 0xCD | 0xAB | 0x34 | 0x12 | 0x45 |
0xC0 | 0x50 | 0x00 | 0x80 | 0xCD | 0xAB | 0x34 | 0x12 | 0x45 |
Example for 64-bit Write Operation: Address - 0x00000080, Data Address 0x00000080 - Data 0x01234567, Data Address 0x00000082 – Data 0x89ABCDEF, CRC Byte – 0x45 (Sample value; does not match with the actual CRC calculation)
Start Byte | Control Word 0 | Control Word 1 | Control Word 2 | Data Bytes | CRC | ||||||||||||
Target ID | I2C Write | OP_R/W | CRC_EN | DLEN | MEM_SEC | MEM_PAGE | MEM_ADDR | MEM_ADDR | DB0 - DB7 | CRC Byte | |||||||
A6-A0 | W0 | CW23 | CW22 | CW21-CW20 | CW19-CW16 | CW15-CW12 | CW11-CW8 | CW7-CW0 | [D7-D0] x 8 | C7-C0 | |||||||
0x60 | 0x0 | 0x0 | 0x1 | 0x2 | 0x0 | 0x0 | 0x0 | 0x80 | 0x67452301EFCDAB89 | 0x45 | |||||||
0xC0 | 0x60 | 0x00 | 0x80 | 0x67452301EFCDAB89 | 0x45 |
Example for 32-bit Read Operation: Address – 0x00000080, Data – 0x1234ABCD, CRC Byte – 0x56 (Sample value; does not match with the actual CRC calculation)
Start Byte | Control Word 0 | Control Word 1 | Control Word 2 | Start Byte | Byte 0 | Byte 1 | Byte 2 | Byte 3 | Byte 4 | ||||||
Target ID | I2C Write | R/W | CRC_EN | DLEN | MEM_SEC | MEM_PAGE | MEM_ADDR | MEM_ADDR | Target ID | I2C Read | DB0 | DB1 | DB2 | DB3 | CRC Byte |
A6-A0 | W0 | CW23 | CW22 | CW21-CW20 | CW19-CW16 | CW15-CW12 | CW11-CW8 | CW7-CW0 | A6-A0 | W0 | D7-D0 | D7-D0 | D7-D0 | D7-D0 | C7-C0 |
0x60 | 0x0 | 0x1 | 0x1 | 0x1 | 0x0 | 0x0 | 0x0 | 0x80 | 0x60 | 0x1 | 0xCD | 0xAB | 0x34 | 0x12 | 0x56 |
0xC0 | 0xD0 | 0x00 | 0x80 | 0xC1 | 0xCD | 0xAB | 0x34 | 0x12 | 0x56 |