
GD32F403xx User Manual
123
This bit is set by hardware when an error occurred. If any error of TRIMERR,
REFMISS or CKERR occurred, this bit will be set. When the ERRIE in CTC_CTL0
register is set, an interrupt occurs. This bit is cleared by writing 1 to ERRIC bit in
CTC_INTC register.
0: No Error occur
1: An error occur
1
CKWARNIF
Clock trim warning interrupt flag
This bit is set by hardware when a clock trim warning occurred. If the CTC trim
counter greater or equal to 3 x CKLIM and smaller to 128 x CKLIM when a
reference sync pulse detected, this bit will be set. This means the clock is too slow
or too fast, but can be trim to correct frequency. The TRIMVALUE add 2 or sub 2
when a clock trim warning occurred. When the CKWARNIE in CTC_CTL0 register
is set, an interrupt occurs. This bit is cleared by writing 1 to CKWARNIC bit in
CTC_INTC register.
0: No Clock trim warning occur
1: Clock trim warning occur
0
CKOKIF
Clock trim OK interrupt flag
This bit is set by hardware when the clock trim is OK. If the CTC trim counter
smaller to 3 x CKLIM when a reference sync pulse detected, this bit will be set.
This means the clock is OK to use. The TRIMVALUE need not to adjust or adjust
one step. When the CKOKIE in CTC_CTL0 register is, an interrupt occurs. This bit
is cleared by writing 1 to CKOKIC bit in CTC_INTC register.
0: No Clock trim OK occur
1: Clock trim OK occur
6.4.4.
Interrupt clear register (CTC_INTC)
Address offset: 0x0C
Reset value: 0x0000 0000
This register has to be accessed by word (32-bit).
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
EREFIC
ERRIC
CKWARN
IC
CKOK
IC
w
w
w
w
Bits
Fields
Descriptions
31:4
Reserved
Must be kept at reset value.
3
EREFIC
EREFIF interrupt clear bit
Содержание GD32F403 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F403xx Arm Cortex M4 32 bit MCU User Manual Revision 2 6 Jul 2022 ...
Страница 177: ...GD32F403xx UserManual 177 Peripheral Channel 0 Channel 1 Channel 2 Channel 3 Channel 4 SDIO SDIO ...
Страница 217: ...GD32F403xx UserManual 217 ensures that no conversion is in progress ...