12 16-BIT TIMERS (T16)
S1C31D50/D51 TECHNICAL MANUAL
Seiko Epson Corporation
12-1
(Rev. 2.00)
12 16-bit Timers (T16)
12.1 Overview
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 12.1.1 shows the configuration of a T16 channel.
Table 12.1.1 T16 Channel Configuration of S1C31D50/D51
Item
48-pin package
64-pin package
80-pin package
100-pin package
Number of channels
8 channels (Ch.0–Ch.7)
Event counter function
Not supported (No EXCLm pins are provided.)
Peripheral clock output
(Outputs the counter
underflow signal.)
Ch.1
→
Synchronous serial interface Ch.0 master clock
Ch.2
→
Quad synchronous serial interface Ch.0 master clock
Ch.5
→
Synchronous serial interface Ch.2 master clock
Ch.6
→
Synchronous serial interface Ch.1 master clock
Ch.7
→
12-bit A/D converter trigger signal
T16 Ch.n
To CPU core
(To peripheral circuit)
Underflow
PRESET
Timer control
circuit
Interrupt control
circuit
PRUN
TRMD
CLKSRC[1:0]
CLKDIV[3:0]
Clock generator
UFIE
UFIF
DBRUN
MODEN
CLK_T16_n
Timer counter
TC[15:0]
Reload register
TR[15:0]
Inter
nal data
bu
s
EXCLm
(
)
Figure 12.1.1 Configuration of a T16 Channel
12.2 Input Pin
Table 12.2.1 shows the T16 input pin.
Table 12.2.1 T16 Input Pin
Pin name
I/O
*
Initial status
*
Function
EXCLm
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.