English
Language : 

SH7261 Datasheet, PDF (699/1348 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer SuperHTM RISC engine Family / SH7260 Series
Section 15 Realtime Clock (RTC)
15.5.5 Procedure for Setting the 30-Second Adjustment Function
Figure 15.7 shows the procedure for setting the 30-second adjustment function.
Stop clock
Clear the START bit in RCR2 to 0.
Set minutes, hours, date, day
of the week, month, and year
The order is irrelevant.
For the respective counters, read out each
value and then write it back.
Set ADJ bit
Set the ADJ bit in RCR2 to 1.
Start clock
Set the START bit in RCR2 to 1.
Figure 15.7 Procedure for Setting the 30-Second Adjustment Function
To use the 30-second adjustment function, the minutes, hours, date, day of the week, month, and
year counters need to be written to. Thus, after clearing the START bit in RCR2 and reading out
the minutes, hours, date, day of the week, month, and year counters and then writing the read
values back, set the ADJ bit in RCR2 to 1. After the 30-second adjustment, set the START bit in
RCR2 to 1 to start the clock operation.
Rev. 2.00 Sep. 07, 2007 Page 667 of 1312
REJ09B0320-0200