8.3.10.69 SPI CRC Register
This register can only be written if WPEN is cleared in the SPI Write Protection Mode Register.
| Name: | FLEX_SPI_CRCR |
| Offset: | 0x44C |
| Reset: | 0x00000000 |
| Property: | Read/Write |
| Bit | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | |
| DHRX | DCRX | FHE | CRM | ||||||
| Access | R/W | R/W | R/W | R/W | |||||
| Reset | 0 | 0 | 0 | 0 |
| Bit | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | |
| FRHL[3:0] | CRCS | ||||||||
| Access | R/W | R/W | R/W | R/W | R/W | ||||
| Reset | 0 | 0 | 0 | 0 | 0 | ||||
| Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
| Access | |||||||||
| Reset |
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| FRL[7:0] | |||||||||
| Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | |
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
Bit 27 – DHRX Disable Header Receiving
| Value | Description |
|---|---|
| 0 | Header is received and supplied to FLEX_SPI_RDR as a classic data. |
| 1 | Header is received and checked but not supplied to FLEX_SPI_RDR (RDRF will not rise upon Header receiving). |
Bit 26 – DCRX Disable CRC Receiving
| Value | Description |
|---|---|
| 0 | CRC is received and supplied to FLEX_SPI_RDR as a classic data. |
| 1 | CRC is received and checked but not supplied to FLEX_SPI_RDR (RDRF will not rise upon CRC receiving). |
Bit 25 – FHE Frame Header Excluded
| Value | Description |
|---|---|
| 0 | The frame header is included in the CRC calculation. |
| 1 | The frame header is excluded from the CRC calculation. |
Bit 24 – CRM Continuous Read Mode
| Value | Description |
|---|---|
| 0 | A header is sent every frame in case of contiguous frames (without de-asserting the corresponding NPCS). |
| 1 | A header is sent only on the first frame in case of contiguous frames (without de-asserting the corresponding NPCS). |
Bits 23:20 – FRHL[3:0] Frame Header Length
If FLEX_SPI_MR.TPMEN= 0, this value is the length of the frame header, in bytes.
If FLEX_SPI_MR.TPMEN= 1, this value is the length of the frame header minus 1, in bytes.
Bit 16 – CRCS CRC Size
| Value | Name | Description |
|---|---|---|
| 0 | 16B_CRC | CRC size is 16 bits. |
| 1 | 32B_CRC | CRC size is 32 bits. |
Bits 7:0 – FRL[7:0] Frame Length
If FLEX_SPI_MR.TPMEN= 0, this value is the length of the frame (header and CRC included), in bytes.
If FLEX_SPI_MR.TPMEN= 1, this value is the length in bytes of the frame starting from the SYNC field (included) with CRC included.
