![Nuvoton NuMicro NUC029 Series Скачать руководство пользователя страница 64](http://html1.mh-extra.com/html/nuvoton/numicro-nuc029-series/numicro-nuc029-series_technical-reference-manual_1720306064.webp)
NuMicro® NUC029LEE/NUC029SEE
32-bit Arm
®
Cortex
®
-M0 Microcontroller
Aug, 2018
Page
64
of
497
Rev 1.00
N
U
MICRO
®
N
UC02
9L
E
E
/N
UC029
S
E
E
T
E
CHN
ICA
L R
E
F
E
R
E
NC
E
M
A
NU
A
L
IRC Trim Control Register (SYS_IRCTCTL)
Register
Offset
R/W
Description
Reset Value
IRCTCTL
0x80
R/W
IRC Trim Control Register
0x0000_0000
31
30
29
28
27
26
25
24
Reserved
23
22
21
20
19
18
17
16
Reserved
15
14
13
12
11
10
9
8
Reserved
CLKERR_
STOP_EN
7
6
5
4
3
2
1
0
TRIM_RETRY_CNT
TRIM_LOOP
Reserved
TRIM_SEL
Bits
Description
[31:9]
Reserved
Reserved.
[8]
CLKERR_STOP_E
N
Clock Error Stop Enable Bit
0 = The trim operation is kept going if clock is inaccuracy.
1 = The trim operation is stopped if clock is inaccuracy.
[7:6]
TRIM_RETRY_CN
T
Trim Value Update Limitation Count
The field defines that how many times of HIRC trim value is updated by auto trim circuit
before the HIRC frequency locked.
Once the HIRC locked, the internal trim value update counter will be reset.
If the trim value update counter reached this limitation value and frequency of HIRC still
doesn’t lock, the auto trim operation will be disabled and TRIM_SEL will be cleared to 00.
00 = Trim retry count limitation is 64.
01 = Trim retry count limitation is 128.
10 = Trim retry count limitation is 256.
11 = Trim retry count limitation is 512.
[5:4]
TRIM_LOOP
Trim Calculation Loop
This field defines that trim value calculation is based on how many 32.768 kHz clocks in.
For example, if TRIM_LOOP is set as 00, auto trim circuit will calculate trim value based
on the average frequency difference in 4 32.768 kHz clock.
00 = Trim value calculation is based on average difference in 4 clocks.
01 = Trim value calculation is based on average difference in 8 clocks.
10 = Trim value calculation is based on average difference in 16 clocks.
11 = Trim value calculation is based on average difference in 32 clocks.
[3:2]
Reserved
Reserved.
[1:0]
TRIM_SEL
Trim Frequency Selection
This field indicates the target frequency of internal 22.1184 MHz high speed oscillator will
trim to precise 22.1184MHz or 24MHz automatically.