I/O Memory Of Programmable Timer - Epson S1C63666 Technical Manual

Cmos 4-bit single chip microcomputer
Table of Contents

Advertisement

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.
Register
Address
D3
D2
MOD16 EVCNT FCSEL PLPOL
FFC0H
R/W
0
CHSEL1 CHSEL0 PTOUT
FFC1H
R
0
CKSEL2 CKSEL1 CKSEL0
FFC2H
R
PTPS01 PTPS00 PTRST0 PTRUN0
FFC3H
R/W
PTPS11 PTPS10 PTRST1 PTRUN1
FFC4H
R/W
PTPS21 PTPS20 PTRST2 PTRUN2
FFC5H
R/W
RLD03 RLD02 RLD01 RLD00
FFC6H
R/W
RLD07 RLD06 RLD05 RLD04
FFC7H
R/W
RLD13 RLD12 RLD11 RLD10
FFC8H
R/W
RLD17 RLD16 RLD15 RLD14
FFC9H
R/W
RLD23 RLD22 RLD21 RLD20
FFCAH
R/W
RLD27 RLD26 RLD25 RLD24
FFCBH
R/W
PTD03 PTD02 PTD01 PTD00
FFCCH
R
PTD07 PTD06 PTD05 PTD04
FFCDH
R
84
Table 4.11.9.1(a) Control bits of programmable timer
∗1
D1
D0
Name Init
MOD16
0
EVCNT
0
FCSEL
0
PLPOL
0
∗3
∗2
0
CHSEL1
0
CHSEL0
0
R/W
PTOUT
0
∗3
∗2
0
CKSEL2
0
CKSEL1
0
R/W
CKSEL0
0
PTPS01
0
PTPS00
0
∗3
∗2
PTRST0
W
R/W
PTRUN0
0
PTPS11
0
PTPS10
0
∗3
∗2
PTRST1
W
R/W
PTRUN1
0
PTPS21
0
PTPS20
0
∗3
∗2
PTRST2
W
R/W
PTRUN2
0
RLD03
0
RLD02
0
RLD01
0
RLD00
0
RLD07
0
RLD06
0
RLD05
0
RLD04
0
RLD13
0
RLD12
0
RLD11
0
RLD10
0
RLD17
0
RLD16
0
RLD15
0
RLD14
0
RLD23
0
RLD22
0
RLD21
0
RLD20
0
RLD27
0
RLD26
0
RLD25
0
RLD24
0
PTD03
0
PTD02
0
PTD01
0
PTD00
0
PTD07
0
PTD06
0
PTD05
0
PTD04
0
1
0
16 bits
8 bits
16-bit mode selection
Event ct.
Timer
Timer 0 counter mode selection
With NR
No NR
Timer 0 function selection (for event counter mode)
Timer 0 pulse polarity selection (for event counter mode)
Unused
TOUT output
selection
On
Off
TOUT output control
Unused
OSC3
OSC1
Prescaler 2 source clock selection
OSC3
OSC1
Prescaler 1 source clock selection
OSC3
OSC1
Prescaler 0 source clock selection
Prescaler 0
division ratio
selection
Reset
Invalid
Timer 0 reset (reload)
Run
Stop
Timer 0 Run/Stop
Prescaler 1
division ratio
selection
Reset
Invalid
Timer 1 reset (reload)
Run
Stop
Timer 1 Run/Stop
Prescaler 2
division ratio
selection
Reset
Invalid
Timer 2 reset (reload)
Run
Stop
Timer 2 Run/Stop
MSB
Programmable timer 0 reload data (low-order 4 bits)
LSB
MSB
Programmable timer 0 reload data (high-order 4 bits)
LSB
MSB
Programmable timer 1 reload data (low-order 4 bits)
LSB
MSB
Programmable timer 1 reload data (high-order 4 bits)
LSB
MSB
Programmable timer 2 reload data (low-order 4 bits)
LSB
MSB
Programmable timer 2 reload data (high-order 4 bits)
LSB
MSB
Programmable timer 0 data (low-order 4 bits)
LSB
MSB
Programmable timer 0 data (high-order 4 bits)
LSB
EPSON
Comment
[CHSEL1,0]
0
1
Timer
Timer 0
Timer 1
[PTPS01, 00]
0
1
Division ratio
1/1
1/4
[PTPS11, 10]
0
1
Division ratio
1/1
1/4
[PTPS21, 20]
0
1
Division ratio
1/1
1/4
S1C63666 TECHNICAL MANUAL
2
Timer 2
2
3
1/32
1/256
2
3
1/32
1/256
2
3
1/32
1/256

Advertisement

Table of Contents
loading

Table of Contents