Flow Chart - Epson RA8804 CE Applications Manual

Real time clock module
Table of Contents

Advertisement

RA8804 CE

8.13. Flow chart

The following flow-chart is one example, but it is not necessarily applicable for every use-case and not necessarily the most
effective process for individual applications.
1) An example of the initialization
Ex.1 Initialize
Initialization
Reg0Dh
Reg0Dh
Reg0Fh
Setting the present time
Reg0h6h
Setting the Alarm function
Setting the Timer function
Setting the Update function
Reg19h
Temperature compensation
function
Next processing
Set TE bit to "0".
Set FSEL1,0 bitoptionally.
SET TEST bit to "0".
Clear VDET, VLF bit to "0".
Set AIE,TIE, UIE bit to "0"to prevent unprepared interruption output.
Set the present time.
Setting the present time concerned, please refer to item of [Clock and
calendar writing].
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.
Set the fixed-cycle 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.
Set the Update interrupt function.

 Writes 00h.
Disable output of SOUT.

 Set the interval of a temperature compensation operation

Page - 37
ETM60E-02

Advertisement

Table of Contents
loading

Table of Contents