
29
RP/RF/RS5C62
11. Typical Software-controlled Processes
11.1 Initialization at Power-on
At power-on from 0V, the internal registers and the output pins have indefinite states and therefore require initial-
ization. The process of initialization differs as exemplified below depending on whether the XSTP bit (oscillation
stop detection bit) is set in the control register 2. In the latter typical process of initialization below, the XSTP bit is
used to check the validity of internal time data and the presence or absence of the initial routine.
11.1-1 Initialization Subject to No Setting of XSTP Bit
Start
Power-on from 0V
Timer clock
selection register
Interrupt cycle
selection register
Wait
YES
NO
BSY=0
Set 12-hour or 24-hour time
scale, time and calendar
counters, interrupt cycles,
and timer output cycles
Control register 3
Fh
Control register 1
3h
Control register 2
0h
Control register 1
Fh
0h
0h
*
2
*
1
*
3
*
4
*
5
*
6
*
1) At power-on from 0V, the internal registers and the output pins have
indefinite states.
*
2) Set both the TSTA and TSTB bits and the WTRST bit to “1” in the control
register 3 and thereby set the BSY bit to“1” in the control register 2.
*
3) Set the WTEN bit to “0” (clock operation disabled), the ALEN bit to “0”
and TMR bit to “1” ( turn off the output pins) and the BANK bit to “1” in
the control register 1.
*
4) Drive high (turn off) the INTR and TMOUT pin outputs.
*
5) Check the BSY bit in the control register 2 for the dual purpose of con-
firming the absence of a carry and confirming the start of oscillation. This
requires additional time to wait for the start of the crystal oscillators. Fur-
ther, assign a time-out period to exit from the loop for checking the BSY
bit.
*
6) Start both the clock and alarm functions.
*
7) This typical process of initialization is applied at power-on from 0V and
not required at start-up from the backup battery.