11 16-BiT TiMeRS (T16)
S1C17624/604/622/602/621 TeChniCal Manual
Seiko epson Corporation
11-1
16-bit Timers (T16)
11
T16 Module Overview
11.1
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
2
C master operating clocks and A/D conversion trigger signal from the counter underflow
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.
Reload data register
T16_TR
x
PRUN
DF[3:0]
Underflow
Run/stop control
Internal data bus
Count clock select
Interrupt request
Clock outputs
To ITC
To A/D converter (from Ch.0)
To SPI (from Ch.1)
To I
2
C master (from Ch.2)
PCLK
PRESER
Timer reset
Down counter
T16_TC
x
Control
circuit
Count mode select
TRMD
16-bit timer Ch.
x
Divider
(1/1–1/16K)
CLG
EXCL
x
External input signal polarity select
CKACTV
Operating mode select
CKSL[1:0]
1.1 T16 Configuration (1 Channel)
Figure 11.
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_CTL
x
register
Ch.0: T16_CTL0 register
Ch.1: T16_CTL1 register
Ch.2: T16_CTL2 register