BAT32G1x9 user manual | Chapter 11 Real-time clock
444 / 1149
Rev.1.02
11.3.4
Real-time clock control register 1 (RTCC1).
This is an 8-bit register that controls the alarm interrupt function and counter waits. The RTCC1 register
is set via the 8-bit memory operation instruction. After generating a reset signal, the value of this register
changes to "00H".
Fig. 11-5 Format of real-time clock control register 1 (RTCC1) (1/2).
Address: 0x40044F5E
After reset:
00H R/W
symbol
RTCC1
WHALES
Run control of the alarm
0
Consistent operation is invalid.
1
Consistent operation works.
To set the WALL bit in counter operation (RTCE=1) and the WALLE bit is "1", it must be rewritten after the
INRTC is set to disable interrupt processing through the interrupt mask flag register. And the WAFG flag
and RTCIF flag must be cleared after rewriting. To set each alarm register (RTCC1 register's WALIE flag,
alarm clock minute register (ALARMWM), alarm hour register
(ALARMWH) and alarm clock week register (ALARMWW)), the WALL position must be "0" (invalid for
consistent operation).
WALIE
Operational control of the Alarm Clock Interrupt (INTRTC)
function
0
No consistent alarm interruptions.
1
Produces a consistent alarm.
WAFG
Alarm detects status flags
0
The alarm clock is inconsistent.
1
Consistent alarms detected.
This is a status flag that indicates that an alarm clock has been detected consistently. Valid only when
the WALL bit is "1", it becomes "1" after detecting the alarm clock is consistent and passes through 1
fRTC clock.
Clear this flag by writing "0" to it. The operation to write "1" is invalid.
7
6
5
4
3
2
1
0
INBut
WALIE
0
WAFG
RIFG
0
RWST
RWAIT