寄存器
请查看
寄存器访问类型
,了解 Access 列缩写的含义。
Base Address: 0x41008A00
Name |
Address offset |
Access |
Description |
|---|---|---|---|
000h |
R/W |
This register is the calendar time shadow register. This register is write protected, and must be written in initialization mode only |
|
004h |
R/W |
This register is write protected. Bit[7] (FMT) of this register can be written in initialization mode only when INITF = 1. ADD1H and SUB1H changes are effective in 2~3 seconds. Don’t write this register continuously without any delay when RTC is in free run mode. Software can use the RSF bit in RTC_ISR register to handle the delay. |
|
008h |
R/W |
The ALMF/WUTF/DOVTHF bit can be written without unlocking the write protection. Two APB clock cycles after programming it to 1, this bit is cleaned. |
|
00Ch |
R/W |
This register is write protected, and must be written in initialization mode only. |
|
010h |
R/W |
This register is write protected, and can be dynamically configured when RTC is running. |
|
014h |
R/W |
This register is write protected, and can be written only when ALMWF is set to 1 in RTC_ISR register, or in initialization mode. |
|
018h |
R/W |
This register is write protected, and can be written only when ALMWF is set to 1 in RTC_ISR register, or in initialization mode |
|
01Ch |
R/W |
Write "0xCA" then write "0x53" to disable write protection, and write "0xFF" to enable write protection. |
|
020h |
R/W |
This register is controlled by software. |
|
024h |
R/W |
This register is used to set wakeup timer value. |
|
028h |
R/W |
REG_RTC_TR
Name: RTC Time Register
Size: 32
Address offset: 000h
Read/write access: R/W
This register is the calendar time shadow register. This register is write protected, and must be
written in initialization mode only
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:23 |
DAY |
R/W |
0 |
DAY in binary format |
22 |
PM |
R/W |
0 |
PM:AM/PM notation
|
21:20 |
HT |
R/W |
0 |
Hour tens in BCD format |
19:16 |
HU |
R/W |
0 |
Hour units in BCD format |
15 |
RSVD |
R |
- |
Reserved |
14:12 |
MNT |
R/W |
0 |
Minute tens in BCD format |
11:8 |
MNU |
R/W |
0 |
Minute units in BCD format |
7 |
RSVD |
R |
- |
Reserved |
6:4 |
ST |
R/W |
0 |
Second tens in BCD format |
3:0 |
SU |
R/W |
0 |
Second units in BCD format |
REG_RTC_CR
Name: RTC Control Register
Size: 32
Address offset: 004h
Read/write access: R/W
This register is write protected. Bit[7] (FMT) of this register can be written in initialization
mode only when INITF = 1. ADD1H and SUB1H changes are effective in 2~3 seconds. Don’t write this
register continuously without any delay when RTC is in free run mode. Software can use the RSF bit
in RTC_ISR register to handle the delay.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:23 |
DAY_THRES |
R |
1FFh |
Day threshold in binary format |
22:17 |
RSVD |
R |
- |
Reserved |
16 |
DOVTHIE |
R/W |
0 |
Day over threshold interrupt enable
|
15 |
RSVD |
R |
- |
Reserved |
14 |
WUTIE |
R/W |
0 |
Wakeup timer interrupt enable
|
13 |
RSVD |
R |
- |
Reserved |
12 |
ALMIE |
R/W |
0 |
Alarm interrupt enable
|
11 |
RSVD |
R |
- |
Reserved |
10 |
WUTE |
R/W |
0 |
Wakeup timer enable
|
9 |
RSVD |
R |
- |
Reserved |
8 |
ALME |
R/W |
0 |
Alarm enable
|
7 |
FMT |
R/W |
0 |
Hour format
|
6:5 |
OSEL |
R/W |
0 |
Output selection. These bits are used to select the flag to be routed to RTC_OUT output.
|
4 |
RSVD |
R |
- |
Reserved |
3 |
BYPSHAD |
R/W |
0 |
Bypass the shadow registers.
|
2 |
BKP |
R/W |
0 |
Backup This bit can be written by the user to memorize whether the daylight saving time change has been performed or not. |
1 |
SUB1H |
R/W |
0 |
Subtract one hour (winter time changes) When this bit is set outside initialization mode, 1 hour is subtracted to the calendar time if the current hour is not 0, and this bit is always read as 0.
|
0 |
ADD1H |
R/W |
0 |
Add one hour (summer time changes) When this bit is set outside initialization mode, 1 hour is added to the calendar time, and this bit is always read as 0.
|
REG_RTC_ISR
Name: RTC Init Mode and Status Register
Size: 32
Address offset: 008h
Read/write access: R/W
The ALMF/WUTF/DOVTHF bit can be written without unlocking the write protection. Two APB clock cycles
after programming it to 1, this bit is cleaned.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:17 |
RSVD |
R |
- |
Reserved |
16 |
RECALPF |
R |
0 |
Recalibration pending flag The RECALPF status flag is automatically set to '1' when software writes to the RTC_CALIBR register, indicating that the RTCCALIBR register is blocked. When the new calibration settings are taken into account, this bit returns to '0'. Refer to Re-calibration on-the-fly. |
15 |
DOVTHF |
R/W |
0 |
Day over threshold flag This flag is set by hardware when the Day in RTC_TR over the DAY_THRES set in RTC_CR register. |
14:11 |
RSVD |
R |
- |
Reserved |
10 |
WUTF |
R/W |
0 |
Wakeup timer flag This flag is set by hardware when the wakeup auto-reload counter reaches to. This flag must be cleared by software at least 2 RTCCLK periods before WUTF is set to '1' again. |
9 |
RSVD |
R |
- |
Reserved |
8 |
ALMF |
R/W |
0 |
Alarm flag This flag is set by hardware when the time register (RTC_TR) matches the Alarm registers (RTC_ALMR1L and RTC_ALMR1H). |
7 |
INIT |
R/W |
0 |
Initialization mode
|
6 |
INITF |
R |
0 |
Initialization flag. When this bit is set to '1', the RTC is in initialization state, and the time, date, and prescaler registers can be updated.
|
5 |
RSF |
R/W |
0 |
Registers synchronization flag. This bit is set by hardware each time the calendar registers are copied into the shadow registers (RTC_TR). This bit is cleared by hardware in initialization mode or when in bypass shadow register mode (BYPSHAD=1). This bit can also be cleared by software. It is cleared either by software or by hardware in initialization mode.
|
4 |
INITS |
R |
0 |
This bit is set by hardware when the calendar day field is different from 0 (RTC domain reset state).
|
3 |
RSVD |
R |
- |
Reserved |
2 |
WUTWF |
R |
0 |
Wakeup timer write flag This flag is set by hardware when WUT value can be changed, after the WUTE bit has been set to '0' in RTC_CR.
|
1 |
WUTRSF |
R/W |
0 |
This bit is set by hardware each time the WUTE bit is copied into the shadow register. This bit is cleared by hardware in initialization mode. This bit can also be cleared by software. It is cleared either by software or by hardware in initialization mode.
|
0 |
ALMWF |
R |
0 |
Alarm write flag This bit is set by hardware when Alarm values can be changed, after the ALME bit has been set to '0' in RTC_CR. It is cleared by hardware when ALME bit has been set to '1' in RTC_CR.
|
REG_RTC_PRER
Name: RTC Prescaler Register
Size: 32
Address offset: 00Ch
Read/write access: R/W
This register is write protected, and must be written in initialization mode only.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:25 |
RSVD |
R |
- |
Reserved |
24:16 |
PREDIV_A |
R/W |
7Fh |
Asynchronous prescaler factor This is the asynchronous division factor: clk_apre freq = RTCCLK freq/(PREDIV_A + 1) |
15:9 |
RSVD |
R |
- |
Reserved |
8:0 |
PREDIV_S |
R/W |
FFh |
Synchronous prescaler factor This is the synchronous division factor: clk_spre freq = clk_apre freq/(PREDIV_S + 1) |
REG_RTC_CALIBR
Name: RTC Calibration Register
Size: 32
Address offset: 010h
Read/write access: R/W
This register is write protected, and can be dynamically configured when RTC is running.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:19 |
RSVD |
R |
- |
Reserved |
18:16 |
CALP |
R/W |
0 |
Calibration period |
15 |
DCE |
R/W |
0 |
Digital calibration enable
|
14 |
DCS |
R/W |
0 |
Digital calibration signal
|
13:7 |
RSVD |
R |
- |
Reserved |
6:0 |
DC |
R/W |
0 |
Digital calibration |
REG_RTC_ALMR1L
Name: RTC Alarm 1 Register Low
Size: 32
Address offset: 014h
Read/write access: R/W
This register is write protected, and can be written only when ALMWF is set to 1 in RTC_ISR
register, or in initialization mode.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:24 |
RSVD |
R |
- |
Reserved |
23 |
MSK2 |
R/W |
0 |
Alarm hour mask
|
22 |
ALR_PM |
R/W |
0 |
AM/PM notation.
|
21:20 |
ALR_HT |
R/W |
0 |
Hour tens in BCD format |
19:16 |
ALR_HU |
R/W |
0 |
Hour units in BCD format |
15 |
MSK1 |
R/W |
0 |
Alarm minutes mask.
|
14:12 |
ALR_MNT |
R/W |
0 |
Minute tens in BCD format |
11:8 |
ALR_MNU |
R/W |
0 |
Minute units in BCD format |
7 |
MSK0 |
R/W |
0 |
Alarm seconds mask
|
6:4 |
ALR_ST |
R/W |
0 |
Second tens in BCD format |
3:0 |
ALR_SU |
R/W |
0 |
Second units in BCD format |
REG_RTC_ALMR1H
Name: RTC Alarm 1 Register High
Size: 32
Address offset: 018h
Read/write access: R/W
This register is write protected, and can be written only when ALMWF is set to 1 in RTC_ISR
register, or in initialization mode
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:10 |
RSVD |
R |
- |
Reserved |
9 |
MSK3 |
R/W |
0 |
Alarm day mask
|
8:0 |
ALR_DAY |
R/W |
0 |
DAY in binary format |
REG_RTC_WPR
Name: RTC Write Protection Register
Size: 32
Address offset: 01Ch
Read/write access: R/W
Write "0xCA" then write "0x53" to disable write protection, and write "0xFF" to enable write
protection.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:0 |
KEY |
R/W |
0 |
Write protection key This byte is written by software. Refer to RTC register write protection for a description of how to unlock RTC register write protection. |
REG_RTC_YEAR
Name: RTC Year Register
Size: 32
Address offset: 020h
Read/write access: R/W
This register is controlled by software.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31 |
RESTORE |
R/W |
0 |
Reset Flag. Indicates whether any reset conditions have occurred (except POR/PDR/BOD), so that the bit is set to '1' before reset, and then the global variable that determines whether the recovery time information is needed depending on whether the bit is '1'. |
30:8 |
RSVD |
R |
- |
Reserved |
7:0 |
YEAR |
R/W |
0 |
Year in binary format |
REG_RTC_WUTR
Name: RTC Wakeup Timer Register
Size: 32
Address offset: 024h
Read/write access: R/W
This register is used to set wakeup timer value.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:17 |
RSVD |
R |
- |
Reserved |
16:0 |
WUT |
R/W |
0 |
Wakeup auto-reload value bits When the wakeup timer is enabled (WUTE is set to '1'), the WUTF flag is set every (WUT[16:0]+1) cycles. The first assertion of WUTF occurs between WUT and (WUT+1) cycles after WUTE is set. |
REG_RTC_DUMMY
Name: RTC Dummy Register
Size: 32
Address offset: 028h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:0 |
DUMMY |
R/W |
ffffh |
Dummy register |
Base Address: 0x4101B000
Name |
Address offset |
Access |
Description |
|---|---|---|---|
000h |
R/W |
This register is the calendar time shadow register. This register is write protected, and must be written in initialization mode only. |
|
004h |
R/W |
This register is write protected. Bit[7] (FMT) of this register can be written in initialization mode only when INITF = 1. ADD1H and SUB1H changes are effective in 2~3 seconds. Don’t write this register continuously without any delay when RTC is in free run mode. Software can use the RSF bit in RTC_ISR register to handle the delay. |
|
008h |
R/W |
The ALMF/WUTF/DOVTHF bit can be written without unlocking the write protection. Two APB clock cycles after programming it to 1, this bit is cleaned. |
|
00Ch |
R/W |
This register is write protected, and must be written in initialization mode only. |
|
010h |
R/W |
This register is write protected, and can be dynamically configured when RTC is running. |
|
014h |
R/W |
This register is write protected, and can be written only when ALMWF is set to 1 in RTC_ISR register, or in initialization mode. |
|
018h |
R/W |
This register is write protected, and can be written only when ALMWF is set to 1 in RTC_ISR register, or in initialization mode. |
|
01Ch |
R/W |
Write "0xCA"then write "0x53" to disable write protection, and write "0xFF" to enable write protection. |
|
020h |
R/W |
This register is controlled by software. |
|
024h |
R/W |
This register is used to set wakeup timer value. |
|
028h |
R/W |
REG_RTC_TR
Name: RTC Time Register
Size: 32
Address offset: 000h
Read/write access: R/W
This register is the calendar time shadow register. This register is write protected, and must be
written in initialization mode only.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:23 |
DAY |
R/W |
0 |
DAY in binary format |
22 |
PM |
R/W |
0 |
PM:AM/PM notation
|
21:20 |
HT |
R/W |
0 |
Hour tens in BCD format |
19:16 |
HU |
R/W |
0 |
Hour units in BCD format |
15 |
RSVD |
R |
- |
Reserved |
14:12 |
MNT |
R/W |
0 |
Minute tens in BCD format |
11:8 |
MNU |
R/W |
0 |
Minute units in BCD format |
7 |
RSVD |
R |
- |
Reserved |
6:4 |
ST |
R/W |
0 |
Second tens in BCD format |
3:0 |
SU |
R/W |
0 |
Second units in BCD format |
REG_RTC_CR
Name: RTC Ctrl Register
Size: 32
Address offset: 004h
Read/write access: R/W
This register is write protected. Bit[7] (FMT) of this register can be written in initialization
mode only when INITF = 1. ADD1H and SUB1H changes are effective in 2~3 seconds. Don’t write this
register continuously without any delay when RTC is in free run mode. Software can use the RSF bit
in RTC_ISR register to handle the delay.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:23 |
DAY_THRES |
R |
1FFh |
Day threshold in binary format |
22:17 |
RSVD |
R |
- |
Reserved |
16 |
DOVTHIE |
R/W |
0 |
Day over threshold interrupt enable
|
15 |
RSVD |
R |
- |
Reserved |
14 |
WUTIE |
R/W |
0 |
Wakeup timer interrupt enable
|
13 |
RSVD |
R |
- |
Reserved |
12 |
ALMIE |
R/W |
0 |
Alarm interrupt enable
|
11 |
RSVD |
R |
- |
Reserved |
10 |
WUTE |
R/W |
0 |
Wakeup timer enable
|
9 |
RSVD |
R |
- |
Reserved |
8 |
ALME |
R/W |
0 |
Alarm enable
|
7 |
FMT |
R/W |
0 |
Hour format
|
6:5 |
OSEL |
R/W |
0 |
Output selection. These bits are used to select the flag to be routed to RTC_OUT output.
|
4 |
RSVD |
R |
- |
Reserved |
3 |
BYPSHAD |
R/W |
0 |
Bypass the shadow registers
|
2 |
BKP |
R/W |
0 |
Backup This bit can be written by the user to memorize whether the daylight saving time change has been performed or not. |
1 |
SUB1H |
R/W |
0 |
Subtract one hour (winter time change) when this bit is set outside initialization mode, 1 hour is subtracted to the calendar time if the current hour is not 0, this bit is always read as 0.
|
0 |
ADD1H |
R/W |
0 |
Add one hour (summer time change) when this bit is set outside initialization mode, 1 hour is add to the calendar time, this bit is always read as 0.
|
REG_RTC_ISR
Name: RTC initialization and Status Register
Size: 32
Address offset: 008h
Read/write access: R/W
The ALMF/WUTF/DOVTHF bit can be written without unlocking the write protection. Two APB clock cycles
after programming it to 1, this bit is cleaned.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:17 |
RSVD |
R |
- |
Reserved |
16 |
RECALPF |
R |
0 |
Recalibration pending flag The RECALPF status flag is automatically set to '1' when software writes to the RTC_CALIBR register, indicating that the RTCCALIBR register is blocked. When the new calibration settings are taken into account, this bit returns to '0'. Refer to Re-calibration on-the-fly. |
15 |
DOVTHF |
R/W |
0 |
Day over threshold flag This flag is set by hardware when the Day in RTC_TR over the DAY_THRES set in RTC_CR register. |
14:11 |
RSVD |
R |
- |
Reserved |
10 |
WUTF |
R/W |
0 |
Wakeup timer flag This flag is set by hardware when the wakeup auto-reload counter reaches to. This flag must be cleared by software at least 2 RTCCLK periods before WUTF is set to '1' again. |
9 |
RSVD |
R |
- |
Reserved |
8 |
ALMF |
R/W |
0 |
Alarm flag This flag is set by hardware when the time register (RTC_TR) matches the Alarm registers (RTC_ALMR1L and RTC_ALMR1H). |
7 |
INIT |
R/W |
0 |
Initialization mode
|
6 |
INITF |
R |
0 |
Initialization flag When this bit is set to '1', the RTC is in initialization state, and the time, date, and prescaler registers can be updated.
|
5 |
RSF |
R/W |
0 |
Registers synchronization flag This bit is set by hardware each time the calendar registers are copied into the shadow registers (RTC_TR). This bit is cleared by hardware in initialization mode or when in bypass shadow register mode (BYPSHAD=1). This bit can also be cleared by software. It is cleared either by software or by hardware in initialization mode.
|
4 |
INITS |
R |
0 |
This bit is set by hardware when the calendar day field is different from 0 (RTC domain reset state).
|
3 |
RSVD |
R |
- |
Reserved |
2 |
WUTWF |
R |
0 |
Wakeup timer write flag This flag is set by hardware when WUT value can be changed, after the WUTE bit has been set to '0' in RTC_CR.
|
1 |
WUTRSF |
R/W |
0 |
This bit is set by hardware each time the WUTE bit is copied into the shadow register. This bit is cleared by hardware in initialization mode. This bit can also be cleared by software. It is cleared either by software or by hardware in initialization mode.
|
0 |
ALMWF |
R |
0 |
Alarm write flag This bit is set by hardware when Alarm values can be changed, after the ALME bit has been set to '0' in RTC_CR. It is cleared by hardware when ALME bit has been set to '1' in RTC_CR.
|
REG_RTC_PRER
Name: RTC Prescaler Register
Size: 32
Address offset: 00Ch
Read/write access: R/W
This register is write protected, and must be written in initialization mode only.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:25 |
RSVD |
R |
- |
Reserved |
24:16 |
PREDIV_A |
R/W |
7Fh |
Asynchronous prescaler factor This is the asynchronous division factor: clk_apre freq = RTCCLK freq/(PREDIV_A + 1) |
15:9 |
RSVD |
R |
- |
Reserved |
8:0 |
PREDIV_S |
R/W |
FFh |
Synchronous prescaler factor This is the synchronous division factor: clk_spre freq = clk_apre freq/(PREDIV_S + 1) |
REG_RTC_CALIBR
Name: RTC Calibration Register
Size: 32
Address offset: 010h
Read/write access: R/W
This register is write protected, and can be dynamically configured when RTC is running.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:19 |
RSVD |
R |
- |
Reserved |
18:16 |
CALP |
R/W |
0 |
Calibration period |
15 |
DCE |
R/W |
0 |
Digital calibration enable
|
14 |
DCS |
R/W |
0 |
Digital calibration signal
|
13:7 |
RSVD |
R |
- |
Reserved |
6:0 |
DC |
R/W |
0 |
Digital calibration |
REG_RTC_ALMR1L
Name: RTC Alarm 1 Register Low
Size: 32
Address offset: 014h
Read/write access: R/W
This register is write protected, and can be written only when ALMWF is set to 1 in RTC_ISR
register, or in initialization mode.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:24 |
RSVD |
R |
- |
Reserved |
23 |
MSK2 |
R/W |
0 |
Alarm hour mask
|
22 |
ALR_PM |
R/W |
0 |
AM/PM notation
|
21:20 |
ALR_HT |
R/W |
0 |
Hour tens in BCD format |
19:16 |
ALR_HU |
R/W |
0 |
Hour units in BCD format |
15 |
MSK1 |
R/W |
0 |
Alarm minutes mask.
|
14:12 |
ALR_MNT |
R/W |
0 |
Minute tens in BCD format |
11:8 |
ALR_MNU |
R/W |
0 |
Minute units in BCD format |
7 |
MSK0 |
R/W |
0 |
Alarm seconds mask
|
6:4 |
ALR_ST |
R/W |
0 |
Second tens in BCD format |
3:0 |
ALR_SU |
R/W |
0 |
Second units in BCD format |
REG_RTC_ALMR1H
Name: RTC Alarm 1 Register High
Size: 32
Address offset: 018h
Read/write access: R/W
This register is write protected, and can be written only when ALMWF is set to 1 in RTC_ISR
register, or in initialization mode.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:10 |
RSVD |
R |
- |
Reserved |
9 |
MSK3 |
R/W |
0 |
Alarm day mask
|
8:0 |
ALR_DAY |
R/W |
0 |
DAY in binary format |
REG_RTC_WPR
Name: RTC Write Protect Register
Size: 32
Address offset: 01Ch
Read/write access: R/W
Write "0xCA"then write "0x53" to disable write protection, and write "0xFF" to enable write
protection.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:0 |
KEY |
R/W |
0 |
Write protection key This byte is written by software. Refer to RTC register write protection for a description of how to unlock RTC register write protection. |
REG_RTC_YEAR
Name: RTC Year Register
Size: 32
Address offset: 020h
Read/write access: R/W
This register is controlled by software.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31 |
RESTORE |
R/W |
0 |
Reset Flag. Indicates whether any reset conditions have occurred (except POR/PDR/BOD), so that the bit is set to '1' before reset, and then the global variable that determines whether the recovery time information is needed depending on whether the bit is '1'. |
30:8 |
RSVD |
R |
- |
Reserved |
7:0 |
YEAR |
R/W |
0 |
Year in binary format |
REG_RTC_WUTR
Name: RTC Wakeup Timer Register
Size: 32
Address offset: 024h
Read/write access: R/W
This register is used to set wakeup timer value.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:17 |
RSVD |
R |
- |
Reserved |
16:0 |
WUT |
R/W |
0 |
Wakeup auto-reload value bits When the wakeup timer is enabled (WUTE is set to '1'), the WUTF flag is set every (WUT[16:0]+1) cycles. The first assertion of WUTF occurs between WUT and (WUT+1) cycles after WUTE is set. |
REG_RTC_DUMMY
Name: RTC Dummy Register
Size: 32
Address offset: 028h
Read/write access: R/W
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:0 |
DUMMY |
R/W |
ffffh |
Dummy register |
REGISTER_CONTENTS=RTL8720E
REGISTER_CONTENTS=RTL8720E
REGISTER_CONTENTS=RTL8720E
Base Address: 0x4200E000
Name |
Address offset |
Access |
Description |
|---|---|---|---|
000h |
R/W |
This register is the calendar time shadow register. This register is write protected, and must be written in initialization mode only |
|
004h |
R/W |
This register is write protected. Bit[7] (FMT) of this register can be written in initialization mode only when INITF = 1. ADD1H and SUB1H changes are effective in 2~3 seconds. Don’t write this register continuously without any delay when RTC is in free run mode. Software can use the RSF bit in RTC_ISR register to handle the delay. |
|
008h |
R/W |
RTC Initialization mode and status register,The ALMF bit can be written without unlocking the write protection. Two APB clock cycles after programming it to 1, this bit is cleaned. |
|
00Ch |
R/W |
This register is write protected, and must be written in initialization mode only. |
|
010h |
R/W |
This register is write protected, and can be dynamically configured when RTC is running |
|
014h |
R/W |
This register is write protected, and can be written only when ALMWF is set to 1 in RTC_ISR register, or in initialization mode. |
|
018h |
R/W |
This register is write protected, and can be written only when ALMWF is set to 1 in RTC_ISR register, or in initialization mode |
|
01Ch |
R/W |
RTC write protection register,write "0xCA"then write "0x53" disable write protect,write "0xFF" enable write protect |
|
020h |
R/W |
RTC year register,this register is controlled by software |
|
024h |
R/W |
RTC wakeup timer register,set wakeup timer value. |
REG_RTC_TR
Name: RTC Time Reg
Size: 32
Address offset: 000h
Read/write access: R/W
This register is the calendar time shadow register. This register is write protected, and must be
written in initialization mode only
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:23 |
DAY |
R/W |
0 |
DAY in binary format |
22 |
PM |
R/W |
0 |
PM:AM/PM notation
|
21:20 |
HT |
R/W |
0 |
Hour tens in BCD format |
19:16 |
HU |
R/W |
0 |
Hour units in BCD format |
15 |
RSVD |
R |
- |
Reserved |
14:12 |
MNT |
R/W |
0 |
Minute tens in BCD format |
11:8 |
MNU |
R/W |
0 |
Minute units in BCD format |
7 |
RSVD |
R |
- |
Reserved |
6:4 |
ST |
R/W |
0 |
Second tens in BCD format |
3:0 |
SU |
R/W |
0 |
Second units in BCD format |
REG_RTC_CR
Name: RTC Ctrl Reg
Size: 32
Address offset: 004h
Read/write access: R/W
This register is write protected. Bit[7] (FMT) of this register can be written in initialization
mode only when INITF = 1. ADD1H and SUB1H changes are effective in 2~3 seconds. Don’t write this
register continuously without any delay when RTC is in free run mode. Software can use the RSF bit
in RTC_ISR register to handle the delay.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:23 |
DAY_THRES |
R |
1FFh |
Day threshold in binary format |
22:17 |
RSVD |
R |
- |
Reserved |
16 |
DOVTHIE |
R/W |
0 |
Day over threshold interrupt enable
|
15 |
RSVD |
R |
- |
Reserved |
14 |
WUTIE |
R/W |
0 |
Wakeup timer interrupt enable
|
13 |
RSVD |
R |
- |
Reserved |
12 |
ALMIE |
R/W |
0 |
Alarm interrupt enable
|
11 |
RSVD |
R |
- |
Reserved |
10 |
WUTE |
R/W |
0 |
Wakeup timer enable
|
9 |
RSVD |
R |
- |
Reserved |
8 |
ALME |
R/W |
0 |
Alarm enable
|
7 |
FMT |
R/W |
0 |
Hour format
|
6:5 |
OSEL |
R/W |
0 |
Output selection.There bits are used to select the flag to be routed to RTC_OUT output.
|
4 |
RSVD |
R |
- |
Reserved |
3 |
BYPSHAD |
R/W |
0 |
Bypass the shadow registers.
|
2 |
BKP |
R/W |
0 |
Backup This bit can be written by the user to memorize whether the daylight saving time change has been performed or not. |
1 |
SUB1H |
R/W |
0 |
Subtract one hour(winter time change),when this bit is set outside initialization mode,1 hour is subtracted to the calendar time if the current hour is not 0,this bit is always read as 0.
|
0 |
ADD1H |
R/W |
0 |
Add one hour(summer time change),when this bit is set outside initialization mode,1 hour is add to the calendar time,this bit is always read as 0.
|
REG_RTC_ISR
Name: RTC Init And Status Reg
Size: 32
Address offset: 008h
Read/write access: R/W
RTC Initialization mode and status register,The ALMF bit can be written without unlocking the write
protection. Two APB clock cycles after programming it to 1, this bit is cleaned.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:17 |
RSVD |
R |
- |
Reserved |
16 |
RECALPF |
R |
0 |
Recalibration pending flag The RECALPF status flag is automatically set to '1' when software writes to the RTC_CALIBR register, indicating that the RTCCALIBR register is blocked. When the new calibration settings are taken into account, this bit returns to '0'. Refer to Re-calibration on-the-fly. |
15 |
DOVTHF |
R/W |
0 |
Day over threshold flag This flag is set by hardware when the Day in RTC_TR over the DAY_THRES set in RTC_CR register. |
14:11 |
RSVD |
R |
- |
Reserved |
10 |
WUTF |
R/W |
0 |
Wakeup timer flag This flag is set by hardware when the wakeup auto-reload counter reaches to. This flag must be cleared by software at least 2 RTCCLK periods before WUTF is set to '1' again. |
9 |
RSVD |
R |
- |
Reserved |
8 |
ALMF |
R/W |
0 |
Alarm flag This flag is set by hardware when the time register (RTC_TR) matches the Alarm registers (RTC_ALMR1L and RTC_ALMR1H). |
7 |
INIT |
R/W |
0 |
Initialization mode
|
6 |
INITF |
R |
0 |
Initialization flag. When this bit is set to '1', the RTC is in initialization state, and the time, date, and prescaler registers can be updated.
|
5 |
RSF |
R/W |
0 |
Registers synchronization flag. This bit is set by hardware each time the calendar registers are copied into the shadow registers (RTC_TR). This bit is cleared by hardware in initialization mode or when in bypass shadow register mode (BYPSHAD=1). This bit can also be cleared by software. It is cleared either by software or by hardware in initialization mode.
|
4 |
INITS |
R |
0 |
This bit is set by hardware when the calendar day field is different from 0 (RTC domain reset state).
|
3 |
RSVD |
R |
- |
Reserved |
2 |
WUTWF |
R |
0 |
Wakeup timer write flag This flag is set by hardware when WUT value can be changed, after the WUTE bit has been set to '0' in RTC_CR.
|
1 |
WUTRSF |
R/W |
0 |
This bit is set by hardware each time the WUTE bit is copied into the shadow register. This bit is cleared by hardware in initialization mode. This bit can also be cleared by software. It is cleared either by software or by hardware in initialization mode.
|
0 |
ALMWF |
R |
0 |
Alarm write flag This bit is set by hardware when Alarm values can be changed, after the ALME bit has been set to '0' in RTC_CR. It is cleared by hardware when ALME bit has been set to '1' in RTC_CR.
|
REG_RTC_PRER
Name: RTC Prescaler Reg
Size: 32
Address offset: 00Ch
Read/write access: R/W
This register is write protected, and must be written in initialization mode only.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:25 |
RSVD |
R |
- |
Reserved |
24:16 |
PREDIV_A |
R/W |
7Fh |
Asynchronous prescaler factor This is the asynchronous division factor: clk_apre freq = RTCCLK freq/(PREDIV_A + 1) |
15:9 |
RSVD |
R |
- |
Reserved |
8:0 |
PREDIV_S |
R/W |
FFh |
Synchronous prescaler factor This is the synchronous division factor: clk_spre freq = clk_apre freq/(PREDIV_S + 1) |
REG_RTC_CALIBR
Name: RTC Calibration Reg
Size: 32
Address offset: 010h
Read/write access: R/W
This register is write protected, and can be dynamically configured when RTC is running
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:19 |
RSVD |
R |
- |
Reserved |
18:16 |
CALP |
R/W |
0 |
Calibration period |
15 |
DCE |
R/W |
0 |
Digital calibration enable
|
14 |
DCS |
R/W |
0 |
Digital calibration signal
|
13:7 |
RSVD |
R |
- |
Reserved |
6:0 |
DC |
R/W |
0 |
Digital calibration |
REG_RTC_ALMR1L
Name: RTC Alarm 1 Reg Low
Size: 32
Address offset: 014h
Read/write access: R/W
This register is write protected, and can be written only when ALMWF is set to 1 in RTC_ISR
register, or in initialization mode.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:24 |
RSVD |
R |
- |
Reserved |
23 |
MSK2 |
R/W |
0 |
Alarm hour mask
|
22 |
ALR_PM |
R/W |
0 |
AM/PM notation.
|
21:20 |
ALR_HT |
R/W |
0 |
Hour tens in BCD format |
19:16 |
ALR_HU |
R/W |
0 |
Hour units in BCD format |
15 |
MSK1 |
R/W |
0 |
Alarm minutes mask.
|
14:12 |
ALR_MNT |
R/W |
0 |
Minute tens in BCD format |
11:8 |
ALR_MNU |
R/W |
0 |
Minute units in BCD format |
7 |
MSK0 |
R/W |
0 |
Alarm seconds mask
|
6:4 |
ALR_ST |
R/W |
0 |
Second tens in BCD format |
3:0 |
ALR_SU |
R/W |
0 |
Second units in BCD format |
REG_RTC_ALMR1H
Name: - RTC Alarm 1 Reg High
Size: 32
Address offset: 018h
Read/write access: R/W
This register is write protected, and can be written only when ALMWF is set to 1 in RTC_ISR
register, or in initialization mode
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:10 |
RSVD |
R |
- |
Reserved |
9 |
MSK3 |
R/W |
0 |
Alarm day mask
|
8:0 |
ALR_DAY |
R/W |
0 |
DAY in binary format |
REG_RTC_WPR
Name: RTC Write Protect Reg
Size: 32
Address offset: 01Ch
Read/write access: R/W
RTC write protection register,write "0xCA"then write "0x53" disable write protect,write "0xFF"
enable write protect
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:0 |
KEY |
R/W |
0 |
Write protection key This byte is written by software. Refer to RTC register write protection for a description of how to unlock RTC register write protection. |
REG_RTC_YEAR
Name: RTC Year Reg
Size: 32
Address offset: 020h
Read/write access: R/W
RTC year register,this register is controlled by software
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31 |
RESTORE |
R/W |
0 |
Reset Flag. Indicates whether any reset conditions have occurred (except POR/PDR/BOD), so that the bit is set to '1' before reset, and then the global variable that determines whether the recovery time information is needed depending on whether the bit is '1'. |
30:8 |
RSVD |
R |
- |
Reserved |
7:0 |
YEAR |
R/W |
0 |
Year in binary format |
REG_RTC_WUTR
Name: RTC Wakeup Timer Reg
Size: 32
Address offset: 024h
Read/write access: R/W
RTC wakeup timer register,set wakeup timer value.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:17 |
RSVD |
R |
- |
Reserved |
16:0 |
WUT |
R/W |
0 |
Wakeup auto-reload value bits When the wakeup timer is enabled (WUTE is set to '1'), the WUTF flag is set every (WUT[16:0]+1) cycles. The first assertion of WUTF occurs between WUT and (WUT+1) cycles after WUTE is set. |
Base Address: 0x4080AA00
Name |
Address offset |
Access |
Description |
|---|---|---|---|
000h |
R/W |
This register is the calendar time shadow register. This register is write protected, and must be written in initialization mode only |
|
004h |
R/W |
This register is write protected. Bit[7] (FMT) of this register can be written in initialization mode only when INITF = 1. ADD1H and SUB1H changes are effective in 2~3 seconds. Don’t write this register continuously without any delay when RTC is in free run mode. Software can use the RSF bit in RTC_ISR register to handle the delay. |
|
008h |
R/W |
RTC Initialization mode and status register,The ALMF/WUTF/DOVTHF bit can be written without unlocking the write protection. Two APB clock cycles after programming it to 1, this bit is cleaned. |
|
00Ch |
R/W |
This register is write protected, and must be written in initialization mode only. |
|
010h |
R/W |
This register is write protected, and can be dynamically configured when RTC is running |
|
014h |
R/W |
This register is write protected, and can be written only when ALMWF is set to 1 in RTC_ISR register, or in initialization mode. |
|
018h |
R/W |
This register is write protected, and can be written only when ALMWF is set to 1 in RTC_ISR register, or in initialization mode |
|
01Ch |
R/W |
RTC write protection register,write "0xCA"then write "0x53" disable write protect,write "0xFF" enable write protect |
|
020h |
R/W |
RTC year register,this register is controlled by software |
|
024h |
R/W |
RTC wakeup timer register,set wakeup timer value. |
|
028h |
R/W |
Dummy register |
REG_RTC_TR
Name: RTC Time Reg
Size: 32
Address offset: 000h
Read/write access: R/W
This register is the calendar time shadow register. This register is write protected, and must be
written in initialization mode only
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:23 |
DAY |
R/W |
0 |
DAY in binary format |
22 |
PM |
R/W |
0 |
PM:AM/PM notation
|
21:20 |
HT |
R/W |
0 |
Hour tens in BCD format |
19:16 |
HU |
R/W |
0 |
Hour units in BCD format |
15 |
RSVD |
R |
- |
Reserved |
14:12 |
MNT |
R/W |
0 |
Minute tens in BCD format |
11:8 |
MNU |
R/W |
0 |
Minute units in BCD format |
7 |
RSVD |
R |
- |
Reserved |
6:4 |
ST |
R/W |
0 |
Second tens in BCD format |
3:0 |
SU |
R/W |
0 |
Second units in BCD format |
REG_RTC_CR
Name: RTC Ctrl Reg
Size: 32
Address offset: 004h
Read/write access: R/W
This register is write protected. Bit[7] (FMT) of this register can be written in initialization
mode only when INITF = 1. ADD1H and SUB1H changes are effective in 2~3 seconds. Don’t write this
register continuously without any delay when RTC is in free run mode. Software can use the RSF bit
in RTC_ISR register to handle the delay.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:23 |
DAY_THRES |
R |
1FFh |
Day threshold in binary format |
22:18 |
RSVD |
R |
- |
Reserved |
17 |
CLKDIV2_EN |
R/W |
1 |
Rtc_clk/rtc_bclk use divided clock enable
|
16 |
DOVTHIE |
R/W |
0 |
Day over threshold interrupt enable
|
15 |
RSVD |
R |
- |
Reserved |
14 |
WUTIE |
R/W |
0 |
Wakeup timer interrupt enable
|
13 |
RSVD |
R |
- |
Reserved |
12 |
ALMIE |
R/W |
0 |
Alarm interrupt enable
|
11 |
RSVD |
R |
- |
Reserved |
10 |
WUTE |
R/W |
0 |
Wakeup timer enable
|
9 |
RSVD |
R |
- |
Reserved |
8 |
ALME |
R/W |
0 |
Alarm enable
|
7 |
FMT |
R/W |
0 |
Hour format
|
6:5 |
OSEL |
R/W |
0 |
Output selection.There bits are used to select the flag to be routed to RTC_OUT output.
|
4 |
RSVD |
R |
- |
Reserved |
3 |
BYPSHAD |
R/W |
0 |
Bypass the shadow registers.
|
2 |
BKP |
R/W |
0 |
Backup This bit can be written by the user to memorize whether the daylight saving time change has been performed or not. |
1 |
SUB1H |
R/W |
0 |
Subtract one hour(winter time change),when this bit is set outside initialization mode,1 hour is subtracted to the calendar time if the current hour is not 0,this bit is always read as 0.
|
0 |
ADD1H |
R/W |
0 |
Add one hour(summer time change),when this bit is set outside initialization mode,1 hour is add to the calendar time,this bit is always read as 0.
|
REG_RTC_ISR
Name: RTC Init And Status Reg
Size: 32
Address offset: 008h
Read/write access: R/W
RTC Initialization mode and status register,The ALMF/WUTF/DOVTHF bit can be written without
unlocking the write protection. Two APB clock cycles after programming it to 1, this bit is cleaned.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:17 |
RSVD |
R |
- |
Reserved |
16 |
RECALPF |
R |
0 |
Recalibration pending flag The RECALPF status flag is automatically set to '1' when software writes to the RTC_CALIBR register, indicating that the RTCCALIBR register is blocked. When the new calibration settings are taken into account, this bit returns to '0'. Refer to Re-calibration on-the-fly. |
15 |
DOVTHF |
R/W |
0 |
Day over threshold flag This flag is set by hardware when the Day in RTC_TR over the DAY_THRES set in RTC_CR register. |
14:11 |
RSVD |
R |
- |
Reserved |
10 |
WUTF |
R/W |
0 |
Wakeup timer flag This flag is set by hardware when the wakeup auto-reload counter reaches to. This flag must be cleared by software at least 2 RTCCLK periods before WUTF is set to '1' again. |
9 |
RSVD |
R |
- |
Reserved |
8 |
ALMF |
R/W |
0 |
Alarm flag This flag is set by hardware when the time register (RTC_TR) matches the Alarm registers (RTC_ALMR1L and RTC_ALMR1H). |
7 |
INIT |
R/W |
0 |
Initialization mode
|
6 |
INITF |
R |
0 |
Initialization flag. When this bit is set to '1', the RTC is in initialization state, and the time, date, and prescaler registers can be updated.
|
5 |
RSF |
R/W |
0 |
Registers synchronization flag. This bit is set by hardware each time the calendar registers are copied into the shadow registers (RTC_TR). This bit is cleared by hardware in initialization mode or when in bypass shadow register mode (BYPSHAD=1). This bit can also be cleared by software. It is cleared either by software or by hardware in initialization mode.
|
4 |
INITS |
R |
0 |
This bit is set by hardware when the calendar day field is different from 0 (RTC domain reset state).
|
3 |
RSVD |
R |
- |
Reserved |
2 |
WUTWF |
R |
0 |
Wakeup timer write flag This flag is set by hardware when WUT value can be changed, after the WUTE bit has been set to '0' in RTC_CR.
|
1 |
WUTRSF |
R/W |
0 |
This bit is set by hardware each time the WUTE bit is copied into the shadow register. This bit is cleared by hardware in initialization mode. This bit can also be cleared by software. It is cleared either by software or by hardware in initialization mode.
|
0 |
ALMWF |
R |
0 |
Alarm write flag This bit is set by hardware when Alarm values can be changed, after the ALME bit has been set to '0' in RTC_CR. It is cleared by hardware when ALME bit has been set to '1' in RTC_CR.
|
REG_RTC_PRER
Name: RTC Prescaler Reg
Size: 32
Address offset: 00Ch
Read/write access: R/W
This register is write protected, and must be written in initialization mode only.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:25 |
RSVD |
R |
- |
Reserved |
24:16 |
PREDIV_A |
R/W |
7Fh |
Asynchronous prescaler factor This is the asynchronous division factor: clk_apre freq = RTCCLK freq/(PREDIV_A + 1) |
15:9 |
RSVD |
R |
- |
Reserved |
8:0 |
PREDIV_S |
R/W |
FFh |
Synchronous prescaler factor This is the synchronous division factor: clk_spre freq = clk_apre freq/(PREDIV_S + 1) |
REG_RTC_CALIBR
Name: RTC Calibration Reg
Size: 32
Address offset: 010h
Read/write access: R/W
This register is write protected, and can be dynamically configured when RTC is running
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:19 |
RSVD |
R |
- |
Reserved |
18:16 |
CALP |
R/W |
0 |
Calibration period |
15 |
DCE |
R/W |
0 |
Digital calibration enable
|
14 |
DCS |
R/W |
0 |
Digital calibration signal
|
13:7 |
RSVD |
R |
- |
Reserved |
6:0 |
DC |
R/W |
0 |
Digital calibration |
REG_RTC_ALMR1L
Name: RTC Alarm 1 Reg Low
Size: 32
Address offset: 014h
Read/write access: R/W
This register is write protected, and can be written only when ALMWF is set to 1 in RTC_ISR
register, or in initialization mode.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:24 |
RSVD |
R |
- |
Reserved |
23 |
MSK2 |
R/W |
0 |
Alarm hour mask
|
22 |
ALR_PM |
R/W |
0 |
AM/PM notation.
|
21:20 |
ALR_HT |
R/W |
0 |
Hour tens in BCD format |
19:16 |
ALR_HU |
R/W |
0 |
Hour units in BCD format |
15 |
MSK1 |
R/W |
0 |
Alarm minutes mask.
|
14:12 |
ALR_MNT |
R/W |
0 |
Minute tens in BCD format |
11:8 |
ALR_MNU |
R/W |
0 |
Minute units in BCD format |
7 |
MSK0 |
R/W |
0 |
Alarm seconds mask
|
6:4 |
ALR_ST |
R/W |
0 |
Second tens in BCD format |
3:0 |
ALR_SU |
R/W |
0 |
Second units in BCD format |
REG_RTC_ALMR1H
Name: - RTC Alarm 1 Reg High
Size: 32
Address offset: 018h
Read/write access: R/W
This register is write protected, and can be written only when ALMWF is set to 1 in RTC_ISR
register, or in initialization mode
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:10 |
RSVD |
R |
- |
Reserved |
9 |
MSK3 |
R/W |
0 |
Alarm day mask
|
8:0 |
ALR_DAY |
R/W |
0 |
DAY in binary format |
REG_RTC_WPR
Name: RTC Write Protect Reg
Size: 32
Address offset: 01Ch
Read/write access: R/W
RTC write protection register,write "0xCA"then write "0x53" disable write protect,write "0xFF"
enable write protect
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:0 |
KEY |
R/W |
0 |
Write protection key This byte is written by software. Refer to RTC register write protection for a description of how to unlock RTC register write protection.RTC write protection register,write "0xCA"then write "0x53" disable write protect,write "0xFF" enable write protect |
REG_RTC_YEAR
Name: RTC Year Reg
Size: 32
Address offset: 020h
Read/write access: R/W
RTC year register,this register is controlled by software
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31 |
RESTORE |
R/W |
0 |
Reset Flag. Indicates whether any reset conditions have occurred (except POR/PDR/BOD), so that the bit is set to '1' before reset, and then the global variable that determines whether the recovery time information is needed depending on whether the bit is '1'. |
30:8 |
RSVD |
R |
- |
Reserved |
7:0 |
YEAR |
R/W |
0 |
Year in binary format |
REG_RTC_WUTR
Name: RTC Wakeup Timer Reg
Size: 32
Address offset: 024h
Read/write access: R/W
RTC wakeup timer register,set wakeup timer value.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:17 |
RSVD |
R |
- |
Reserved |
16:0 |
WUT |
R/W |
0 |
Wakeup auto-reload value bits When the wakeup timer is enabled (WUTE is set to '1'), the WUTF flag is set every (WUT[16:0]+1) cycles. The first assertion of WUTF occurs between WUT and (WUT+1) cycles after WUTE is set. |
REG_RTC_DUMMY
Name: RTC Dummy Register
Size: 32
Address offset: 028h
Read/write access: R/W
Dummy register
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:0 |
DUMMY |
R/W |
ffffh |
Dummy register |
Base Address: 0x40801A00
Name |
Address offset |
Access |
Description |
|---|---|---|---|
000h |
R/W |
This register is the calendar time shadow register. This register is write protected, and must be written in initialization mode only |
|
004h |
R/W |
This register is write protected. Bit[7] (FMT) of this register can be written in initialization mode only when INITF = 1. ADD1H and SUB1H changes are effective in 2~3 seconds. Don’t write this register continuously without any delay when RTC is in free run mode. Software can use the RSF bit in RTC_ISR register to handle the delay. |
|
008h |
R/W |
RTC Initialization mode and status register,The ALMF/WUTF/DOVTHF bit can be written without unlocking the write protection. Two APB clock cycles after programming it to 1, this bit is cleaned. |
|
00Ch |
R/W |
This register is write protected, and must be written in initialization mode only. |
|
010h |
R/W |
This register is write protected, and can be dynamically configured when RTC is running |
|
014h |
R/W |
This register is write protected, and can be written only when ALMWF is set to 1 in RTC_ISR register, or in initialization mode. |
|
018h |
R/W |
This register is write protected, and can be written only when ALMWF is set to 1 in RTC_ISR register, or in initialization mode |
|
01Ch |
R/W |
RTC write protection register,write "0xCA"then write "0x53" disable write protect,write "0xFF" enable write protect |
|
020h |
R/W |
RTC year register,this register is controlled by software |
|
024h |
R/W |
RTC wakeup timer register,set wakeup timer value. |
|
028h |
R/W |
Dummy register |
REG_RTC_TR
Name: RTC Time Reg
Size: 32
Address offset: 000h
Read/write access: R/W
This register is the calendar time shadow register. This register is write protected, and must be
written in initialization mode only
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:23 |
DAY |
R/W |
0 |
DAY in binary format |
22 |
PM |
R/W |
0 |
PM:AM/PM notation
|
21:20 |
HT |
R/W |
0 |
Hour tens in BCD format |
19:16 |
HU |
R/W |
0 |
Hour units in BCD format |
15 |
RSVD |
R |
- |
Reserved |
14:12 |
MNT |
R/W |
0 |
Minute tens in BCD format |
11:8 |
MNU |
R/W |
0 |
Minute units in BCD format |
7 |
RSVD |
R |
- |
Reserved |
6:4 |
ST |
R/W |
0 |
Second tens in BCD format |
3:0 |
SU |
R/W |
0 |
Second units in BCD format |
REG_RTC_CR
Name: RTC Ctrl Reg
Size: 32
Address offset: 004h
Read/write access: R/W
This register is write protected. Bit[7] (FMT) of this register can be written in initialization
mode only when INITF = 1. ADD1H and SUB1H changes are effective in 2~3 seconds. Don’t write this
register continuously without any delay when RTC is in free run mode. Software can use the RSF bit
in RTC_ISR register to handle the delay.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:23 |
DAY_THRES |
R |
1FFh |
Day threshold in binary format |
22:17 |
RSVD |
R |
- |
Reserved |
16 |
DOVTHIE |
R/W |
0 |
Day over threshold interrupt enable
|
15 |
RSVD |
R |
- |
Reserved |
14 |
WUTIE |
R/W |
0 |
Wakeup timer interrupt enable
|
13 |
RSVD |
R |
- |
Reserved |
12 |
ALMIE |
R/W |
0 |
Alarm interrupt enable
|
11 |
RSVD |
R |
- |
Reserved |
10 |
WUTE |
R/W |
0 |
Wakeup timer enable
|
9 |
RSVD |
R |
- |
Reserved |
8 |
ALME |
R/W |
0 |
Alarm enable
|
7 |
FMT |
R/W |
0 |
Hour format
|
6:5 |
OSEL |
R/W |
0 |
Output selection.There bits are used to select the flag to be routed to RTC_OUT output.
|
4 |
RSVD |
R |
- |
Reserved |
3 |
BYPSHAD |
R/W |
0 |
Bypass the shadow registers.
|
2 |
BKP |
R/W |
0 |
Backup This bit can be written by the user to memorize whether the daylight saving time change has been performed or not. |
1 |
SUB1H |
R/W |
0 |
Subtract one hour(winter time change),when this bit is set outside initialization mode,1 hour is subtracted to the calendar time if the current hour is not 0,this bit is always read as 0.
|
0 |
ADD1H |
R/W |
0 |
Add one hour(summer time change),when this bit is set outside initialization mode,1 hour is add to the calendar time,this bit is always read as 0.
|
REG_RTC_ISR
Name: RTC Init And Status Reg
Size: 32
Address offset: 008h
Read/write access: R/W
RTC Initialization mode and status register,The ALMF/WUTF/DOVTHF bit can be written without
unlocking the write protection. Two APB clock cycles after programming it to 1, this bit is cleaned.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:17 |
RSVD |
R |
- |
Reserved |
16 |
RECALPF |
R |
0 |
Recalibration pending flag The RECALPF status flag is automatically set to '1' when software writes to the RTC_CALIBR register, indicating that the RTCCALIBR register is blocked. When the new calibration settings are taken into account, this bit returns to '0'. Refer to Re-calibration on-the-fly. |
15 |
DOVTHF |
R/W |
0 |
Day over threshold flag This flag is set by hardware when the Day in RTC_TR over the DAY_THRES set in RTC_CR register. |
14:11 |
RSVD |
R |
- |
Reserved |
10 |
WUTF |
R/W |
0 |
Wakeup timer flag This flag is set by hardware when the wakeup auto-reload counter reaches to. This flag must be cleared by software at least 2 RTCCLK periods before WUTF is set to '1' again. |
9 |
RSVD |
R |
- |
Reserved |
8 |
ALMF |
R/W |
0 |
Alarm flag This flag is set by hardware when the time register (RTC_TR) matches the Alarm registers (RTC_ALMR1L and RTC_ALMR1H). |
7 |
INIT |
R/W |
0 |
Initialization mode
|
6 |
INITF |
R |
0 |
Initialization flag. When this bit is set to '1', the RTC is in initialization state, and the time, date, and prescaler registers can be updated.
|
5 |
RSF |
R/W |
0 |
Registers synchronization flag. This bit is set by hardware each time the calendar registers are copied into the shadow registers (RTC_TR). This bit is cleared by hardware in initialization mode or when in bypass shadow register mode (BYPSHAD=1). This bit can also be cleared by software. It is cleared either by software or by hardware in initialization mode.
|
4 |
INITS |
R |
0 |
This bit is set by hardware when the calendar day field is different from 0 (RTC domain reset state).
|
3 |
RSVD |
R |
- |
Reserved |
2 |
WUTWF |
R |
0 |
Wakeup timer write flag This flag is set by hardware when WUT value can be changed, after the WUTE bit has been set to '0' in RTC_CR.
|
1 |
WUTRSF |
R/W |
0 |
This bit is set by hardware each time the WUTE bit is copied into the shadow register. This bit is cleared by hardware in initialization mode. This bit can also be cleared by software. It is cleared either by software or by hardware in initialization mode.
|
0 |
ALMWF |
R |
0 |
Alarm write flag This bit is set by hardware when Alarm values can be changed, after the ALME bit has been set to '0' in RTC_CR. It is cleared by hardware when ALME bit has been set to '1' in RTC_CR.
|
REG_RTC_PRER
Name: RTC Prescaler Reg
Size: 32
Address offset: 00Ch
Read/write access: R/W
This register is write protected, and must be written in initialization mode only.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:25 |
RSVD |
R |
- |
Reserved |
24:16 |
PREDIV_A |
R/W |
7Fh |
Asynchronous prescaler factor This is the asynchronous division factor: clk_apre freq = RTCCLK freq/(PREDIV_A + 1) |
15:9 |
RSVD |
R |
- |
Reserved |
8:0 |
PREDIV_S |
R/W |
FFh |
Synchronous prescaler factor This is the synchronous division factor: clk_spre freq = clk_apre freq/(PREDIV_S + 1) |
REG_RTC_CALIBR
Name: RTC Calibration Reg
Size: 32
Address offset: 010h
Read/write access: R/W
This register is write protected, and can be dynamically configured when RTC is running
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:19 |
RSVD |
R |
- |
Reserved |
18:16 |
CALP |
R/W |
0 |
Calibration period |
15 |
DCE |
R/W |
0 |
Digital calibration enable
|
14 |
DCS |
R/W |
0 |
Digital calibration signal
|
13:7 |
RSVD |
R |
- |
Reserved |
6:0 |
DC |
R/W |
0 |
Digital calibration |
REG_RTC_ALMR1L
Name: RTC Alarm 1 Reg Low
Size: 32
Address offset: 014h
Read/write access: R/W
This register is write protected, and can be written only when ALMWF is set to 1 in RTC_ISR
register, or in initialization mode.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:24 |
RSVD |
R |
- |
Reserved |
23 |
MSK2 |
R/W |
0 |
Alarm hour mask
|
22 |
ALR_PM |
R/W |
0 |
AM/PM notation.
|
21:20 |
ALR_HT |
R/W |
0 |
Hour tens in BCD format |
19:16 |
ALR_HU |
R/W |
0 |
Hour units in BCD format |
15 |
MSK1 |
R/W |
0 |
Alarm minutes mask.
|
14:12 |
ALR_MNT |
R/W |
0 |
Minute tens in BCD format |
11:8 |
ALR_MNU |
R/W |
0 |
Minute units in BCD format |
7 |
MSK0 |
R/W |
0 |
Alarm seconds mask
|
6:4 |
ALR_ST |
R/W |
0 |
Second tens in BCD format |
3:0 |
ALR_SU |
R/W |
0 |
Second units in BCD format |
REG_RTC_ALMR1H
Name: - RTC Alarm 1 Reg High
Size: 32
Address offset: 018h
Read/write access: R/W
This register is write protected, and can be written only when ALMWF is set to 1 in RTC_ISR
register, or in initialization mode
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:10 |
RSVD |
R |
- |
Reserved |
9 |
MSK3 |
R/W |
0 |
Alarm day mask
|
8:0 |
ALR_DAY |
R/W |
0 |
DAY in binary format |
REG_RTC_WPR
Name: RTC Write Protect Reg
Size: 32
Address offset: 01Ch
Read/write access: R/W
RTC write protection register,write "0xCA"then write "0x53" disable write protect,write "0xFF"
enable write protect
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:8 |
RSVD |
R |
- |
Reserved |
7:0 |
KEY |
R/W |
0 |
Write protection key This byte is written by software. Refer to RTC register write protection for a description of how to unlock RTC register write protection. |
REG_RTC_YEAR
Name: RTC Year Reg
Size: 32
Address offset: 020h
Read/write access: R/W
RTC year register,this register is controlled by software
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31 |
RESTORE |
R/W |
0 |
Reset Flag. Indicates whether any reset conditions have occurred (except POR/PDR/BOD), so that the bit is set to '1' before reset, and then the global variable that determines whether the recovery time information is needed depending on whether the bit is '1'. |
30:8 |
RSVD |
R |
- |
Reserved |
7:0 |
YEAR |
R/W |
0 |
Year in binary format |
REG_RTC_WUTR
Name: RTC Wakeup Timer Reg
Size: 32
Address offset: 024h
Read/write access: R/W
RTC wakeup timer register,set wakeup timer value.
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:17 |
RSVD |
R |
- |
Reserved |
16:0 |
WUT |
R/W |
0 |
Wakeup auto-reload value bits When the wakeup timer is enabled (WUTE is set to '1'), the WUTF flag is set every (WUT[16:0]+1) cycles. The first assertion of WUTF occurs between WUT and (WUT+1) cycles after WUTE is set. |
REG_RTC_DUMMY
Name: RTC Dummy Register
Size: 32
Address offset: 028h
Read/write access: R/W
Dummy register
Bit |
Symbol |
Access |
INI |
Description |
|---|---|---|---|---|
31:0 |
DUMMY |
R/W |
ffffh |
Dummy register |