
ML62Q1000 Series User's Manual
Chapter 19 CRC Generator
FEUL62Q1000
19-14
The following chart shows the CRC calculation process flow with the CRC calculation result attached to the serial
receive data.
In this example, 13-byte data with 0x21 in the beginning is used as calculation data. From the calculation data,
calculation result is obtained using the calculation shift direction in LSB first mode. The first 11 bytes of the CRC
calculation result is added to the last two bytes.
Figure 19-4 CRC Calculation Processing Flow 2 (Serial Reception/LSB First)
Write the initial value to the CRCRES register.
CRCRES = 0xFFFF
Start
Write receive data to the CRCDATA register.
CRCDATA = 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28,
0x29, 0x81, 0x7F, 0xE6, 0x87
End
When CRCRES is read, 0x0000 is obtained.
Set CRC calculation initial value
Last data?
NO
YES
Check operation result
Serial reception
Configure settings such as the serial communication mode,
general-purpose port, and interrupt.
Set serial reception
Set CRC calculation shift direction
Write "0" to the CRCDIR bit to set to LSB first.
Содержание ML62Q1000 Series
Страница 17: ...Chapter 1 Overview...
Страница 112: ...Chapter 2 CPU and Memory Space...
Страница 154: ...Chapter 3 Reset Function...
Страница 166: ...Chapter 4 Power Management...
Страница 196: ...Chapter 5 Interrupts...
Страница 248: ...Chapter 6 Clock generation Circuit...
Страница 274: ...Chapter 7 Low Speed Time Base Counter...
Страница 291: ...Chapter 8 16 Bit Timer...
Страница 320: ...Chapter 9 Functional Timer FTM...
Страница 382: ...Chapter 10 Watchdog Timer...
Страница 402: ...Chapter 11 Serial Communication Unit...
Страница 456: ...Chapter 12 I2 C Bus Unit...
Страница 491: ...Chapter 13 I2 C Master...
Страница 512: ...Chapter 14 DMA Controller...
Страница 531: ...Chapter 15 Buzzer...
Страница 550: ...Chapter 16 Simplified RTC...
Страница 559: ...Chapter 17 GPIO...
Страница 594: ...Chapter 18 External Interrupt Function...
Страница 612: ...Chapter 19 CRC Generator...
Страница 632: ...Chapter 20 Analog Comparator...
Страница 644: ...Chapter 21 D A Converter...
Страница 655: ...Chapter 22 Voltage Level Supervisor...
Страница 676: ...Chapter 23 Successive Approximation Type A D Converter...
Страница 709: ...Chapter 24 Regulator...
Страница 714: ...Chapter 25 Flash Memory...
Страница 743: ...Chapter 26 Code Option...
Страница 750: ...Chapter 27 LCD Driver...
Страница 788: ...Chapter 28 On Chip Debug Function...
Страница 795: ...Chapter 29 Safety Function...
Страница 813: ...Appendix A...
Страница 881: ...Revision History...