www.geehy.com Page 235
Field
Name
R/W
Description
12
MONT
R/W Month Ten's Place Unit in BCD Format Setup
15:13 WEEKSEL R/W
Week Day Units Select
000: Disable
001: Monday
...
111: Sunday
19:16
YRU
R/W Year Ones Unit in BCD Format Setup
23:20
YRT
R/W ear Ten's Place Unit in BCD Format Setup
31:24
Reserved
RTC control register (RTC_CTRL)
(
1
)
The bits 7, 6 and 4 of this register can be written only in initialization
mode.
(
2
)
It is not recommended to rewrite this register when the number of hours
in the calendar increases, which is because the correct increment of
hours may be masked.
(
3
)
The written values of STCCFG and WTCCFG will take effect from next
second.
(
4
)
This register is under write protection.
Offset address: 0x08
Power-on reset value: 0x0000 0000
System reset: 0xXXXX XXXX
Field
Name
R/W
Description
2:0
WUCLKSEL R/W
Wakeup Clock Select
000
:
RTC/16
001
:
RTC/8
010
:
RTC/4
011
:
RTC/2
10x
:
clk_spre (usually 1Hz)
11x
:
clk_spre (usually 1Hz) and add 216 to WUAUTORE counter value
3
TSETECFG R/W
Time Stamp Event Trigger Edge Configure
This bit indicates that RTC_TS generates a timestamp event on rising
edge or falling edge.
0: Rising edge
1: Falling edge
This bit will be changed when TSEN=0.
4
RCLKDEN
R/W
RTC_REFIN reference clock detection enable
0: Disable
1: Enable
SPSC must be 0x00FF
5
RCMCFG
R/W
Read Calendar Value Mode Configure
0: The calendar value is read from the shadow register, and the shadow
register is updated every two RTCCLK cycles
1: The calendar value is read from the calendar counter
If the clock frequency of APB1 is lower than seven times of RTCCLK
frequency, RCMCFG must be set to 1.
6
TIMEFCFG
R/W
Time Format Configure
0: 24-hour/day format
1: AM/PM time format
7
Reserved
8
ALREN
R/W
Alarm A Function Enable
0: Disable
1: Enable
9
Reserved