E0C88832/88862 TECHNICAL MANUAL
EPSON
83
5 PERIPHERAL CIRCUITS AND THEIR OPERATION (Programmable Timer)
5.10.10 Control of programmable timer
Table 5.10.10.1 shows the programmable timer control bits.
Table 5.10.10.1(a) Programmable timer control bits
Address Bit
Name
SR R/W
Function
Comment
1
0
00FF30 D7
D6
D5
D4
D3
D2
D1
D0
–
–
–
MODE16
CHSEL
PTOUT
CKSEL1
CKSEL0
–
–
–
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
–
–
–
0
0
0
0
0
R/W
R/W
R/W
R/W
R/W
–
–
–
16-bit
x
1
Timer 1
On
f
OSC3
f
OSC3
–
–
–
8-bit
x
2
Timer 0
Off
f
OSC1
f
OSC1
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
0
0
0
0
–
0
R/W
R/W
R/W
R/W
R/W
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
1
0
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
RLD07
RLD06
RLD05
RLD04
RLD03
RLD02
RLD01
RLD00
Timer 0 reload data D7 (MSB)
Timer 0 reload data D6
Timer 0 reload data D5
Timer 0 reload data D4
Timer 0 reload data D3
Timer 0 reload data D2
Timer 0 reload data D1
Timer 0 reload data D0 (LSB)
1
1
1
1
1
1
1
1
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
High
Low
00FF33
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
0
–
0
R/W
R/W
R/W
W
R/W
–
–
–
Continuous
Preset
Run
–
–
–
One-shot
No operation
Stop
PSC11
1
1
0
0
PSC10
1
0
1
0
Prescaler dividing ratio
Source clock / 64
Source clock / 16
Source clock / 4
Source clock / 1
Содержание 0C88832
Страница 6: ......