
ML62Q1000 Series User's Manual
Chapter 19 CRC Generator
FEUL62Q1000
19-19
The CRC calculation of data in the program code area configured in the CRCSSEG, CRCSAD, CRCESEG, and
CRCEAD registers is started by setting the CRCMOD register to "0x01" to shift to the HALT/HALT-H mode.
When the HALT/HALT-H mode released while the calculation is in progress, the calculation is aborted. If shifting to the
HALT/HALT-H mode again, the calculation resumes at the address it was aborted. The CRCSSEG and CRCAD
registers are incremented each time data is read from the program code area.
If the calculation start segment and address (values of CRCSSEG and CRCSAD registers) match the calculation end
segment and address (values of CRCESEG and CRCEAD registers), the CRC calculation is ended, the CRCMOD
register becomes "0x00", and the automatic CRC calculation completion interrupt request is generated. If the automatic
CRC calculation completion interrupt is enabled, then the HALT/HALT-H mode is released and the MCU status
interrupt is generated.
Enable/disable the automatic CRC calculation completion interrupt is set by the MCU status interrupt enable register
(MCINTEL). See Chapter 29 "Safety Function" for details of the MCINTEL register.
See "ML62Q1000 Series Self-test Sample Software AP Notes" and "HTU8 User's Manual" for details of self-test
program using the automatic CRC calculation mode or how to generate expected values.
[Note]
Ÿ
To perform CRC calculation in the manual mode when automatic CRC calculation is not completed, save
the value in the CRCRES register before calculation. Once the CRC calculation in the manual mode is
completed, move the saved value back to the CRCRES register and set the CRCAEN bit to "1". If entering
the HALT/HALT-H mode then, the automatic CRC calculation can be restarted.
The final addresses at the end of the previous operation are stored in the CRCSAD and CRCSSEG
registers. If values in the RCSAD and CRCSSEG registers are overwritten with the CRCAEN bit set to "0",
the calculation works incorrectly.
Ÿ
When the CPU oepration 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.
Содержание 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...