14. Functions
RX8130CE Jump to Top / Bottom
ETM50E-07 Seiko Epson Corporation 26
14.2. Wakeup Timer Interrupt Function
The wakeup timer interrupt function generates an interrupt event periodically at any wakeup set between
244.14s and 65535 hours. This function can stop at one time and is available as an accumulative timer.
After the interrupt occurs, the /IRQ status is automatically cleared .
14.2.1. Related registers for function of wakeup timer interrupt function
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(0001h)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.
Table 16 Countdown period (source clock) selection
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,096 Hz / 64 Hz / 1Hz as a source clock, one period of error occurs at the maximum.
When selected1/60 Hz / 1/3600 Hz as a source clock, 1 Hz of error occurs at the maximum.