![Seiko Epson S1C17153 Technical Manual Download Page 77](http://html1.mh-extra.com/html/seiko-epson/s1c17153/s1c17153_technical-manual_1235939077.webp)
10 8-BiT TiMeR (T8)
S1C17153 TeChniCal Manual
Seiko epson Corporation
10-5
(Rev. 1.0)
Control Register Details
10.9
9.1 List of T8 Registers
Table 10.
address
Register name
Function
0x4240
T8_CLK0
T8 Ch.0 Count Clock Select Register
Selects a count clock.
0x4242
T8_TR0
T8 Ch.0 Reload Data Register
Sets reload data.
0x4244
T8_TC0
T8 Ch.0 Counter Data Register
Counter data
0x4246
T8_CTL0
T8 Ch.0 Control Register
Sets the timer mode and starts/stops the timer.
0x4248
T8_INT0
T8 Ch.0 Interrupt Control Register
Controls the interrupt.
The T8 registers are described in detail below.
note
: When data is written to the registers, the “Reserved” bits must always be written as 0 and not 1.
T8 Ch.
x
Count Clock Select Register (T8_ClK
x
)
Register name address
Bit
name
Function
Setting
init. R/W
Remarks
T8 Ch.
x
Count
Clock Select
Register
(T8_ClK
x
)
0x4240
(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.
9.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.
T8 Ch.
x
Reload Data Register (T8_TR
x
)
Register name address
Bit
name
Function
Setting
init. R/W
Remarks
T8 Ch.
x
Reload
Data Register
(T8_TR
x
)
0x4242
(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
D[7:0]
TR[7:0]: Reload Data Bits
Sets the counter initial value. (Default: 0x0)
The reload data set in this register is preset to the counter when the timer is reset or the counter under-
flows. If the timer is started after resetting, it counts down from the reload value (initial value).