
AT32F413
Series Reference Manual
2022.06.27
Page 328
Rev 2.00
22
HICK auto clock calibration (ACC)
22.1 ACC introduction
HICK auto clock calibration (HICK ACC) implements the sampling and calibration for the HICK clocks by
using the SOF signal (1 ms of period) generated by USB module as a reference signal.
The main pupose of this module is to provide a clock of 48MHz±0.25% for the USB device.
It is able to make the calibrated frequency as close to the target frequency as possible by means of
“cross and return” algorithm.
22.2 Main features
Programmable center frequency
Programmable boundary frequency that triggers calibration function
Center frequency precision ±0.25%
Status detection flags
―
Calibration ready flag
Error detection flags
―
Reference signal lost error flag
Two interrupt source flag
―
Calibration ready flag
―
Reference signal lost error flag
Two calibration modes: coarse calibration and fine calibration
22.3 Interrupt requests
Table 22-1
ACC interrupt requests
Interrupt event
Event flag
Enable bit
Calibration ready
CALRDY
CALRDYIEN
Reference signal lost
RSLOST
EIEN
ACC interrupt events are linked to the same interrupt vector (see
). Interrupt events include:
During calibration period: When the calibration gets ready or reference signal lost occurs,
the corresponding interrupt will be generated if the corresponding enable bit is enabled.
Figure 22-1
ACC interrupt mapping diagram
ACC interrupt
CALRDY
CALRDYIEN
RSLOST
EIEN