15 16-BIT PWM TIMERS (T16B)
S1C17M20/M21/M22/M23/M24/M25
Seiko Epson Corporation
15-1
TECHNICAL MANUAL (Rev. 1.0)
15 16-bit PWM Timers (T16B)
15.1 Overview
T16B is a 16-bit PWM timer with comparator/capture functions. The features of T16B are listed below.
• Counter block
- 16-bit up/down counter
- A clock source and a clock division ratio for generating the count clock are selectable in each channel.
- The count mode is configurable from combinations of up, down, or up/down count operations, and one-shot
operations (counting for one cycle configured) or repeat operations (counting continuously until stopped via
software).
- Supports an event counter function using an external clock.
• Comparator/capture block
- Supports up to six comparator/capture circuits to be included per one channel.
- The comparator compares the counter value with the values specified via software to generate interrupt sig-
nals and a PWM waveform. (Can be used as an interval timer, PWM waveform generator, and external event
counter.)
- The capture circuit captures counter values using external/software trigger signals and generates interrupts.
(Can be used to measure external event periods/cycles.)
Figure 15.1.1 shows the T16B configuration.
Table 15.1.1 T16B Channel Configuration of S1C17M20/M21/M22/M23/M24/M25
Item
S1C17M20/M23
S1C17M21/M24
S1C17M22/M25
24-pin package
32-pin package
Number of channels
2 channels (Ch.0 and Ch.1)
Event counter function
Ch.0: EXCL00 or EXCL01 pin input
Ch.1: EXCL10 or EXCL11 pin input
Number of comparator/
capture circuits per channel
2 systems (0 and 1)
Timer generating signal output
Ch.0: TOUT00 and TOUT01 pin outputs (2 systems)
Ch.1: TOUT10 and TOUT11 pin outputs (2 systems)
Capture signal input
Ch.0: CAP00 and CAP01 pin inputs (2 systems)
Ch.1: CAP10 and CAP11 pin inputs (2 systems)
Note: In this chapter, ‘n’ refers to a channel number, and ‘m’ refers to an input/output pin number or a
comparator/capture circuit number in a channel.