9 16-BIT TIMERS (T16)
S1C17F13 TeChniCal Manual
Seiko epson Corporation
9-1
(Rev. 1.0)
16-bit Timers (T16)
9
Overview
9.1
T16 is a 16-bit timer. The features of T16 are listed below.
• 16-bit presettable down counter
• Provides a reload data register for setting the preset value.
• A clock source and clock division ratio for generating the count clock are selectable.
• Repeat mode or one-shot mode is selectable.
• Can generate counter underflow interrupts.
Figure 9.1.1 shows the configuration of a T16 channel.
Channel configuration in this IC
• Number of channels:
4 channels (Ch.0 to Ch.3)
• Event counter function: Unavailable
• Peripheral clock output: Ch.1
→
SPI Ch.0 master clock
Ch.2
→
SPI Ch.1 master clock
Ch.3
→
SPI Ch.2 master clock
(Outputs the counter underflow signal)
T16 Ch.
n
To interrupt controller
(To peripheral circuit)
Underflow
PRESET
Timer control
circuit
Interrupt control
circuit
Chattering filter
PRUN
TRMD
CLKSRC[1:0]
CLKDIV[3:0]
Clock generator
I/O port
UFIE
UFIF
DBRUN
MODEN
CLK_T16_
n
EXCL
m
Timer counter
TC[15:0]
Reload register
TR[15:0]
Inter
nal data
bu
s
1.1 Configuration of a T16 Channel
Figure 9.
Input Pin
9.2
Table 9.2.1 shows the T16 input pin.
2.1 T16 Input Pin
Table 9.
Pin name
I/O
*
Initial status
*
Function
EXCL
m
I
I (Hi-Z)
External event signal input pin
*
Indicates the status when the pin is configured for T16.
If the port is shared with the EXCL
m
pin and other functions, the EXCL
m
input function must be assigned to the
port before using the event counter function. The EXCL
m
signal can be input through the chattering filter. For more
information, refer to the “I/O Ports” chapter.