C8051F80x-83x
24.6. CRC0 Bit Reverse Feature
CRC0 includes hardware to reverse the bit order of each bit in a byte as shown in Figure 24.1. Each byte
of data written to CRC0FLIP is read back bit reversed. For example, if 0xC0 is written to CRC0FLIP, the
data read back is 0x03. Bit reversal is a useful mathematical function used in algorithms such as the FFT.
SFR Definition 24.6. CRC0FLIP: CRC Bit Flip
Bit
Name
Type
Reset
0
0
0
0
7
6
5
4
3
2
1
0
CRC0FLIP[7:0]
R/W
0
0
0
0
SFR Address = 0xCF
Bit
Name
7:0
CRC0FLIP[7:0]
CRC0 Bit Flip.
Function
Any byte written to CRC0FLIP is read back in a bit-reversed order, i.e. the written
LSB becomes the MSB. For example:
If 0xC0 is written to CRC0FLIP, the data read back will be 0x03.
If 0x05 is written to CRC0FLIP, the data read back will be 0xA0.
166
Rev. 1.0