13 PWM & CAPTURE TIMER (T16E)
S1C17704 TECHNICAL MANUAL
EPSON
13-7
Starting clock output
To output the TOUT clock, write 1 to OUTEN (D2/T16E_CTL register). Clock output is stopped by writing 0
to OUTEN and goes to the initial output level according to the set values of INITOL and INVOUT.
∗
OUTEN
: Clock Output Enable Bit in the PWM Timer Control (T16E_CTL) Register (D2/0x5306)
Figure 13.6.2 shows the waveform of the output signal.
Input clock
T16ERST
OUTEN
T16ERUN
Counter value
Compare A signal
Compare B signal
TOUT output (INITOL = 0, INVOUT = 0)
TOUT output (INITOL = 0, INVOUT = 1)
TOUT output (INITOL = 1, INVOUT = 0)
TOUT output (INITOL = 1, INVOUT = 1)
1 2 3 4 5 0
0
1
2 3 4 5 0 1 2 3 4 5 0 1
(When T16E_CA = 3, T16E_CB = 5)
Figure 13.6.2 Waveform of PWM & Capture Timer Output
When INVOUT = 0 (active high)
The timer outputs a low level (initial output level when output is started) until the counter becomes equal
to the compare data A set in the T16E_CA register (0x5300). When the counter is incremented to the next
value from the compare data A, the output pin goes high and a cause of compare A interrupt occurs. When
the counter becomes equal to the compare data B set in the T16E_CB register (0x5302), the counter is reset
and the output pin goes low. At the same time a cause of compare B interrupt occurs.
When INVOUT = 1 (active low)
The timer outputs a high level (inverted initial output level when output is started) until the counter becomes
equal to the compare data A set in the T16E_CA register (0x5300). When the counter is incremented to the
next value from the compare data A, the output pin goes low and a cause of compare A interrupt occurs.
When the counter becomes equal to the compare data B set in the T16E_CB register (0x5302), the counter
is reset and the output pin goes high. At the same time a cause of compare B interrupt occurs.
Содержание 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 ...