15 ClOCK TiMeR (CT)
15-4
Seiko epson Corporation
S1C17624/604/622/602/621 TeChniCal Manual
D[7:0]
CTCnT[7:0]: Clock Timer Counter Value
The counter data can be read out. (Default: 0x0)
This register is read-only and cannot be written to.
The bits correspond to various frequencies, as follows:
D7: 1 Hz, D6: 2 Hz, D5: 4 Hz, D4: 8 Hz, D3: 16 Hz, D2: 32 Hz, D1: 64 Hz, D0: 128 Hz
note: The correct counter value may not be read out (reading is unstable) if the register is read while
counting is underway. Read the counter register twice in succession and treat the value as valid if
the values read are identical.
Clock Timer interrupt Mask Register (CT_iMSK)
Register name address
Bit
name
Function
Setting
init. R/W
Remarks
Clock Timer
interrupt Mask
Register
(CT_iMSK)
0x5002
(8 bits)
D7–4 –
reserved
–
–
–
0 when being read.
D3
CTie32
32 Hz interrupt enable
1 Enable
0 Disable
0
R/W
D2
CTie8
8 Hz interrupt enable
1 Enable
0 Disable
0
R/W
D1
CTie2
2 Hz interrupt enable
1 Enable
0 Disable
0
R/W
D0
CTie1
1 Hz interrupt enable
1 Enable
0 Disable
0
R/W
This register enables or disables interrupt requests individually for the 32 Hz, 8 Hz, 2 Hz, and 1 Hz signals. Setting
CTIE* to 1 enables CT interrupts for the corresponding frequency signal falling edge, while setting to 0 disables
interrupts.
D[7:4]
Reserved
D3
CTie32: 32 hz interrupt enable Bit
Enables or disables 32 Hz interrupts.
1 (R/W): Interrupt enabled
0 (R/W): Interrupt disabled (default)
D2
CTie8: 8 hz interrupt enable Bit
Enables or disables 8 Hz interrupts.
1 (R/W): Interrupt enabled
0 (R/W): Interrupt disabled (default)
D1
CTie2: 2 hz interrupt enable Bit
Enables or disables 2 Hz interrupts.
1 (R/W): Interrupt enabled
0 (R/W): Interrupt disabled (default)
D0
CTie1: 1 hz interrupt enable Bit
Enables or disables 1 Hz interrupts.
1 (R/W): Interrupt enabled
0 (R/W): Interrupt disabled (default)
Clock Timer interrupt Flag Register (CT_iFlG)
Register name address
Bit
name
Function
Setting
init. R/W
Remarks
Clock Timer
interrupt Flag
Register
(CT_iFlG)
0x5003
(8 bits)
D7–4 –
reserved
–
–
–
0 when being read.
D3
CTiF32
32 Hz interrupt flag
1 Cause of
interrupt
occurred
0 Cause of
interrupt not
occurred
0
R/W Reset by writing 1.
D2
CTiF8
8 Hz interrupt flag
0
R/W
D1
CTiF2
2 Hz interrupt flag
0
R/W
D0
CTiF1
1 Hz interrupt flag
0
R/W
This register indicates the occurrence state of interrupt causes due to 32 Hz, 8 Hz, 2 Hz, and 1 Hz signals. If a CT
interrupt occurs, identify the interrupt cause (frequency) by reading the interrupt flag in this register. CTIF* is a CT
module interrupt flag that is set to 1 at the falling edge of the corresponding 32 Hz, 8 Hz, 2 Hz, or 1 Hz interrupt.
CTIF* is reset by writing 1.
D[7:4]
Reserved