
CHAPTER 9 REAL-TIME COUNTER
User’s Manual U19780EJ2V0UD
300
Here is an example of setting the alarm.
Day
12-Hour Display
24-Hour Display
Time of Alarm
Sunday
W
W
0
Monday
W
W
1
Tuesday
W
W
2
Wednesday
W
W
3
Thursday
W
W
4
Friday
W
W
5
Saturday
W
W
6
Hour
10
Hour
1
Minute
10
Minute
1
Hour
10
Hour
1
Minute
10
Minute
1
Every
day,
0:00
a.m. 1 1 1 1 1 1 1 1 2 0 0 0 0 0 0
Every
day,
1:30
a.m. 1 1 1 1 1 1 1 0 1 3 0 0 1 3 0
Every
day,
11:59
a.m. 1 1 1 1 1 1 1 1 1 5 9 1 1 5 9
Monday through
Friday, 0:00 p.m.
0 1 1 1 1 1 0 3 2 0 0 1 2 0 0
Sunday,
1:30
p.m.
1 0 0 0 0 0 0 2 1 3 0 1 3 3 0
Monday, Wednesday,
Friday, 11:59 p.m.
0 1 0 1 0 1 0 3 1 5 9 2 3 5 9
(16) Port mode register 4 (PM4)
This register sets port 4 input/output in 1-bit units.
When using the P40/RTCDIV/RTCCL pin for clock output real-time counter, and P41/RTC1HZ pins for clock
output of real-time counter correction, clear PM40 and PM41 and the output latches of P40 and P41 to 0.
PM4 is set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation sets this register to FFH.
Figure 9-17. Format of Port Mode Register 4 (PM4)
Address: FF24H After reset: FFH R/W
Symbol
7 6 5 4 3 2 1 0
PM4 1 1 1 1 1
PM42
PM41
PM40
PM4n
P4n pin I/O mode selection (n = 0 to 2)
0
Output mode (output buffer on)
1
Input mode (output buffer off)