English
Language : 

SH7730 Datasheet, PDF (595/1188 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperHTM RISC engine Family / SH7780 Series
Section 17 Realtime Clock (RTC)
17.5.5 Usage of 30-Second Adjustment
When using the 30-second adjustment function, follow the procedure shown in figure 17.7.
Stop clock
Set second, minute, hour, day,
day of the week, month, year
Set 30-second adjustment
Clear the START bit of RCR2 register to 0
Read RSECCNT, then write back the read value
Read RMINCNT, then write back the read value
Read RHRCNT, then write back the read value
Read RWKCNT, then write back the read value
Read RDAYCNT, then write back the read value
Read RMONCNT, then write back the read value
Read RYRCNT, then write back the read value
Set the ADJ bit of RCR2 register to 1
Start clock
Set the START bit of RCR2 register to 1
Figure 17.7 Usage of 30-Second Adjustment
When using the 30-second adjustment, the seconds, minutes, hours, date, day of the week, month
and year must all be written to the corresponding registers. Firstly, clear the START bit of RCR2
register to 0. After reading out the minute, hour, day, day of the week, month and year, write back
the values read and set the ADJ bit of the RCR register to 1. After making the 30-second
adjustment, start the clock by setting the START bit of RCR2 register to 1.
Rev. 1.00 Sep. 19, 2007 Page 547 of 1136
REJ09B0359-0100