BAT32G1x9 user manual | Chapter 4 Clock generation circuit
118 / 1149
Rev.1.02
4.7.2
Register description
Table 4-10shows a list of registers used for the high-speed internal oscillation frequency correction function.
Table 4-10 High-speed internal oscillation frequency correction function registers at a glance
project
structure
Control registers
High Speed Internal Vibration Frequency Correction Control Register (HOCOFC)
4.7.2.1
High Speed Internal Vibration Frequency Correction Control Register (HOCOFC)
Control register for high-speed internal oscillation frequency correction.
The HOCOFC register is set by the 8-bit memory operation instruction.
After reset signal generated, the value of this register changes to "00H".
Figure 4-24
Format of the high-speed internal oscillation frequency correction control
register (HOCOFC
).
Address: 0x40022400
After reset: 00H R/W
symbol
7
6
5
4
3
2
1
0
HOCOFC
FCMD
FCIE
0
0
0
0
0
FCST
FCMD
Note 1
High-speed internal vibration frequency correction function action mode
0
Continuous action mode
1
Interval action mode
FCIE
Interrupt control with high-speed internal vibration frequency correction
0
There is no interruption after the high-speed internal vibration frequency correction is
completed
1
An interrupt occurs after the high-speed internal oscillation frequency correction is complete
FCST
Note 2
High-speed internal vibration frequency correction circuit action control/status
0
High-speed internal vibration frequency correction circuit action stop/stop
1
High-speed internal vibration frequency correction circuit action start/action
In continuous motion mode, the software writes 0 to stop the action.
In interval mode, the hardware clears the FCST bit after the correction is complete.
Note 1. When the FCST bit is 1, rewriting the FCMD bit is prohibited.
2. When writing 1 to the FCST bit, first confirm that the value of the current FCST bit is 0 and then
write 1 to it. Due to the priority of hardware clearance, when the FCST bit is written to 1
immediately after the interval operation is completed (when the high-speed internal vibration
frequency correction completes the interrupt generation), the operation should be performed at
least 1 cycle after the high-speed internal vibration frequency correction is completed after the
interrupt is generated.
After writing 0 to the FCST bit (the high-speed internal oscillation frequency correction circuit
action stops), fHOCO disables writing 1 to the FCST bit for 2 cycles (the high-speed internal
vibration frequency correction circuit action begins).
Note: Bits 5 to 1 must be written 0