English
Language : 

UPD78F1502AGK-GAK-AX Datasheet, PDF (380/1031 Pages) Renesas Technology Corp – 16-Bit Single-Chip Microcontrollers
78K0R/Lx3
CHAPTER 7 REAL-TIME COUNTER
7.4.3 Reading/writing real-time counter
Read or write the counter after setting 1 to RWAIT first.
Figure 7-21. Procedure for Reading Real-Time Counter
Start
RWAIT = 1
Stops SEC to YEAR counters.
Mode to read and write count values
No
RWST = 1?
Yes
Reading SEC
Reading MIN
Reading HOUR
Checks wait status of counter.
Reads second count register.
Reads minute count register.
Reads hour count register.
Reading WEEK
Reads week count register.
Reading DAY
Reads day count register.
Reading MONTH
Reads month count register.
Reading YEAR
Reads year count register.
RWAIT = 0
Sets counter operation.
No
RWST = 0?Note
Yes
End
Note Be sure to confirm that RWST = 0 before setting STOP mode.
Caution Complete the series of operations of setting RWAIT to 1 to clearing RWAIT to 0 within 1 second.
Remark SEC, MIN, HOUR, WEEK, DAY, MONTH, and YEAR may be read in any sequence.
All the registers do not have to be set and only some registers may be read.
R01UH0004EJ0501 Rev.5.01
364
Jun 20, 2011