13 PWM & CAPTURE TIMER (T16E)
S1C17704 TECHNICAL MANUAL
EPSON
13-1
13 PWM & Capture Timer (T16E)
13.1 Outline of the PWM & Capture Timer
The S1C17704 incorporates one channel of PWM & capture timer.
Figure 13.1.1 shows the structure of the PWM & capture timer.
Compare data A register
T16E_CA
T16EDF[3:0]
PCLK•1/1–1/16K
Internal data bus
Prescaler clock select
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 select
Run/stop control
T16ERUN
Clock output enable
OUTEN
Initial output level select
INITOL
Inverted output
INVOUT
Fine mode select
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 Structure of PWM & Capture Timer
In the PWM & capture timer, a 16-bit up-counter (T16E_TC register), as well as two 16-bit compare data registers
(T16E_CA and T16E_CB registers) and their buffers, are provided.
The 16-bit counter can be reset to 0 or set with an initial value by software and counts up using the prescaler output
clock or an external signal input from the P27 port. The counter value can be read by software.
The compare data A and B registers are used to store the data to be compared with the content of the up-counter.
This register can be directly read and written. Furthermore, compare data can be set via the compare data buffer. In
this case, the set value is loaded to the compare data register when the counter is reset by the compare B match sig-
nal or software. The software can select whether compare data is written to the compare data register or the buffer.
When the counter value matches to the content of each compare data register, the comparator outputs a signal that
controls the interrupt and the output signal. Thus the registers allow interrupt generating intervals and the timer's
output clock frequency and duty ratio to be programmed.
Содержание S1C17704
Страница 1: ...TECHNICAL MANUAL S1C17704 CMOS 16 BIT SINGLE CHIP MICROCOMPUTER ...
Страница 22: ...1 OVERVIEW 1 10 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 42: ...3 MEMORY MAP BUS CONTROL 3 12 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 82: ...6 INTERRUPT CONTROLLER ITC 6 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 108: ...8 CLOCK GENERATOR CLG 8 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 112: ...9 PRESCALER PSC 9 4 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 138: ...10 I O PORTS P 10 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 156: ...11 16 BIT TIMERS T16 11 18 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 208: ...14 8 BIT OSC1 TIMER T8OSC1 14 16 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 234: ...16 STOPWATCH TIMER SWT 16 14 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 242: ...17 WATCHDOG TIMER WDT 17 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 264: ...18 UART 18 22 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 300: ...20 I2C 20 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 320: ...21 REMOTE CONTROLLER REMC 21 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 360: ...24 ON CHIP DEBUGGER DBG 24 6 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 362: ...25 BASIC EXTERNAL WIRING DIAGRAM 25 2 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...