10 Fine MODe 8-BiT TiMeRS (T8F)
10-6
Seiko epson Corporation
S1C17624/604/622/602/621 TeChniCal Manual
Control Register Details
10.10
10.1 List of T8F Registers
Table 10.
address
Register name
Function
0x4200
T8F_CLK0
T8F Ch.0 Count Clock Select Register
Selects a count clock.
0x4202
T8F_TR0
T8F Ch.0 Reload Data Register
Sets reload data.
0x4204
T8F_TC0
T8F Ch.0 Counter Data Register
Counter data
0x4206
T8F_CTL0
T8F Ch.0 Control Register
Sets the timer mode and starts/stops the timer.
0x4208
T8F_INT0
T8F Ch.0 Interrupt Control Register
Controls the interrupt.
0x4280
T8F_CLK1
T8F Ch.1 Count Clock Select Register
Selects a count clock.
0x4282
T8F_TR1
T8F Ch.1 Reload Data Register
Sets reload data.
0x4284
T8F_TC1
T8F Ch.1 Counter Data Register
Counter data
0x4286
T8F_CTL1
T8F Ch.1 Control Register
Sets the timer mode and starts/stops the timer.
0x4288
T8F_INT1
T8F Ch.1 Interrupt Control Register
Controls the interrupt.
The T8F 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.
T8F Ch.
x
Count Clock Select Registers (T8F_ClK
x
)
Register name address
Bit
name
Function
Setting
init. R/W
Remarks
T8F Ch.
x
Count
Clock Select
Register
(T8F_ClK
x
)
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.
T8F Ch.
x
Reload Data Registers (T8F_TR
x
)
Register name address
Bit
name
Function
Setting
init. R/W
Remarks
T8F Ch.
x
Reload Data
Register
(T8F_TR
x
)
0x4202
0x4282
(16 bits)
D15–8 –
reserved
–
–
–
0 when being read.
D7–0 TR[7:0]
Reload data
TR7 = MSB
TR0 = LSB
0x0 to 0xff
0x0 R/W
D[15:8] Reserved