English
Language : 

MC9S08AC60 Datasheet, PDF (131/348 Pages) Freescale Semiconductor, Inc – Microcontrollers
8.3.2.2 CRC Low Register (CRCL)
Chapter 8 Cyclic Redundancy Check (S08CRCV1)
7
R
Bit 7
W
6
Bit 6
5
Bit 5
4
Bit 4
3
Bit 3
2
Bit 2
1
Bit 1
0
Bit 0
Reset
0
0
0
0
0
0
0
0
Figure 8-4. CRC High Register (CRCH)
Table 8-3. Register Field Descriptions
Field
Description
7:0
CRCL
CRCL — This is the low byte of the 16-bit CRC register. Normally, a write to CRCL will cause the CRC generator to
begin clocking through the 16-bit CRC generator. As a special case, if a write to CRCH has occurred previously, a
subsequent write to CRCL will load the value in the register as the low byte of a 16-bit seed value directly into bits
7-0 of the shift register in the CRC generator. A read of CRCL will read bits 7-0 of the current CRC calculation result
directly out of the shift register in the CRC generator.
8.4 Functional Description
To enable the CRC function, a write to the CRCH register will trigger the first half of the seed mechanism
which will place the CRCH value directly into bits 15-8 of the CRC generator shift register. The CRC
generator will then expect a write to CRCL to complete the seed mechanism.
As soon as the CRCL register is written to, its value will be loaded directly into bits 7-0 of the shift register,
and the second half of the seed mechanism will be complete. This value in CRCH:CRCL will be the initial
seed value in the CRC generator.
Now the first byte of the data on which the CRC calculation will be applied should be written to CRCL.
This write after the completion of the seed mechanism will trigger the CRC module to begin the CRC
checking process. The CRC generator will shift the bits in the CRCL register (MSB first) into the shift
register of the generator. After all 8 bits have been shifted into the CRC generator (in the next bus cycle
after the data write to CRCL), the result of the shifting, or the value currently in the shift register, can be
read directly from CRCH:CRCL, and the next data byte to include in the CRC calculation can be written
to the CRCL register.
This next byte will then also be shifted through the CRC generator’s 16-bit shift register, and after the
shifting has been completed, the result of this second calculation can be read directly from CRCH:CRCL.
After each byte has finished shifting, a new CRC result will appear in CRCH:CRCL, and an additional
byte may be written to the CRCL register to be included within the CRC16-CCITT calculation. A new
CRC result will appear in CRCH:CRCL each time 8-bits have been shifted into the shift register.
To start a new CRC calculation, write to CRCH, and the seed mechanism for a new CRC calculation will
begin again.
MC9S08AC60 Series Data Sheet, Rev. 2
Freescale Semiconductor
131