English
Language : 

HD6417750RF240DV Datasheet, PDF (388/1132 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH™ RISC engine Family / SH7750 Series
Section 11 Realtime Clock (RTC)
3. Use the following method to write to an RTC register.
SH7750, SH7750S, SH7750R Group
Read all writeable counter registers (1)
Write 0 to RCR2.RTCEN
Read all writeable counter registers (2)
Compare the values of (1) and (2)
Are the compared values valid? No
Write the valid value
Yes
Write to the register whose value is to
be changed
Write 1 to RCR2.RTCEN
Write operation complete
Note:
The operation of the RTC counter is stopped when RCR2.RTCEN is
cleared to 0. Therefore, using the above method will cause the RTC counter
value to fall behind the actual time by the amount of time that
RCR2.RTCEN was cleared to 0, and the cycle duration for cycle interrupt
generation will be lengthened as well.
Page 336 of 1076
R01UH0456EJ0702 Rev. 7.02
Sep 24, 2013