SWRU543B January 2019 – June 2025 CC3230S , CC3230SF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
Table 20-3 lists the memory-mapped registers for the CCM_REGISTER_MAP. All register offset addresses not listed in Table 20-3 should be considered as reserved locations and the register contents should not be modified.
The offset listed is a hexadecimal increment to the address of the register, relative to the base address 0x4403.0000.
| Offset | Acronym | Register Name | Section |
|---|---|---|---|
| C00h | CRCCTRL | CRC Control | Section 20.3.1 |
| C10h | CRCSEED | CRC SEED/Context | Section 20.3.2 |
| C14h | CRCDIN | CRC Data Input | Section 20.3.3 |
| C18h | CRCRSLTPP | CRC Post Processing Result | Section 20.3.4 |
CRCCTRL is shown in Figure 20-1 and described in Table 20-4.
Return to Summary Table.
The CRC Control (CRCCTRL) register configures control of the CRC.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
| RESERVED | |||||||
| R-0h | |||||||
| 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| RESERVED | |||||||
| R-0h | |||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
| RESERVED | INIT | SIZE | RESERVED | RESINV | OBR | ||
| R-0h | R/W-0h | R/W-0h | R-0h | R/W-0h | R/W-0h | ||
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| BR | RESERVED | ENDIAN | TYPE | ||||
| R/W-0h | R-0h | R/W-0h | R/W-0h | ||||
| LEGEND: R/W = Read/Write; R = Read only; W1toCl = Write 1 to clear bit; -n = value after reset |
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-15 | RESERVED | R | 0h | |
| 14-13 | INIT | R/W | 0h |
CRC Initialization Determines initialization value of CRC. This field is self-clearing. With the first write to the CRC Data Input (CRCDIN) register, this value clears to zero and remains zero for the rest of the operation unless written again. 0h = Use the CRCSEED register context as the starting value 1h = Reserved 2h = Initialize to all 0s 3h = Initialize to all 1s |
| 12 | SIZE | R/W | 0h |
Input Data Size 0h = 32-bit (word) 1h = 8-bit (byte) |
| 11-10 | RESERVED | R | 0h | |
| 9 | RESINV | R/W | 0h |
Result Inverse Enable 0h = No effect 1h = Invert the result bits before storing in the CRCRSLTPP register. |
| 8 | OBR | R/W | 0h |
Output Reverse Enable Refer to Table 20-2 for more information regarding bit reversal. 0h = No change to result. 1h = Bit reverse the output result byte before storing to CRCRSLTPP register. The reversal is applied to all bytes in a word. |
| 7 | BR | R/W | 0h |
Bit Reverse Enable See Table 20-2 for more information regarding bit reversal. 0h = No change to result. 1h = Bit reverse the input byte for all bytes in a word. |
| 6 | RESERVED | R | 0h | |
| 5-4 | ENDIAN | R/W | 0h |
Endian Control This field is used to program the endian configuration. The encodings below are with respect to an input word = (B3, B2, B1, B0) See Table 20-1 for more information regarding endian configuration and control. 0h = Configuration unchanged. (B3, B2, B1, B0) 1h = Bytes are swapped in halfwords but halfwords are not swapped (B2, B3, B0, B1) 2h = Halfwords are swapped but bytes are not swapped in halfword. (B1, B0, B3, B2) 3h = Bytes are swapped in halfwords and halfwords are swapped. (B0, B1, B2, B3) |
| 3-0 | TYPE | R/W | 0h |
Operation Type The TYPE value in the CRCCTRL register should be exclusive. 0h = Polynomial 0x8005 1h = Polynomial 0x1021 2h = Polynomial 0x4C11DB7 3h = Polynomial 0x1EDC6F41 4h - 7h = Reserved 8h = TCP checksum 9h - Fh = Reserved |
CRCSEED is shown in Figure 20-2 and described in Table 20-5.
Return to Summary Table.
The CRC SEED/Context (CRCSEED) register is initially written with one of the following three values, depending on the encoding of the INIT field in the CRCCTRL register:
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| SEED | |||||||||||||||||||||||||||||||
| R/W-0h | |||||||||||||||||||||||||||||||
| LEGEND: R/W = Read/Write; R = Read only; W1toCl = Write 1 to clear bit; -n = value after reset |
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | SEED | R/W | 0h |
SEED/Context Value This register contains the starting seed of the CRC and checksum operation. This register also holds the latest result of CRC or checksum operation. |
CRCDIN is shown in Figure 20-3 and described in Table 20-6.
Return to Summary Table.
The application writes the CRC Data Input (CRCDIN) register with the next byte or word to compute.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| DATAIN | |||||||||||||||||||||||||||||||
| R/W-0h | |||||||||||||||||||||||||||||||
| LEGEND: R/W = Read/Write; R = Read only; W1toCl = Write 1 to clear bit; -n = value after reset |
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | DATAIN | R/W | 0h |
Data Input This register contains the input data value for the CRC or checksum operation. |
CRCRSLTPP is shown in Figure 20-4 and described in Table 20-7.
Return to Summary Table.
This register contains the post-processed CRC result, as configured by the CRCCTRL register.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| RSLTPP | |||||||||||||||||||||||||||||||
| RO-0h | |||||||||||||||||||||||||||||||
| LEGEND: R/W = Read/Write; R = Read only; W1toCl = Write 1 to clear bit; -n = value after reset |
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | RSLTPP | RO | 0h |
Post Processing Result This register contains the post-processed CRC result. |