11 16-BiT TiMeRS (T16)
S1C17624/604/622/602/621 TeChniCal Manual
Seiko epson Corporation
11-7
If T16IE is set to 0 (interrupt disabled, default), no interrupt request will be sent to the ITC.
For specific information on interrupt processing, see the “Interrupt Controller (ITC)” chapter.
notes: • The T16 module interrupt flag T16IF must be reset in the interrupt handler routine after a T16
interrupt has occurred to prevent recurring interrupts.
• Reset T16IF before enabling T16 interrupts with T16IE to prevent occurrence of unwanted in-
terrupt. T16IF is reset by writing 1.
Control Register Details
11.10
10.1 List of T16 Registers
Table 11.
address
Register name
Function
0x4220
T16_CLK0
T16 Ch.0 Count Clock Select Register
Selects a count clock.
0x4222
T16_TR0
T16 Ch.0 Reload Data Register
Sets reload data.
0x4224
T16_TC0
T16 Ch.0 Counter Data Register
Counter data
0x4226
T16_CTL0
T16 Ch.0 Control Register
Sets the timer mode and starts/stops the timer.
0x4228
T16_INT0
T16 Ch.0 Interrupt Control Register
Controls the interrupt.
0x4240
T16_CLK1
T16 Ch.1 Count Clock Select Register
Selects a count clock.
0x4242
T16_TR1
T16 Ch.1 Reload Data Register
Sets reload data.
0x4244
T16_TC1
T16 Ch.1 Counter Data Register
Counter data
0x4246
T16_CTL1
T16 Ch.1 Control Register
Sets the timer mode and starts/stops the timer.
0x4248
T16_INT1
T16 Ch.1 Interrupt Control Register
Controls the interrupt.
0x4260
T16_CLK2
T16 Ch.2 Count Clock Select Register
Selects a count clock.
0x4262
T16_TR2
T16 Ch.2 Reload Data Register
Sets reload data.
0x4264
T16_TC2
T16 Ch.2 Counter Data Register
Counter data
0x4266
T16_CTL2
T16 Ch.2 Control Register
Sets the timer mode and starts/stops the timer.
0x4268
T16_INT2
T16 Ch.2 Interrupt Control Register
Controls the interrupt.
The T16 registers are described in detail below. These are 16-bit registers.
note: When data is written to the registers, the “Reserved” bits must always be written as 0 and not 1.
T16 Ch.
x
Count Clock Select Registers (T16_ClK
x
)
Register name address
Bit
name
Function
Setting
init. R/W
Remarks
T16 Ch.
x
Count
Clock Select
Register
(T16_ClK
x
)
0x4220
0x4240
0x4260
(16 bits)
D15–4 –
reserved
–
–
–
0 when being read.
D3–0 DF[3:0]
Count clock division ratio select
DF[3:0]
Division ratio
0x0 R/W Source clock = PCLK
0xf
0xe
0xd
0xc
0xb
0xa
0x9
0x8
0x7
0x6
0x5
0x4
0x3
0x2
0x1
0x0
reserved
1/16384
1/8192
1/4096
1/2048
1/1024
1/512
1/256
1/128
1/64
1/32
1/16
1/8
1/4
1/2
1/1
D[15:4] Reserved