Epson RX801SJ Applications Manual page 33

Real time clock module
Table of Contents

Advertisement

RX8010 SJ
4) The reading of a clock and calendar
Reading of the clock
Read clock
Next process
5) The setting example of the fixed-cycle timer interrupt function
START
Reg-1D[h]
Reg-1E[h]
Reg-1F[h]
Reg-32[h]
Reg − 1B[h], 1C[h]
Start count
Next process
• Please complete access within 0.95 seconds
The STOP bit holds "0".
(It causes the clock delay to set STOP bit to "1")
• At the time of a c ommunication start, the Clock & Calendar data are fixed
(hold the carry operation), and it is automatically revised at the time of the
communication end.
• The acc ess to a clock calendar rec ommends to have access to continuation
by a auto increment function.
• Clear TE bit to "0" to stop timer-interrupt function.
• The countdown period is fixed by the combination of the TSEL2, TSEL1,
TSEL0 bit.
• Clear TF bit to "0" to cancel last timer interrupt output (/IRQ output).
• Select and set /IRQ output
(if output "L" level interrupt output or not) when event occurs.
If output "L" level interrupt output, set TIE bit to "1".
• Select output pin. (/IRQ1 or /IRQ2)
• Set initial value of down counter.
• Set TE bit to "1" to start timer interrupt function.
When start timers interrupt function, please surely set/reset
(*implement 2) initial value of down counter in advance.
∗1 Countdown is suspended with TSTP, " 0 " → " 1 " and countdown is
performed again with TSTP, " 1 " → " 0 "
∗2 When you want to restart from a pre-set value, please set a TE bit to "1"
again after setting a TE bit to "0".
Page − 29
ETM37E-06

Advertisement

Table of Contents
loading

Table of Contents