
BAT32G1x9 user manual | Chapter 11 Real-time clock
453 / 1149
Rev.1.02
11.3.13
Alarm clock minute register (ALARMWM).
This is the register for setting the alarm minute.
The ALARMWM register is set by the 8-bit memory operation instruction. After generating a reset
signal, the value of this register changes to "00H".
Note that the decimal value must be set to
00~59
in the
BCD
code
. If you set a value outside the range, the alarm is not
detected.
Figure 11-14 Format of the Alarm Clock Minute Register (ALARMWM).
Address: 0x40044F5AH
after reset:
00H R/W
Symbol
7 6 5 4 3 2 1 0
ALARMWM
11.3.14
Alarm hour register (ALARMWH).
This is the register for setting the alarm hour.
The ALARMWH register is set via the 8-bit memory operation instruction. After generating a reset
signal, the value of this register changes to "12H". However, if the AMPM position is "1" after reset, the
value of this register becomes "00H".
Note that the decimal value
of
00~23
or
01~12, 21~32
must
be set in
the
BCD
code
. If you set a value outside the
range, the alarm is not detected.
Figure 11-15 Format of the Alarm Clock Hour Register (ALARMWH).
Address: 0x40044F5 BH After reset:
12H R/W
Symbol
7 6 5 4 3 2 1 0
ALARMWH
Note that when the AMPM bit is selected as "0" (12-hour system), bit5 (WH20) of the ALARMWH register represents AM
(0) /PM (1) .
11.3.15
Alarm Clock Week Register (ALARMWW).
This is the register that sets the alarm for the week.
The ALARMWW register is set via the 8-bit memory operation instruction. After generating a reset
signal, the value of this register changes to "00H".
Figure 11-16
Format of alarm clock week register (ALARMWW).
Address: 0x40044F5CH
after reset:
00H R/W
Symbol
7 6 5 4 3 2 1 0
ALARMWW
0
WM40
WM20
WM10
WM8
WM4
WM2
WM1
0
0
WH20
WH10
WH8
WH4
WH2
WH1
0
WW6
WW5
WW4
WW3
WW2
WW1
WW0