
ML62Q1000 Series User's Manual
Chapter 19 CRC Generator
FEUL62Q1000
19-18
19.3.2 Automatic CRC Calculation Mode
In the automatic CRC calculation mode, an arbitrary program memory area is automatically CRC-calculated in the
HALT/HALT-H mode and the result is output to the CRC calculation result register (CRCRES).
For data error detection in program memory (for self-test), using software, the result of the automatic calculation can be
compared with the expected value written to Flash memory in advance.
The expected value is created in the code generation assistance software HTU8 from LAPIS.
19.3.2.1 Example of Use of Automatic CRC Calculation Mode
The following chart shows the automatic CRC calculation process flow.
Figure 19-8 Automatic CRC Calculation Process Flow
HALT/HALT-H
Wait for mode
release
Write the initial value to the CRCRES register.
CRCRES = 0xFFFF
Start
End
Set CRC calculation initial value
Set the values of address and segment from which the CRC
calculation is started within the program code area to the
CRCSAD and CRCSSEG registers.
Set CRC calculation start address
Set CRC calculation start segment
Set CRC calculation end address
Set CRC calculation end segment
Set the values of address and segment in which the CRC
calculation is ended to the CRCEAD and CRCESEG registers.
Set CRC calculation shift direction
Enable CRC calculation
Write "0x01" to the CRCMOD register to set the CRC calculation
shift direction to LSB first and enable the automatic CRC
calculation mode.
Set HALT/HALT-H mode transition
When the CPU operation mode is “Wait mode” and the PLL
reference frequency is 24MHz, choose 12MHz or slower for the
SYSTEMCLK before entering the HALT/HALT-H mode.
Shift the operation state from the program run mode to the
HALT/HALT-H mode.
NO
YES
Read CRC calculation result
Compare calculation result with
expected value
Read the CRC calculation result from the CRCRES register.
Compare the CRC calculation result and expected value.
After the HALT/HALT-H mode is released, read CRCMOD or
automatic CRC calculation MCl1S to confirm that the automatic
CRC calculation is ended.
When a WDT interrupt or an interrupt enabled in the interrupt
enable registers (IE0 to IE7) is generated, the operation returns
from the HALT/HALT-H mode to the program run mode.
Automatic CRC
calculation end
Содержание 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...