English
Language : 

SH7708 Datasheet, PDF (352/633 Pages) Renesas Technology Corp – SuperH™ RISC engine
a. To reset the divider circuit and set the counter
Stop clock,
Write 1 to RESET and 0 to
reset divider circuit START in the RCR2 register
Set seconds, minutes,
hour, day, day of the Order is irrelevant
week, month and year
Start clock
Write 1 to START in the
RCR2 register
b. To set the seconds-year counter
Clear the carry flag
Write 0 to CF in RCR1
Note: Set AF to 1 so that alarm
flag is not cleared
Write the counter
register
Yes
Carry flag = 1?
Read RCR1 and check CF
No
Figure 12.2 Setting the Time
334