BAT32G1x9 user manual | Chapter 4 Clock generation circuit
124 / 1149
Rev.1.02
4.8.3
The register used by the oscillator stops detection circuit
4.8.3.1
Peripheral Enable Register 2 (PER2)
When using the vibration-stop detection circuit, the BIT4 (OSDCEN) of PER2 must be set to 1.
Registers are described in detail in "4.3.7Peripheral enable registers 0, 1, 2, 3 (PER0, PER1, PER2, P ER2
”.
4.8.3.2
Vibration Stop Detection Control Register (SCMCTL)
The Vibration Stop Detection Control Register (SCMCTL) is a register that controls the start of the action of the
vibration stop detection circuit, the stop of the action, and the setting of the vibration stop determination time.
When the OSCDE bit is 0, the vibration stop detection circuit does not start the operation.
Use 16-bit operation instructions to manipulate the SCMCTL registers.
Figure 4-30 Format of the Vibration Stop Detection Control Register (SCMCTL).
Address: 0x40022200
After reset: 0FFFH R/W
symbol
15
14
13
12
11
10
9
8
SCMCTL
OSCDE
0
0
0
OSDCCMP11-8
symbol
7
6
5
4
3
2
1
0
SCMCTL
OSDCCMP7-0
OSDCE
Vibration stops detecting the action of the action
0
Vibration stop detection action stops
1
Vibration stop detection action begins
OSDCCMP11-0
Vibration stop determination time
000H
…
002H
Prohibit settings
003H
…
FFFH
Set the vibration stop judgment time.
Oscillation stop determination time = internal low-speed oscillation clock (fIL) period
╳
((OSDCCMP11~ OSDCCMP0 setting value)
+1).
Note 1. When modifying the setting value of OSDCCMP11~OSDCCMP0, OSDCE must be set to 0.
2. The vibration detection circuit stops the vibration detection action by setting OSDCE=0 (vibration
stop detection action stop) or generates terminal reset and other internal resets to stop the
vibration detection action.
3.Bit14-12 must be set to 0.