Programmable Timer; Configuration Of Programmable Timer - Epson S1C63358 Technical Manual

Cmos 4-bit single chip microcomputer
Table of Contents

Advertisement

CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (Programmable Timer)

4.11 Programmable Timer

4.11.1 Configuration of programmable timer

The S1C63358 has two 8-bit programmable timer systems (timer 0 and timer 1) built-in.
Timer 0 and timer 1 are composed of 8-bit presettable down counters and they can be used as 8-bit × 2
channel programmable timers or a 16-bit × 1 channel programmable timer by software setting. Timer 0
also has an event counter function using the K13 input port terminal.
Figure 4.11.1.1 shows the configuration of the programmable timer.
The programmable timer is designed to count down from the initial value set in the counter with soft-
ware. An underflow according to the initial value occurs by counting down and is used for the following
functions:
• Presetting the initial value to the counter to generate the periodical underflow signal
• Generating an interrupt
• Generating a TOUT signal output from the R02 output port terminal
• Generating the synchronous clock source for the serial interface (timer 1 underflow is used, and it is
possible to set the transfer rate)
OSC1
f
OSC1
oscillation
circuit
OSC3
oscillation
f
OSC3
circuit
Interrupt
Interrupt
control
request
circuit
Output port
TOUT (R02)
R02
Serial interface
76
Input port
K13
K13
Timer 0 Run/Stop
PTRUN0
Selector
2,048
Hz
Divider
CKSEL0
Timer 1 Run/Stop
PTRUN1
Selector
CKSEL1
1/2
Selector
PTOUT
CHSEL
MODE16
1/2
Fig. 4.11.1.1 Configuration of programmable timer
Programmable timer 0
PTRST0
Timer 0 reset
Clock
control
Prescaler
circuit
Prescaler
setting
PTPS00
PTPS01
Timer function setting
FCSEL
PLPOL
Pulse polarity setting
Programmable timer 1
PTRST1
Timer 1 reset
Clock
control
Prescaler
circuit
Prescaler
setting
PTPS10
MODE16
PTPS11
EPSON
Reload data register
RLD00–RLD07
8-bit
Underflow
signal
down counter
Data buffer
PTD00–PTD07
EVCNT
Event counter mode setting
Reload data register
RLD10–RLD17
8-bit
Underflow
signal
down counter
Data buffer
PTD10–PTD17
S1C63358 TECHNICAL MANUAL

Advertisement

Table of Contents
loading

Table of Contents