Epson S1C17624 Technical Manual page 124

Cmos 16-bit single chip microcontroller
Table of Contents

Advertisement

11
16-bit Timers (T16)
11.1
T16 Module Overview
The S1C17624/604/622/602/621 includes three-channel 16-bit timer module (T16).
The features of the T16 module are listed below.
• 16-bit presettable down counter with a 16-bit reload data register for setting the preset value
• Generates the SPI, I
C master operating clocks and A/D conversion trigger signal from the counter underflow
2
signals.
• Includes an event counter function and a pulse width measurement function using external signal input from the
I/O port pins.
• Generates underflow interrupt signals to the interrupt controller (ITC).
• Any desired time intervals and serial transfer rates can be programmed by selecting an appropriate count clock
and preset value.
Figure 11.1.1 shows the T16 configuration.
EXCLx
PCLK
CLG
To ITC
To A/D converter (from Ch.0)
To SPI (from Ch.1)
2
To I
C master (from Ch.2)
Each channel of the T16 module consists of a 16-bit presettable down counter and a 16-bit reload data register
holding the preset value. The timer counts down from the initial value set in the reload data register and outputs an
underflow signal when the counter underflows. The underflow signal is used to generate an interrupt and an internal
serial interface clock or an A/D converter trigger signal. The underflow cycle can be programmed by selecting the
count clock and reload data, enabling the application program to obtain time intervals and serial transfer rates as
required.
note: All three T16 channels have the same functions except for the control register addresses. The de-
scription in this chapter applies to all channels. The 'x' in the register name refers to the channel
number (0 to 2).
Example: T16_CTLx register
Ch.0: T16_CTL0 register
Ch.1: T16_CTL1 register
Ch.2: T16_CTL2 register
S1C17624/604/622/602/621 TeChniCal Manual
Count mode select
Operating mode select
External input signal polarity select
Count clock select
Divider
(1/1–1/16K)
Interrupt request
Figure 11.
1.1 T16 Configuration (1 Channel)
Seiko epson Corporation
TRMD
CKSL[1:0]
CKACTV
DF[3:0]
Control
circuit
Clock outputs
11 16-BiT TiMeRS (T16)
16-bit timer Ch.x
PRESER
Timer reset
PRUN
Run/stop control
Reload data register
T16_TRx
Down counter
T16_TCx
Underflow
11-1

Advertisement

Table of Contents
loading

This manual is also suitable for:

S1c17604S1c17622S1c17602S1c17621

Table of Contents