Epson S1C33L03 Laptop User Manual


 
III PERIPHERAL BLOCK: CLOCK TIMER
B-III-7-10 EPSON S1C33L03 FUNCTION PART
TCASE2–TCASE0: Alarm factor select register (D[4:2]) / Clock timer interrupt control register (0x40152)
Selects the factor for which an alarm is to be generated.
Table 7.7 Selecting Alarm Factor
TCASE2 TCASE1 TCASE0 Alarm factor
XX1Minute alarm
X1XHour alarm
1XXDay alarm
000None
Use the TCASE2, TCASE1, and TCASE0 bits to select a day, hour, and minute alarm, respectively. It is therefore
possible to select multiple alarm factors. When one of these bits is set to "1", the contents of the comparison data
register that corresponds to the selected alarm factor is compared with the counter. If the comparison data of all
selected alarm factors matches the counter data, an alarm interrupt request is generated. The comparison data
register from which the alarm factor is unselected by writing "0" is not compared with the counter data.
TCASE is not initialized at initial reset.
TCIF: Interrupt factor generation flag (D1) / Clock timer interrupt control register (0x40152)
Indicates whether an interrupt factor has occurred.
Read "1": Interrupt factor has occurred
Read "0": No interrupt factor has occurred
Write "1": Flag is reset
Write "0": Invalid
TCIF is set to "1" when an interrupt factor selected using TCISE occurs. Since there is only one source for the
clock timer interrupt, use this flag to differentiate it from interrupts caused by an alarm.
Once set to "1", TCIF remains set until it is reset by writing "1".
TCIF is not initialized at initial reset.
This bit does not affect generation of an interrupt even if it is set to "1" or "0".
TCAF: Alarm factor generation flag (D0) / Clock timer interrupt control register (0x40152)
Indicates whether an alarm factor has occurred.
Read "1": Alarm factor has occurred
Read "0": No alarm factor has occurred
Write "1": Flag is reset
Write "0": Invalid
TCAF is set to "1" when all alarm factors selected using the TCASE register occur. Since there is only one source
for the clock timer interrupt, use this flag to differentiate it from interrupts due to other interrupt factors.
Once set to "1", TCAF remains set until it is reset by writing "1".
TCAF is not initialized at initial reset.
This bit does not affect generation of an alarm even if it is set to "1" or "0".
PCTM2–PCTM0: Clock timer interrupt level (D[2:0]) / Clock timer interrupt priority register (0x4026B)
Sets the priority level of the clock timer interrupt between 0 and 7.
At initial reset, PCTM becomes indeterminate.