10 FINE MODE 16-BIT TIMERS (T16F)
10-6
Seiko Epson Corporation
S1C17554/564 TECHNICAL MANUAL
Control Register Details
10.10
10.1 List of T16F Registers
Table 10.
Address
Register name
Function
0x4200
T16F_CLK0 T16F Ch.0 Count Clock Select Register
Selects a count clock.
0x4202
T16F_TR0
T16F Ch.0 Reload Data Register
Sets reload data.
0x4204
T16F_TC0
T16F Ch.0 Counter Data Register
Counter data
0x4206
T16F_CTL0 T16F Ch.0 Control Register
Sets the timer mode and starts/stops the timer.
0x4208
T16F_INT0 T16F Ch.0 Interrupt Control Register
Controls the interrupt.
0x4280
T16F_CLK1 T16F Ch.1 Count Clock Select Register
Selects a count clock.
0x4282
T16F_TR1
T16F Ch.1 Reload Data Register
Sets reload data.
0x4284
T16F_TC1
T16F Ch.1 Counter Data Register
Counter data
0x4286
T16F_CTL1 T16F Ch.1 Control Register
Sets the timer mode and starts/stops the timer.
0x4288
T16F_INT1 T16F Ch.1 Interrupt Control Register
Controls the interrupt.
The T16F 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.
T16F Ch.x Count Clock Select Registers (T16F_CLKx)
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
T16F Ch.x
Count Clock
Select Register
(T16F_CLKx)
0x4200
0x4280
(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
D[3:0]
DF[3:0]: Count Clock Division Ratio Select Bits
Selects a PCLK division ratio to generate the count clock.
10.2 PCLK Division Ratio Selection
Table 10.
DF[3:0]
Division ratio
DF[3:0]
Division ratio
0xf
Reserved
0x7
1/128
0xe
1/16384
0x6
1/64
0xd
1/8192
0x5
1/32
0xc
1/4096
0x4
1/16
0xb
1/2048
0x3
1/8
0xa
1/1024
0x2
1/4
0x9
1/512
0x1
1/2
0x8
1/256
0x0
1/1
(Default: 0x0)
Note: Make sure the counter is halted before setting the count clock.
T16F Ch.x Reload Data Registers (T16F_TRx)
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
T16F Ch.x
Reload Data
Register
(T16F_TRx)
0x4202
0x4282
(16 bits)
D15–0 TR[15:0]
Reload data
TR15 = MSB
TR0 = LSB
0x0 to 0xffff
0x0 R/W