
S1C88409 TECHNICAL MANUAL
EPSON
117
CHAPTER 5: PERIPHERAL CIRCUITS AND OPERATION (16-bit Programmable Timer)
Table 5.12.7.1(c) 16-bit programmable timer control bits
Address
Function
R/W
Init
0
1
Comment
Name
Bit
00FF36
16-bit programmable timer 0
data register
R
1
Low-order 8 bits data
in 16-bit mode
PTM07
PTM06
PTM05
PTM04
PTM03
PTM02
PTM01
PTM00
D7
D6
D5
D4
D3
D2
D1
D0
00FFD9
–
R42 output port data register
R41 output port data register
R40 output port data register
–
R/W
–
1
–
Low
–
High
"0" when being read
–
R42D
R41D
R40D
D7
D6
D5
D4
D3
D2
D1
D0
D7(MSB)
D6
D5
D4
D3
D2
D1
D0(LSB)
00FF37
16-bit programmable timer 1
data register
R
1
High-order 8 bits data
in 16-bit mode
PTM17
PTM16
PTM15
PTM14
PTM13
PTM12
PTM11
PTM10
D7
D6
D5
D4
D3
D2
D1
D0
D7(MSB)
D6
D5
D4
D3
D2
D1
D0(LSB)
00FFD4
–
R42 high impedance control register
R41 high impedance control register
R40 high impedance control register
–
R/W
–
1
–
Comple-
mentary
–
High
impedance
"0" when being read
–
HZR42
HZR41
HZR40
D7
D6
D5
D4
D3
D2
D1
D0
MODE16: 8-/16-bit mode selection register
(00FF30HD7)
Selects either the 8-bit or 16-bit mode.
When "1" is written: 16 bits
× 1 channel
When "0" is written: 8 bits
× 2 channels
Reading: Valid
Select whether Timer 0 and Timer 1 are used as 2
channels independent 8-bit timers or as 1 channel
combined 16-bit timer. When "0" is written to the
MODE16 register, 8-bit
× 2 channels is selected and
when "1" is written, 16-bit
× 1 channel is selected.
At initial reset, the MODE16 register is set to "0"
(8-bit
× 2 channels).
CKSEL0: Timer 0 input clock selection register
(00FF30HD0)
CKSEL1: Timer 1 input clock selection register
(00FF31HD0)
Selects the input clock for each timer.
When "1" is written: External clock
When "0" is written: Internal clock
Reading: Valid
The clock to be input to each timer is selected from
either the external clock (input signal of input port)
or the internal clock (prescaler output clock).
When "0" is written to the CKSEL0 register, the
internal clock (prescaler output INCL00) is se-
lected as the input clock for Timer 0. When "1" is
written, the external clock (K10 input EXCL00) is
selected and the timer functions as an event
counter.
Same as above, when "0" is written to the CKSEL1
register, the internal clock (prescaler output
INCL01) is selected as the input clock for Timer 1.
When "1" is written, the external clock (K11 input
EXCL01) is selected.
In the 16-bit mode, the setting of the CKSEL1
register is invalid.
At initial reset, the CKSEL register is set to "0"
(internal clock).