84
EPSON
S1C63666 TECHNICAL MANUAL
CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (Programmable Timer)
4.11.9 I/O memory of programmable timer
Table 4.11.9.1 shows the I/O addresses and the control bits for the programmable timer.
Table 4.11.9.1(a) Control bits of programmable timer
Address
Comment
D3
D2
Register
D1
D0
Name
Init
∗
1
PTPS01
PTPS00
PTRST0
∗
3
PTRUN0
0
0
–
∗
2
0
Reset
Run
Invalid
Stop
Prescaler 0
division ratio
selection
Timer 0 reset (reload)
Timer 0 Run/Stop
W
R/W
R/W
FFC3H
PTPS01 PTPS00 PTRST0 PTRUN0
0
1/1
1
1/4
2
1/32
3
1/256
[PTPS01, 00]
Division ratio
MOD16
EVCNT
FCSEL
PLPOL
0
0
0
0
16 bits
Event ct.
With NR
8 bits
Timer
No NR
16-bit mode selection
Timer 0 counter mode selection
Timer 0 function selection (for event counter mode)
Timer 0 pulse polarity selection (for event counter mode)
PTPS11
PTPS10
PTRST1
∗
3
PTRUN1
0
0
–
∗
2
0
Reset
Run
Invalid
Stop
Prescaler 1
division ratio
selection
Timer 1 reset (reload)
Timer 1 Run/Stop
W
R/W
R/W
FFC4H
PTPS11 PTPS10 PTRST1 PTRUN1
0
1/1
1
1/4
2
1/32
3
1/256
[PTPS11, 10]
Division ratio
PTPS21
PTPS20
PTRST2
∗
3
PTRUN2
0
0
–
∗
2
0
Reset
Run
Invalid
Stop
Prescaler 2
division ratio
selection
Timer 2 reset (reload)
Timer 2 Run/Stop
W
R/W
R/W
FFC5H
PTPS21 PTPS20 PTRST2 PTRUN2
0
1/1
1
1/4
2
1/32
3
1/256
[PTPS21, 20]
Division ratio
R/W
FFC0H
MOD16 EVCNT FCSEL
PLPOL
1
0
0
∗
3
CHSEL1
CHSEL0
PTOUT
–
∗
2
0
0
0
On
Off
Unused
TOUT output
selection
TOUT output control
R
R/W
FFC1H
0
CHSEL1 CHSEL0 PTOUT
0
Timer 0
1
Timer 1
2
Timer 2
[CHSEL1,0]
Timer
0
∗
3
CKSEL2
CKSEL1
CKSEL0
–
∗
2
0
0
0
OSC3
OSC3
OSC3
OSC1
OSC1
OSC1
Unused
Prescaler 2 source clock selection
Prescaler 1 source clock selection
Prescaler 0 source clock selection
R
R/W
FFC2H
0
CKSEL2 CKSEL1 CKSEL0
RLD03
RLD02
RLD01
RLD00
0
0
0
0
MSB
Programmable timer 0 reload data (low-order 4 bits)
LSB
R/W
FFC6H
RLD03
RLD02
RLD01
RLD00
RLD07
RLD06
RLD05
RLD04
0
0
0
0
MSB
Programmable timer 0 reload data (high-order 4 bits)
LSB
R/W
FFC7H
RLD07
RLD06
RLD05
RLD04
RLD13
RLD12
RLD11
RLD10
0
0
0
0
MSB
Programmable timer 1 reload data (low-order 4 bits)
LSB
R/W
FFC8H
RLD13
RLD12
RLD11
RLD10
RLD17
RLD16
RLD15
RLD14
0
0
0
0
MSB
Programmable timer 1 reload data (high-order 4 bits)
LSB
R/W
FFC9H
RLD17
RLD16
RLD15
RLD14
RLD23
RLD22
RLD21
RLD20
0
0
0
0
MSB
Programmable timer 2 reload data (low-order 4 bits)
LSB
R/W
FFCAH
RLD23
RLD22
RLD21
RLD20
RLD27
RLD26
RLD25
RLD24
0
0
0
0
MSB
Programmable timer 2 reload data (high-order 4 bits)
LSB
R/W
FFCBH
RLD27
RLD26
RLD25
RLD24
PTD03
PTD02
PTD01
PTD00
0
0
0
0
MSB
Programmable timer 0 data (low-order 4 bits)
LSB
R
FFCCH
PTD03
PTD02
PTD01
PTD00
PTD07
PTD06
PTD05
PTD04
0
0
0
0
MSB
Programmable timer 0 data (high-order 4 bits)
LSB
R
FFCDH
PTD07
PTD06
PTD05
PTD04
Содержание S1C63666
Страница 1: ...Technical Manual CMOS 4 BIT SINGLE CHIP MICROCOMPUTER S1C63666 Technical Hardware S1C63666 ...
Страница 4: ......
Страница 6: ......