
Rev. 1.00
375 of 486
July 31, 2018
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F50231/HT32F50241
17 Real T
ime Clock (RTC)
oscillators, the LDO and the CPU core if the corresponding wakeup enable bit CSECWEN is set.
When the RTC counter overflows or a compare match event occurs, it will generate an interrupt or
a wake up event determined by the corresponding interrupt or wakeup enable control bits, OVIEN
/ OVWEN or CMIEN / CMWEN bits, in the RTCIWEN register. Refer to the related register
definitions for more details.
RTCOUT Output Pin Configuration
The following table shows RTCOUT output format according to the mode, polarity and event
selection setting.
Table 40. RTCOUT Output Mode and Active Level Setting
ROWM
ROES
RTCOUT Output Waveform
0
(Pulse mode)
0
Compare match
RTCCMP
4
RTCCNT
3
4
5
T
R
RTCOUT (ROAP = 0)
RTCOUT (ROAP = 1)
ROLF
1
Second clock
RTCCMP
X
RTCCNT
3
4
5
T
R
T
R
T
R
RTCOUT (ROAP = 0)
RTCOUT (ROAP = 1)
ROLF
1
(Level mode)
0
Compare match
RTCCMP
4
RTCCNT
3
4
5
RTCOUT (ROAP = 0)
RTCOUT (ROAP = 1)
ROLF
→
1
Second clock
RTCCMP
X
RTCCNT
3
4
5
RTCOUT (ROAP = 0)
RTCOUT (ROAP = 1)
ROLF
→
→
T
R
: RTCOUT output pulse time = 1 / f
CK_RTC
→: Clear by software reading ROLF bit