Section 11 Realtime Clock (RTC)
SH7751 Group, SH7751R Group
Page 310 of 1128
R01UH0457EJ0301 Rev. 3.01
Sep 24, 2013
The procedure for setting the time while the clock is running is shown in figure 11.2 (b). This
method is useful for modifying only certain counter values (for example, only the second data or
hour data). If a carry occurs during the write operation, the write data is automatically updated and
there will be an error in the set data. The carry flag should therefore be used to check the write
status. If the carry flag (RCR1.CF) is set to 1, the write must be repeated.
The interrupt function can also be used to determine the carry flag status.