
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.
Summary of Contents for ML62Q1000 Series
Page 17: ...Chapter 1 Overview...
Page 112: ...Chapter 2 CPU and Memory Space...
Page 154: ...Chapter 3 Reset Function...
Page 166: ...Chapter 4 Power Management...
Page 196: ...Chapter 5 Interrupts...
Page 248: ...Chapter 6 Clock generation Circuit...
Page 274: ...Chapter 7 Low Speed Time Base Counter...
Page 291: ...Chapter 8 16 Bit Timer...
Page 320: ...Chapter 9 Functional Timer FTM...
Page 382: ...Chapter 10 Watchdog Timer...
Page 402: ...Chapter 11 Serial Communication Unit...
Page 456: ...Chapter 12 I2 C Bus Unit...
Page 491: ...Chapter 13 I2 C Master...
Page 512: ...Chapter 14 DMA Controller...
Page 531: ...Chapter 15 Buzzer...
Page 550: ...Chapter 16 Simplified RTC...
Page 559: ...Chapter 17 GPIO...
Page 594: ...Chapter 18 External Interrupt Function...
Page 612: ...Chapter 19 CRC Generator...
Page 632: ...Chapter 20 Analog Comparator...
Page 644: ...Chapter 21 D A Converter...
Page 655: ...Chapter 22 Voltage Level Supervisor...
Page 676: ...Chapter 23 Successive Approximation Type A D Converter...
Page 709: ...Chapter 24 Regulator...
Page 714: ...Chapter 25 Flash Memory...
Page 743: ...Chapter 26 Code Option...
Page 750: ...Chapter 27 LCD Driver...
Page 788: ...Chapter 28 On Chip Debug Function...
Page 795: ...Chapter 29 Safety Function...
Page 813: ...Appendix A...
Page 881: ...Revision History...