S1C63653 TECHNICAL MANUAL
EPSON
69
CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (Programmable Timer)
4.10.9 I/O memory of programmable timer
Table 4.10.9.1 shows the I/O addresses and the control bits for the programmable timer.
Table 4.10.9.1(a) Control bits of programmable timer
Address
Comment
D3
D2
Register
D1
D0
Name
Init 1
PTPS01
PTPS00
PTRST03
PTRUN0
0
– 2
0
Reset
Run
Invalid
Stop
Prescaler 0
division ratio
selection
Timer 0 reset (reload)
Timer 0 Run/Stop
WR/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
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
PTRST13
PTRUN1
0
– 2
0
Reset
Run
Invalid
Stop
Prescaler 1
division ratio
selection
Timer 1 reset (reload)
Timer 1 Run/Stop
WR/W
R/W
FFC4H
PTPS11 PTPS10 PTRST1 PTRUN1
0
1/1
1
1/4
2
1/32
3
1/256
[PTPS11, 10]
Division ratio
R/W
FFC0H
MOD16 EVCNT FCSEL
PLPOL
10
RLD03
RLD02
RLD01
RLD00
0
MSB
Programmable timer 0 reload data (low-order 4 bits)
LSB
R/W
FFC6H
RLD03
RLD02
RLD01
RLD00
RLD07
RLD06
RLD05
RLD04
0
MSB
Programmable timer 0 reload data (high-order 4 bits)
LSB
R/W
FFC7H
RLD07
RLD06
RLD05
RLD04
RLD13
RLD12
RLD11
RLD10
0
MSB
Programmable timer 1 reload data (low-order 4 bits)
LSB
R/W
FFC8H
RLD13
RLD12
RLD11
RLD10
RLD17
RLD16
RLD15
RLD14
0
MSB
Programmable timer 1 reload data (high-order 4 bits)
LSB
R/W
FFC9H
RLD17
RLD16
RLD15
RLD14
PTD03
PTD02
PTD01
PTD00
0
MSB
Programmable timer 0 data (low-order 4 bits)
LSB
R
FFCCH
PTD03
PTD02
PTD01
PTD00
PTD07
PTD06
PTD05
PTD04
0
MSB
Programmable timer 0 data (high-order 4 bits)
LSB
R
FFCDH
PTD07
PTD06
PTD05
PTD04
0 3
CHSEL0
PTOUT
– 2
0
Timer 1
On
Timer 0
Off
Unused
TOUT output selection
TOUT output control
RR/W
FFC1H
00
CHSEL0 PTOUT
0 3
CKSEL1
CKSEL0
– 2
0
OSC3
OSC1
Unused
Prescaler 1 source clock selection
Prescaler 0 source clock selection
RR/W
FFC2H
00
CKSEL1 CKSEL0
PTD13
PTD12
PTD11
PTD10
0
MSB
Programmable timer 1 data (low-order 4 bits)
LSB
R
FFCEH
PTD13
PTD12
PTD11
PTD10
PTD17
PTD16
PTD15
PTD14
0
MSB
Programmable timer 1 data (high-order 4 bits)
LSB
R
FFCFH
PTD17
PTD16
PTD15
PTD14
CD03
CD02
CD01
CD00
0
MSB
Programmable timer 0 compare data (low-order 4 bits)
LSB
R/W
FFD2H
CD03
CD02
CD01
CD00
*1 Initial value at initial reset
*3 Constantly "0" when being read
*2 Not set in the circuit