www.geehy.com Page 239
RTC alarm A register (RTC_ALRMA)
This register can be written only when ALRWFLG of RTC_STS is set to 1 or in
initialization mode, and it is in write protection state.
Offset address: 0x1C
Power-on reset value: 0x0000 0000
System reset: 0xXXXX XXXX
Field
Name
R/W
Description
3:0
SECU
R/W Second Ones Unit in BCD Format Setup
6:4
SECT
R/W Second Ten's Place Unit in BCD Format Setup
7
SECMEN
R/W
Alarm A Seconds Mask Enable
0: If the "second" matches, set Alarm A
1: Mask the effect of the "second" value on Alarm A
11:8
MINU
R/W Minute Ones Unit in BCD Format Setup
14:12
MINT
R/W Minute Ten's Place Unit in BCD Format Setup
15
MINMEN
R/W
Alarm A Minutes Mask Enable
0: If the "minute" matches, set Alarm A
1: Mask the effect of the "minute" value on Alarm A
19:16
HRU
R/W Hour Ones Unit in BCD Format Setup
21:20
HRT
R/W Hour Ten's Place Unit in BCD Format Setup
22
TIMEFCFG R/W
Time Format Configure
0: AM or 24-hour system
1: PM
23
HRMEN
R/W
Alarm A Hours Mask Enable
0: If the "hour" matches, set Alarm A
1: Mask the effect of the "hour" value on Alarm A
27:24
DAYU
R/W Day Ones Unit in BCD Format Setup
29:28
DAYT
R/W Day Ten's Place Unit in BCD Format Setup
30
WEEKSEL
R/W
Week Day Select
0: DAYU means date
1: DAYU means the number of weeks. DAYT has no effect.
31
DATEMEN
R/W
Alarm A Date Mask Enable
0: If the date/week matches, set Alarm A
1: Mask the effect of the date/week value on Alarm A
RTC write protection register (RTC_WRPROT)
Offset address: 0x24
Reset value: 0x0000 0000
Field
Name
R/W
Description
15:0
KEY
W
Write Protection Key Value Setup
This byte is written by softwre; read this byte and it is always 0x00.
31:16
Reserved
RTC subsecond register (RTC_SUBSEC)
Offset address: 0x28
Reset value: 0x0000 0000