14. How to use
RX4111CE
Jump to
ETM62E-02
Seiko Epson Corporation
51
2) I
nitialize
Next procession
Initialization
Bank1, Reg
Fh
Set
AIE,
TIE, UIE bit to
“0
"
to prevent unprepared interruption output.
Set Time and Date
Bank1, Reg
0h
6h
Set the time and date.
Setting the present time concerned, please refer to item of [
Clock and
calendar writing
]
.
Setting the Alarm function
Set the Alarm interrupt function.
When the alarm interrupt function is not being used, the Alarm registers
can be used as a RAM register. In such cases, be sure to write "0" to the
AIE bit.
Setting the Timer function
Set the Wakeup Timer function.
When the fixed-cycle timer function is not being used, the Timer Counter
register can be used as a RAM register. In such cases,
stop the fixed-cycle timer function by writing "0" to the TE and TIE bits.
When initialization is finished, be sure to set STOP bit to
“0”.
Bank1, Reg
Dh
Set TE bit to
“0”.
Set
FSEL1,
0 bit
optionally.
Clear various flags to "0".
VLF and XST retain the state of "1" even if "0" is cleared until oscillation starts.
Bank1, Reg
Eh
Bank3, Reg
2h
Set the Battery backup switchover function.
Figure 40 Flow2