31.3.18.8 CRC Control Register

Table 31-32. Register Bit Attribute Legend
SymbolDescriptionSymbolDescriptionSymbolDescription
RReadable bitHCCleared by Hardware(Grey cell)Unimplemented
WWritable bitHSSet by HardwareXBit is unknown at Reset
KWrite to clearSSoftware settable bit
Name: CRCCTRL
Offset: 0x0020
Reset: 0x00000000
Property: PAC Write Protection

Bit 3130292827262524 
 PERIOD[15:8] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 2322212019181716 
 PERIOD[7:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 15141312111098 
 RINROUTAUTORPLEN32     
Access R/WR/WR/WR/W 
Reset 0000 
Bit 76543210 
   RUNSTDBY   CRCENCRCRST 
Access R/WR/WR/W 
Reset 000 

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.

ValueDescription
0The LFSR CRC is calculated Most Significant Bit first (Not Reflected)
1The 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.

ValueDescription
0The CRCACC is Not Reflected
1The CRCACC is Reflected (before the Final XOR)

Bit 13 – AUTOR CRC Auto Repeat

ValueDescription
0Perform CRC calculation once then set DONE and, if needed, set INTFLAG.CRCERR.
1Continually Repeat CRC calculation; stop on error, set CRCDONE and CRCERR.

Bit 12 – PLEN32 Polynomial Length Select

ValueDescription
0Polynomial is16-bits
1Polynomial is 32-bits

Bit 5 – RUNSTDBY CRC Run in Standby

ValueDescription
0CRC Stops in Standby
1CRC 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
ValueDescription
0CRC Stops in Standby
1CRC Runs in Standby but only if STATUS.PRM=0 (i.e. Flash is in Auto Standby)

Bit 0 – CRCRST CRC Reset

ValueDescription
0No Effect
1Resets all CRC SFR (CRCCTRL and CRCPAUSE) bits.