
Rev. 1.00
405 of 576
January 28, 2022
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F54231/HT32F54241/HT32F54243/HT32F54253
18 Real T
ime Clock (RTC)
18 Real T
ime Clock (RTC)
RTC Compare Register – RTCCMP
This register defines a specific value to be compared with the RTC counter value.
Address:
0x004
Reset value: 0x0000_0000
31
30
29
28
27
26
25
24
Reserved
Type/Reset
23
22
21
20
19
18
17
16
RTCCMPV
Type/Reset RW 0 RW 0 RW 0 RW 0 RW 0 RW 0 RW 0 RW 0
15
14
13
12
11
10
9
8
RTCCMPV
Type/Reset RW 0 RW 0 RW 0 RW 0 RW 0 RW 0 RW 0 RW 0
7
6
5
4
3
2
1
0
RTCCMPV
Type/Reset RW 0 RW 0 RW 0 RW 0 RW 0 RW 0 RW 0 RW 0
Bits
Field
Descriptions
[23:0]
RTCCMPV RTC Compare Match Value
A match condition happens when the value in the RTCCNT register is equal to the
RTCCMP value. An interrupt can be generated if the CMIEN bit in the RTCIWEN
register is set. When the CMPCLR bit in the RTCCR register is set to 0 and a match
condition happens, the CMFLAG bit in the RTCSR register is set while the value in
the RTCCNT register is not affected and will continue to count until overflow. When
the CMPCLR bit is set to 1 and a match condition happens, the CMFLAG bit in the
RTCSR register is set and the RTCCNT register will be reset to zero and then the
counter continues to count.