RA8900 SA / CE
Page - 33
ETM44E-01
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
Next processing
Initialization
Set the present time.
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 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 TE bit to “0”.
Set
FSEL1,
0 bit
optionally.
Setting the Update function
Set the Update interrupt function.
Reg
0D[h]
SET TEST bit to “0”.
Clear VDET, VLF bit to “0”.
Reg
0D[h]
Set
AIE,
TIE, UIE bit to “0
"
to prevent unprepared interruption output.
Reg
0F[h]
Setting the present time
Reg
0[h]
6[h]
Temperature compensation
function
Set the interval of a temperature compensation operation