31.3.18.8 CRC Control Register
Symbol | Description | Symbol | Description | Symbol | Description |
---|---|---|---|---|---|
R | Readable bit | HC | Cleared by Hardware | (Grey cell) | Unimplemented |
W | Writable bit | HS | Set by Hardware | X | Bit is unknown at Reset |
K | Write to clear | S | Software settable bit | — | — |
Name: | CRCCTRL |
Offset: | 0x0020 |
Reset: | 0x00000000 |
Property: | PAC Write Protection |
Bit | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | |
PERIOD[15:8] | |||||||||
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 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | |
PERIOD[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 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
RIN | ROUT | AUTOR | PLEN32 | ||||||
Access | R/W | R/W | R/W | R/W | |||||
Reset | 0 | 0 | 0 | 0 |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
RUNSTDBY | CRCEN | CRCRST | |||||||
Access | R/W | R/W | R/W | ||||||
Reset | 0 | 0 | 0 |
Bits 31:16 – PERIOD[15:0] Read Period in Period Clock (PerCLK)counts
The number of PerCLK counts CRC logic waits between needing new data and reading that data from flash. (The PerCLK is clock at an 8 MHz fixed frequency. Non-zero PERIOD values are used to throttle back the bandwidth used for CRC calculations.)
0 = Read Data Immediately
All Other Values = Wait PERIOD PerCLK counts + 2 AHB Clocks (for sync) before starting
Bit 15 – RIN CRC Reflected Input
This option is sometimes referred to as Reflected Byte or Reflected Input.
Value | Description |
---|---|
0 | The LFSR CRC is calculated Most Significant Bit first (Not Reflected) |
1 | The LFSR CRC is calculated Least Significant Bit first (Reflected) |
Bit 14 – ROUT CRC Reflected Output
This option is sometimes referred to as Reflected Result or Reflected Output.
Value | Description |
---|---|
0 | The CRCACC is Not Reflected |
1 | The CRCACC is Reflected (before the Final XOR) |
Bit 13 – AUTOR CRC Auto Repeat
Value | Description |
---|---|
0 | Perform CRC calculation once then set DONE and, if needed, set INTFLAG.CRCERR. |
1 | Continually Repeat CRC calculation; stop on error, set CRCDONE and CRCERR. |
Bit 12 – PLEN32 Polynomial Length Select
Value | Description |
---|---|
0 | Polynomial is16-bits |
1 | Polynomial is 32-bits |
Bit 5 – RUNSTDBY CRC Run in Standby
Value | Description |
---|---|
0 | CRC Stops in Standby |
1 | CRC Runs in Standby but only if STATUS.PRM=0 (i.e. Flash is in Auto Standby) |
Bit 1 – CRCEN Start CRC Calculation
Note: When CRCEN = 1 all other CRC* SFR bits are write protected, except CRCEN,
CRCRST, and CRCPAUSE.PAUSE
Value | Description |
---|---|
0 | CRC Stops in Standby |
1 | CRC Runs in Standby but only if STATUS.PRM=0 (i.e. Flash is in Auto Standby) |
Bit 0 – CRCRST CRC Reset
Value | Description |
---|---|
0 | No Effect |
1 | Resets all CRC SFR (CRCCTRL and CRCPAUSE) bits. |