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

Epson network device technical manual
Table of Contents

Advertisement

4.10 Programmable Timer

4.10.1 Configuration of programmable timer

The S1C63558 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
channel programmable timers. Timer 0 also has an event counter function using the K13 input port
terminal.
Figure 4.10.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
oscillation
circuit
OSC3
oscillation
circuit
Interrupt
Interrupt
control
request
circuit
Output port
TOUT (R02)
R02
Serial interface
S1C63558 TECHNICAL MANUAL
CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (Programmable Timer)
Input port
K13
K13
Timer 0 Run/Stop
PTRUN0
f
OSC1
Selector
2,048
Divider
CKSEL0
Timer 1 Run/Stop
PTRUN1
Selector
f
OSC3
CKSEL1
1/2
Selector
PTOUT
CHSEL
1/2
Fig. 4.10.1.1 Configuration of programmable timer
Programmable timer 0
PTRST0
Timer 0 reset
Clock
control
Prescaler
circuit
Prescaler
setting
Hz
PTPS00
PTPS01
Timer function setting
FCSEL
PLPOL
Pulse polarity setting
Programmable timer 1
PTRST1
Timer 1 reset
Clock
control
Prescaler
circuit
Prescaler
setting
PTPS10
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
2
65

Advertisement

Table of Contents
loading

Table of Contents