
M0A21/M0A23 Series
May 06, 2022
Page
147
of 746
Rev 1.02
M0
A21
/M
0
A
2
3
SE
RIES
TEC
H
NICAL
RE
FEREN
C
E
M
ANUAL
HIRC Trim Interrupt Status Register (SYS_HIRCTRIMSTS)
Register
Offset
R/W Description
Reset Value
SYS_HIRCTRIMSTS
0xF8
R/W HIRC 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
OVBDIF
CLKERIF
TFAILIF
FREQLOCK
Bits Description
[31:4]
Reserved
Reserved.
[3]
OVBDIF
Over Boundary Status
When the over boundary function is set, if there occurs the over boundary condition, this flag will be set.
0 = Over boundary coundition did not occur.
1 = Over boundary coundition occurred.
Note:
Write 1 to clear this flag.
[2]
CLKERIF
Clock Error Interrupt Status
When the frequency relation between reference clock and 48 MHz internal high speed RC oscillator (HIRC)
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 FREQSEL(SYS_HIRCTRIMCTL[1:0]) will be
cleared to 00 by hardware automatically if CESTOPEN(SYS_HIRCTRIMCTL[8]) is set to 1.
If this bit is set and CLKEIEN(SYS_HIRCTIEN[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 accuracy.
1 = Clock frequency is inaccuracy.
Note
: reset by powr on reset
[1]
TFAILIF
Trim Failure Interrupt Status
This bit indicates that HIRC trim value update limitation count reached and the HIRC clock frequency still
doesn’t
be
locked.
Once
this
bit
is
set,
the
auto
trim
operation
stopped
and
FREQSEL(SYS_HIRCTRIMCTL[1:0]) will be cleared to 00 by hardware automatically.
If this bit is set and TFAILIEN(SYS_HIRCIEN[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 does not reach.
1 = Trim value update limitation count reached and HIRC frequency still not locked.
Note
: reset by powr on reset
[0]
FREQLOCK
HIRC Frequency Lock Status
This bit indicates the HIRC frequency is locked.
This is a status bit and doesn’t trigger any interrupt