
Rev. 1.0
165
C8051F80x-83x
SFR Address = 0xD2
SFR Address = 0xD3
SFR Definition 24.4. CRC0AUTO: CRC Automatic Control
Bit
76543210
Name
AUTOEN
CRCCPT
Reserved
CRC0ST[4:0]
Type
R/W
Reset
01000000
Bit
Name
Function
7AUTOEN
Automatic CRC Calculation Enable.
When AUTOEN is set to 1, any write to CRC0CN will initiate an automatic CRC
starting at Flash sector CRC0ST and continuing for CRC0CNT sectors.
6
CRCCPT
Automatic CRC Calculation Complete.
Set to 0 when a CRC calculation is in progress. Code execution is stopped during
a CRC calculation, therefore reads from firmware will always return 1.
5
Reserved
Must write 0.
4:0
CRC0ST[4:0]
Automatic CRC Calculation Starting Flash Sector.
These bits specify the Flash sector to start the automatic CRC calculation. The
starting address of the first Flash sector included in the automatic CRC calculation
is CRC0ST x 512.
SFR Definition 24.5. CRC0CNT: CRC Automatic Flash Sector Count
Bit
76543210
Name
CRC0CNT[5:0]
Type
RR
R/W
Reset
00000000
Bit
Name
Function
7:6
Unused
Read = 00b; Write = Don’t Care.
5:0
CRC0CNT[5:0] Automatic CRC Calculation Flash Sector Count.
These bits specify the number of Flash sectors to include when performing an
automatic CRC calculation. The base address of the last flash sector included in
the automatic CRC calculation is equal to (CRC0ST + CRC0CNT) x 512.