Ameba-D User Manual
User Manual All information provided in this document is subject to legal disclaimers. © REALTEK 2019. All rights reserved.
236
Size:
32 bits
Address offset:
0x04
Reset value:
0xFF80 0000
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.
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
DAY_THRES[8:0]
RSVD
DOVTHIE
R/W
R/W
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
RSVD
ALMIE
RSVD
ALME
FMT
OSEL[1:0]
RSVD
BYPSHAD
BKP
SUB1H
ADD1H
R/W
R/W
R/W
R/W
R/W
R/W
R/W
W
W
Bit
Name
Access
Reset
Description
31:23
DAY_THRES[8:0]
R/W
0x1FF
Day threshold in binary format
22:17
RSVD
N/A
-
Reserved
16
DOVTHIE
R/W
0
Day over threshold interrupt enable
0: Day over threshold interrupt is disabled
1: Day over threshold interrupt is enabled
15:13
RSVD
N/A
-
Reserved
12
ALMIE
R/W
0
Alarm interrupt enable
0: Alarm interrupt is disabled
1: Alarm interrupt is enabled
11:9
RSVD
N/A
-
Reserved
8
ALME
R/W
0
Alarm enable
0: Alarm is disabled
1: Alarm is enabled
7
FMT
R/W
0
Hour format
0: 24 hour/day format
1: AM/PM hour format
6:5
OSEL[1:0]
R/W
0
Output selection
These bits are used to select the flag to be routed to RTC_OUT output
00: Output is disabled (logic 0)
01: Alarm output is enabled
10: Clock output is clk_spre (default: 1Hz)
11: Clock output is clk_apre (default: 512Hz)
4
RSVD
N/A
-
Reserved
3
BYPSHAD
R/W
0
Bypass the shadow registers
0: Calendar values (when reading from RTC_TR) are taken from the shadow registers,
which are updated once every two RTCCLK cycles.
1: Calendar values (when reading from RTC_TR) are taken directly from the calendar
counters.
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
W1
0
Subtract 1 hour (winter time change)
When this bit is set outside initialization mode, 1 hour is subtracted to the calendar time if
the current hour isn’t 0. Setting this bit has no effect when current hour is 0.
0: No effect
1: Subtracts 1 hour to the current time. This can be used for winter time change.
This bit is always read as 0.
0
ADD1H
W1
0
Add 1 hour (summer time change)
When this bit is set outside initialization mode, 1 hour is added to the calendar time.
0: No effect
1: Adds 1 hour to the current time. This can be used for summer time change.
This bit is always read as 0.
The document authorized to
SZ99iot
2019-05-15 10:08:03