Flow Chart - Epson RX8900SA/CE Applications Manual

Real time clock module
Table of Contents

Advertisement

RX8900 SA / CE

8.12. Flow chart

The following flow-chart is one instance.
Mention for easy understanding takes precedence over others; therefore there are some inefficient cases for the
actual processing. If you wish to take more efficient process, perform some processes at the same time or try to
confirm and adjust some part where is no hindered from transposing of operation procedure. (Unnecessary
processing may be included in mentioned items according to conditions to use.
To get movement according to your expectation, please surely adjust according to conditions to use
(use environment).
1) An example of the initialization
Ex.1 Initialize
Initialization
Reg0D[h]
Reg0D[h]
Reg0F[h]
Setting the present time
Reg0[h]6[h]
Setting the Alarm function
Setting the Timer function
Setting the Update function
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.

 Set the interval of a temperature compensation operation

Page - 33
ETM45E-01

Advertisement

Table of Contents
loading

Table of Contents