6RTC
21
Copyright © 2018, www.
bluetrum.com. All Rights Reserved
21
Bit
Name
Mode
Default
Description
1:enable
Register 6-2RTCDAT: RTC data Register
Bit
Name
Mode
Default
Description
31:10
-
-
-
Unused
9:8
RTCMD
W
0x0
RTC cmd
00: data
01: read command
10: write command
11: reserve
7:0
RTCDAT
WR
x
RTC data
Register 6-3RTCCPND: RTC clear pending Register
Bit
Name
Mode
Default
Description
31:19
-
-
-
Unused
18
C1SPND
R
0
Write 1 will clear RTC 1S pending
17
CALMPND
R
0
Write 1 will clear RTC alarm pending
16:0
-
-
-
Unused
6.3
Independent Power RTC Registers
Register 6-4 RTCCNT: RTC counter Register
Bit
Name
Mode
Default
Description
31:0
RTCCNT
WR
0x0
32bit RTC counter
Register 6-5 RTCALM: RTC alarm Register
Bit
Name
Mode
Default
Description
31:0
RTCALM
WR
0xffffffff
32bit RTC alarm
Register 6-6 RTCCON0: RTC control Register 0
Bit
Name
Mode
Default
Description
7
PWRUP1ST
WR
1
RTC first power up flag
0: not first power up
1: first power up
6
EXT32KS
WR
0
External 32K select
0: use RTC internal 32K osc
1: use external 32K osc
5
RSV
WR
1
R
eserve, can’t be changed default value
4
RSV
WR
0
R
eserve, can’t be changed default value
3
RSV
WR
0
R
eserve, can’t be changed default value
2
RSV
WR
0
R
eserve, can’t be changed default value
1
X32KEN
WR
0
XOSC32K enable bit
0: disable
1: enable
0
RSV
WR
0
R
eserve, can’t be changed default value
Register 6-7 RTCCON1: RTC control Register 1
Bit
Name
Mode
Default
Description
7
-
-
-
Unused
6
VRTCEN
WR
0
VRTC enable bit, VRTC voltage for ADC
0: disable
1: enable
5
WKPAEN
WR
0
WK pin analog enable bit, output WKO voltage for ADC
0: disable
1: enable