30.3.18.7 CRC Control Register

Table 30-31. Register Bit Attribute Legend
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 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
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.

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

Bit 13 – AUTOR CRC Auto Repeat

ValueDescription
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

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

Bit 5 – RUNSTDBY CRC Run in Standby

ValueDescription
0 CRC Stops in Standby
1 CRC Runs in 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
0 CRC Stops in Standby
1 CRC Runs in Standby

Bit 0 – CRCRST CRC Reset

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