
Rev. 1.00
378 of 486
July 31, 2018
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F50231/HT32F50241
17 Real T
ime Clock (RTC)
17 Real T
ime Clock (RTC)
RTC Control Register – RTCCR
This register specifies a range of RTC circuitry control bits.
Offset:
0x008
Reset value: 0x0000_0F00 (Reset by V
DD15
Power Domain reset only)
31
30
29
28
27
26
25
24
Reserved
Type/Reset
23
22
21
20
19
18
17
16
Reserved
ROLF
ROAP
ROWM
ROES
ROEN
Type/Reset
RC 0 RW 0 RW 0 RW 0 RW 0
15
14
13
12
11
10
9
8
Reserved
RPRE
Type/Reset
RW 1 RW 1 RW 1 RW 1
7
6
5
4
3
2
1
0
Reserved
LSESM
CMPCLR
LSEEN
Reserved RTCSRC
RTCEN
Type/Reset
RW 0 RW 0 RW 0
RW 0 RW 0
Bits
Field
Descriptions
[20]
ROLF
RTCOUT Level Mode Flag
0: RTCOUT Output is inactive
1: RTCOUT Output is holding as active level
Set by hardware when in the level mode (ROWM = 1) and an RTCOUT output event
occurred. Cleared by software reading this flag. The RTCOUT signal will return to
the inactive level after software has read this bit.
[19]
ROAP
RTCOUT Output Active Polarity
0: Active level is high
1: Active level is low
[18]
ROWM
RTCOUT Output Waveform Mode
0: Pulse mode
The output pulse duration is one RTC clock (CK_RTC) period.
1: Level mode
The RTCOUT signal will remain at an active level until the ROLF bit is cleared
by software reading the ROLF bit.
[17]
ROES
RTCOUT Output Event Selection
0: RTC compare match is selected
1: RTC second clock (CK_SECOND) event is selected
The ROES bit can be used to select whether the RTCOUT signal is output on the
RTCOUT pin when an RTC compare match event or the RTC second clock (CK_
SECOND) event occurs.
[16]
ROEN
RTCOUT Output Pin Enable
0: Disable RTCOUT output pin
1: Enable RTCOUT output pin
When the ROEN bit is set to 1, the RTCOUT signal will be at an active level once
a RTC compare match or the RTC second clock (CK_SECOND) event occurs. The
active polarity and output waveform mode can be configured by the ROAP and
ROWM bits respectively. When the ROEN bit is cleared to 0, the RTCOUT pin will
be in a floating state.