English
Language : 

SH7706 Datasheet, PDF (404/749 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH™ RISC engine Family/SH7700 Series
Section 13 Realtime Clock (RTC)
13.4 RTC Operation
13.4.1 Initial Settings of Registers after Power-On
All the registers should be set after the power is turned on.
13.4.2 Setting the Time
Figures 13.2(a) and 13.2(b) show how to set the time after stopping the clock. This procedure can
be used to set the entire calendar and clock function. It can be programmed easily.
Usage Notes
1. Initialization Timing for 64 Hz Counter (R64CNT)
If it is necessary, after initializing the counter by means of the RESET bit in the RTC’s RCR2
register, to confirm that the change has taken effect by reading the R64CNT value, wait at least
107 µs after setting the RESET bit to 1 before reading the R64CNT counter. Note that the
divider circuit (RTC prescaler) is also initialized when the RESET bit is set to 1.
2. Incrementing RSECCNT by Initializing R64CNT
Either method (a) or method (b) below may be used.
(a) After setting the RESET bit to 1 and confirming that R64CNT has been initialized, set the
START bit to 1. This process is shown in figure 13.2(a).
(b) Set the START bit to 1 and the RESET bit to 1 at the same time. This process is shown in
figure 13.2(b). Note that the processing indicated by the asterisk (*) in figure 13.2(b) may
be omitted if nothing is written to the RCR2 register during an interval of approximately
107 µs after the START bit is set to 1.
Rev. 5.00 May 29, 2006 page 356 of 698
REJ09B0146-0500