14 16-BIT PWM TIMERS (T16B)
S1C17M12/M13 TECHNICAL MANUAL
Seiko Epson Corporation
14-1
(Rev. 1.2)
14 16-bit PWM Timers (T16B)
14.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 14.1.1 shows the T16B configuration.
Table 14.1.1 T16B Channel Configuration of S1C17M12/M13
Item
S1C17M12
S1C17M13
Number of channels
1 channel (Ch.0)
Event counter function
Ch.0: EXCL00 or EXCL01 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)
Capture signal input
Ch.0: CAP00 and CAP01 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.