13 PWM & CAPTURE TIMER (T16E)
S1C17001 TECHNICAL MANUAL
EPSON
141
13 PWM & Capture Timer (T16E)
13.1 PWM & Capture Timer Overview
The S1C17001 incorporates a single-channel PWM & capture timer.
Figure 13.1.1 illustrates the PWM & capture timer configuration.
Compare data A register
T16E_CA
T16EDF[3:0]
PCLK-1/1 to 1/16K
Inter
nal data bus
Prescaler clock selection
Compare A interrupt request
Compare B interrupt request
PWM output
To ITC
TOUT (P26)
EXCL3 (P27)
Compare data B register
T16E_CB
Compare A
signal
Up-counter
T16E_TC
Count
control
circuit
Output
control
circuit
Interrupt
control
circuit
Comparator
CLKSEL
Input clock selection
RUN/STOP control
T16ERUN
Clock output enable
OUTEN
Initial output level selection
INITOL
Inverted output
INVOUT
Fine mode selection
SELFM
Timer reset
T16ERST
Compare buffer enable
Compare A interrupt enable
CBUFEN
CAIE
Compare B interrupt enable
CBIE
Prescaler
Compare data A buffer
(T16E_CA)
Compare data B buffer
(T16E_CB)
Compare B
signal
Comparator
PWM & capture timer
Figure 13.1.1: PWM & capture timer configuration
The PWM & capture 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.
The 16-bit counter can be reset to 0 or set to a counter value by software and counts up for external signals from the
prescaler output clock or P27 port pin. The count value can be read by software.
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.
Summary of Contents for S1C17001
Page 1: ...Technical Manual S1C17001 CMOS 16 BIT SINGLE CHIP MICROCONTROLLER ...
Page 33: ...4 POWER SUPPLY VOLTAGE 24 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 63: ...6 INITERRUPT CONTROLLER 54 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 87: ...8 CLOCK GENERATOR CLG 78 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 91: ...9 PRESCALER PSC 82 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 133: ...11 16 BIT TIMER T16 124 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 211: ...16 STOPWATCH TIMER SWT 202 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 219: ...17 WATCHDOG TIMER WDT 210 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 241: ...18 UART 232 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 277: ...20 I2 C 268 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 313: ...25 PACKAGE 304 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...