
S1C88348/317/316/308 TECHNICAL HARDWARE
EPSON
I-109
5 PERIPHERAL CIRCUITS AND THEIR OPERATION (Programmable Timer)
5.11.10 Control of programmable timer
Table 5.11.10.1 shows the programmable timer control bits.
Table 5.11.10.1(a) Programmable timer control bits
Address Bit
Name
00FF30 D7
D6
D5
D4
D3
D2
D1
D0
–
MODE16
CHSEL
PTOUT
CKSEL1
CKSEL0
SR R/W
Function
Comment
–
8/16-bit mode selection
TOUT output channel selection
TOUT output control
Prescaler 1 source clock selection
Prescaler 0 source clock selection
Constantry "0" when
being read
10
–
0
R/W
–
16-bit x 1
Timer 1
On
fOSC3
–
8-bit x 2
Timer 0
Off
fOSC1
00FF31 D7
D6
D5
D4
D3
D2
D1
D0
EVCNT
FCSEL
PLPOL
PSC01
PSC00
CONT0
PSET0
PRUN0
Timer 0 counter mode selection
Timer 0
function selection
Timer 0
pulse polarity
selection
Timer 0 prescaler dividing ratio selection
Timer 0 continuous/one-shot mode selection
Timer 0 preset
Timer 0 Run/Stop control
"0" when being read
0
–
0
R/W
W
R/W
Event counter
Pulse width
measurement
With
noise rejector
Rising edge
of K10 input
High level
measurement
for K10 input
Continuous
Preset
Run
Timer
Normal
mode
Without
noise rejector
Falling edge
of K10 input
Low level
measurement
for K10 input
One-shot
No operation
Stop
In timer mode
In event counter mode
Down count timing
in event counter mode
In pulse width
measurement mode
PSC01
1
0
PSC00
1
0
1
0
Prescaler dividing ratio
Source clock / 64
Source clock / 16
Source clock / 4
Source clock / 1
00FF32 D7
D6
D5
D4
D3
D2
D1
D0
–
PSC11
PSC10
CONT1
PSET1
PRUN1
–
Timer 1 prescaler dividing ratio selection
Timer 1 continuous/one-shot mode selection
Timer 1 preset
Timer 1 Run/Stop control
Constantry "0" when
being read
"0" when being read
–
0
–
0
R/W
W
R/W
–
One-shot
No operation
Stop
PSC11
1
0
PSC10
1
0
1
0
Prescaler dividing ratio
Source clock / 64
Source clock / 16
Source clock / 4
Source clock / 1
–
Continuous
Preset
Run