Wakeup Timer Interrupt Function; Related Registers For Function Of Wakeup Timer Interrupt Function - Epson RX8010SJ Applications Manual

Real time clock module
Table of Contents

Advertisement

13.2. Wakeup Timer Interrupt Function

The wakeup timer interrupt function generates an interrupt event periodically at any fixed cycle set between
244.14 s and 65535 hours. This function can stop at one time and is available as a accumulative timer.
After the interrupt occurs, the /IRQ status is automatically cleared .

13.2.1. Related registers for function of wakeup timer interrupt function

Address h
1B
1C
1D
1E
1F
Address h
32
 Before entering operation settings, we recommend first clearing the TE bit to "0" .
 When the wakeup timer function is not being used, the wakeup Timer Counter0,1 register can be used as a RAM
register. In such cases, stop the wakeup timer function by writing "0" to the TE and TIE bits.
1) Down counter for wakeup timer ( Timer Counter 1, 0 )
This register is used to set the default (preset) value for the counter. Any count value from 1 (0001 h) to
65535 (FFFFh) can be set.
Be sure to write "0" to the TE bit before writing the preset value.
 When TE=0, read out data of timer counter is default(Preset) value.
And when TE=1, read out data of timer counter is just counting value.
But, when access to timer counter data, counting value is not held.
Therefore, for example, perform twice read access to obtain right data, and a way to adopt the case that two
data accorded is necessary.
2) TSEL2, TSEL1, TESL0 bit
The combination of these three bits is used to set the countdown period (source clock) for this function.
TSEL2
TSEL1
( bit 2 )
( bit 1 )
0
0
0
0
1
1) The /IRQ pin's auto reset time (tRTN) varies as shown above according to the source clock setting.
2) The first countdown shortens than a source clock.
When selected 4,096Hz / 64HZ / 1Hz as a source clock, one period of error occurs at the maximum.
When selected1/60Hz / 1/3600Hz as a source clock, 1Hz of error occurs at the maximum.
The example of the error of the first countdown: A value to preset is 0004h
TE
Internal source clock
Down counter
TF
RX8010SJ
ETM37E-07
Function
bit 7
Timer Counter 0
128
Timer Counter 1
32768
Extension Register
FSEL1
Flag Register
Control Register
TEST
Function
bit 7
IRQ Control
TSEL0
( bit 0 )
0
0
4096 Hz
0
1
64 Hz /Once per 15.625 ms
1
0
1 Hz
1
1
1/60 Hz
0
0
1/3600 Hz
Designated cycle
Cycle error
初回周期誤差
4
Seiko Epson Corporation
bit 6
bit 5
bit 4
64
32
16384
8192
4096
FSEL0
USEL
UF
STOP
UIE
TIE
bit 6
bit 5
bit 4
-
-
Source clock
/Once per 244.14 s
/Once per second
/Once per minute
/Once per hour
3
2
bit 3
bit 2
16
8
4
2048
1024
TE
WADA
TSEL2
TSEL1
TF
AF
AIE
TSTP
bit 3
bit 2
TMPIN
-
FOPIN1 FOPIN0
Auto reset time
tRTN
122 s
7.813 ms
7.813 ms
7.813 ms
7.813 ms
1
TF Flag "0" ⇒ "1"
13. How to use
bit 1
bit 0
2
1
512
256
TSEL0
VLF
-
-
bit 1
bit 0
4
Jump to
INDEX
20

Advertisement

Table of Contents
loading

This manual is also suitable for:

X1b000242000100

Table of Contents