III PERIPHERAL BLOCK: CLOCK TIMER
TCRUN: Clock timer RUN/STOP control (D0) / Clock timer Run/Stop register (0x40151)
Controls the RUN/STOP of the clock timer.
Write "1": RUN
Write "0": STOP
Read: Valid
The clock timer is made to start counting by writing "1" to the TCRUN register and made to stop by writing "0". The timer data is retained even in the STOP state. The timer can also be made to start counting from the retained data by changing its state from STOP to RUN.
The TCRUN register is not initialized at initial reset.
Data can be read out from each counter.
The minute, hour, and day counters allow data to be written to, in addition to being read out. The
The unused
The counter data is not initialized at initial reset.
Set a day on which and a time at which an alarm is to be generated.
The comparison data register corresponding to the alarm factor selected using the TCASE register is compared with the counter data, and when the data matches, an alarm interrupt request is generated.
The
These registers are not initialized at initial reset.
Selects the factor for which the clock timer interrupt is to be generated.
Table 7.6 Selecting Interrupt Factor
TCISE2 | TCISE1 | TCISE0 | Interrupt factor |
1 | 1 | 1 | None |
1 | 1 | 0 | 1 day |
1 | 0 | 1 | 1 hour |
1 | 0 | 0 | 1 minute |
0 | 1 | 1 | 1 Hz |
0 | 1 | 0 | 2 Hz |
0 | 0 | 1 | 8 Hz |
0 | 0 | 0 | 32 Hz |
When the clock timer interrupt is enabled, an interrupt is generated cyclically at each falling edge of the selected signal. If you the interrupt caused by these factors is not be used set TCISE to "111".
TCISE is not initialized at initial reset.
CTM
S1C33L03 FUNCTION PART | EPSON |