Renesas SH7709S Manual Do Utilizador

Página de 807
Rev. 5.00, 09/03, page 422 of 760
Bit 0
Start Bit (START): Halts and restarts the counter (clock).
Bit 0: START
Description
0
Second/minute/hour/day/week/month/year counter halts
1
Second/minute/hour/day/week/month/year counter runs normally
(Initial value)
Note:
The 64-Hz counter always runs unless stopped with the RTCEN bit.
13.3
RTC Operation
13.3.1
Initial Settings of Registers after Power-On
All the registers should be set after the power is turned on.
13.3.2
Setting the Time
Figure 13.2 shows how to set the time when the clock is stopped. This works when the entire
calendar or clock is to be set. Programming can be easily performed.
Write 1 to RESET and 0 to
START in the RCR2 register
Order is irrelevant
Write 1 to START in the
RCR2 register
Set seconds, minutes,
hour, day, day of the
week, month and year
Stop clock,
reset divider circuit
To reset the divider circuit (RTC prescaler
and R64CNT) and set the counter
Start clock
Figure 13.2   Setting the Time