NuMicro® NUC029LEE/NUC029SEE
32-bit Arm
®
Cortex
®
-M0 Microcontroller
Aug, 2018
Page
67
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 Interrupt Status Register (SYS_IRCTSTS)
Register
Offset
R/W
Description
Reset Value
IRCTSTS
0x88
R/W
IRC Trim Interrupt Status 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
7
6
5
4
3
2
1
0
Reserved
CLKERR_INT
TRIM_FAIL_
INT
FREQ_LOCK
Bits
Description
[31:3]
Reserved
Reserved.
[2]
CLKERR_INT
Clock Error Interrupt Status
When the frequency of external 32.768 kHz low speed crystal or internal 22.1184 MHz
high speed oscillator is shift larger to unreasonable value, this bit will be set and to be an
indicate that clock frequency is inaccuracy
Once this bit is set to 1, the auto trim operation stopped and TRIM_SEL (IRCTCTL[1:0])
will be cleared to 00 by hardware automatically if CLKERR_STOP_EN (IRCTCTL[8]) is set
to 1.
If this bit is set and CLKERR_IEN
(IRCTIEN [2]) is high, an interrupt will be triggered to
notify the clock frequency is inaccuracy. Write 1 to clear this to 0.
0 = Clock frequency is accurate.
1 = Clock frequency is inaccurate.
[1]
TRIM_FAIL_INT
Trim Failure Interrupt Status
This bit indicates that internal 22.1184 MHz high speed oscillator trim value update
limitation count reached and the internal 22.1184 MHz high speed oscillator clock
frequency still doesn’t be locked. Once this bit is set, the auto trim operation stopped and
TRIM_SEL (IRCTCTL[1:0]) will be cleared to 00 by hardware automatically.
If this bit is set and TRIM_FAIL_IEN (IRCTIEN[1]) is high, an interrupt will be triggered to
notify that HIRC trim value update limitation count was reached. Write 1 to clear this to 0.
0 = Trim value update limitation count did not reach.
1 = Trim value update limitation count reached and internal 22.1184 MHz high speed
oscillator frequency was still not locked.
[0]
FREQ_LOCK
HIRC Frequency Lock Status
This bit indicates the internal 22.1184 MHz high speed oscillator frequency is locked.
This is a status bit and doesn’t trigger any interrupt.