
GD32L23x User Manual
90
4.3.
Register definition
RCU base address: 0x4002 1000
4.3.1.
Control register (RCU_CTL)
Address offset: 0x00
Reset value: 0x0000 XX83 where X is undefined.
This register can be accessed by byte(8-bit), half-word(16-bit) and word(32-bit)
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
PLLSTB
PLLEN
LXTALCK
MD
LXTALCK
MEN
IRC48MS
TB
IRC48ME
N
CKMEN
HXTALB
PS
HXTALST
B
HXTALE
N
r
rw
r
rw
r
rw
rw
rw
r
rw
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
IRC16MCALIB[7:0]
IRC16MADJ[4:0]
Reserved
IRC16MS
TB
IRC16ME
N
r
rw
r
rw
Bits
Fields
Descriptions
31:26
Reserved
Must be kept at reset value.
25
PLLSTB
PLL clock stabilization flag
Set by hardware to indicate if the PLL output clock is stable and ready for use.
0: PLL is not stable
1: PLL is stable
24
PLLEN
PLL enable
Set and reset by software. This bit cannot be reset if the PLL clock is used as the
system clock. Reset by hardware when entering Deep-sleep or Standby mode.
0: PLL is switched off
1: PLL is switched on
23
LXTALCKMD
LXTAL clock failure detection
Set by hardware to indicate when a failure has been detected by the clock security
system on the external 32 kHz oscillator (LXTAL). It can be clean by disable
LXTALCKMEN or disable LXTALEN or LXTAL gets right.
0: No failure detected on LXTAL (32 kHz oscillator)
1: Failure detected on LXTAL (32 kHz oscillator)
22
LXTALCKMEN
LXTAL clock monitor enable
0: Disable the LXTAL clock monitor
1: Enable the LXTAL clock monitor
Set by software to enable the clock security system on LXTAL (32 kHz oscillator).
LXTALCKMEN should be enabled only on the LXTAL is enabled (LXTALEN bit