
13 PWM Timer (T16E)
S1C17601 TECHNICAL MANUAL
Seiko Epson Corporation
13-1
13 PWM Timer (T16E)
13.1 PWM Timer Overview
The S1C17601 incorporates the 2-channel PWM Timer.
Figure 13.1.1 illustrates the PWM Timer configuration.
T16EDF[3:0]
Internal
data
bus
PWM output
P23/TOUT3
P02/TOUT4
P24/TOUTN3
P01/TOUTN4
P06/EXCL3
P07/EXCL4
Count
control
circuit
Output
control
circuit
Interrupt
control
circuit
CLKSEL
T16ERUN
OUTEN
INITOL
INVOUT
SELFM
T16ERST
CBUFEN
CAIE
CBIE
PWM timer Ch.x
Compare data A register
T16E_CA
PCLK1/1 to 1/16K
Prescaler clock selection
Compare A interrupt request
Compare B interrupt request
To ITC
Compare data B register
T16E_CB
Compare A
signal
Up-counter
T16E_TC
Comparator
Input clock selection
RUN/STOP control
Clock output enable
Initial output level selection
Inverted output
Fine mode selection
Timer reset
Compare buffer enable
Compare A interrupt enable
Compare B interrupt enable
Prescaler
Compare data A buffer
(T16E_CA)
Compare data B buffer
(T16E_CB)
Compare B
signal
Comparator
Figure 13.1.1: PWM Timer configuration
The PWM Timer includes a 16-bit up-counter (T16E_TC register), two 16-bit compare data registers (T16E_CA
and T16E_CB registers), and the corresponding buffers.
Software can configure the count value of the 16-bit counter, and reset it to 0, while an external signal from the
input/output port pin (EXCLx) or the Prescaler output clock counts up the 16-bit counter. Software can read the
count value.
The compare data A and B registers hold data for comparison against the up-counter contents. Data can be read
or written directly to or from the compare data registers. The compare data buffers enables loading to the compare
data registers of comparison values set when the counter is reset by software or by a compare B match signal.
Software can be used to set which of the compare data register and buffer the comparison values are written to.
If the counter value matches the contents of each compare data register, the comparator outputs a signal to control
interrupts and output signals. These registers can be used to program the interrupt occurrence cycle and output
clock frequency and duty ratio.
Note: The 2-channel PWM timer has the same functions for both channels. Only the control register
addresses are different. The description in this section applies to all PWM timer channels. The
“x” in the register name indicates the channel number (0 or 1). Register addresses are given in
the format (Ch.0/Ch.1).
Example: T16E_CTLx register (0x5306/0x5366)
Ch.0: T16E_CTL0 register (0x5306)
Ch.1: T16E_CTL1 register (0x5366)