13 PWM & CAPTURE TIMER (T16E)
S1C17001 TECHNICAL MANUAL
EPSON
147
Clock output start
To output the TOUT clock, write 1 to OUTEN (D2/T16E_CTL register). Writing 0 to OUTEN switches the
output to the initial output level as set by INITOL and INVOUT.
∗
OUTEN
: Clock Output Enable Bit in the PWM Timer Control (T16E_CTL) Register (D2/0x5306)
Figure 13.6.2 illustrates the output waveform.
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 and T16E_CB = 5)
Figure 13.6.2: PWM & capture timer output waveform
When INVOUT = 0 (Active High)
The timer outputs Low level (initial output level at output start) until the counter matches the compare data A
set in the T16E_CA register (0x5300). When the counter reaches the next compare data A value, the output pin
switches to High level, and a compare A interrupt factor is generated. If the counter subsequently counts up to
compare data B set in the T16E_CB register (0x5302), the counter is reset and the output pin is returned to the
Low level. A compare B interrupt factor is also generated at the same time.
When INVOUT = 1 (Active Low)
The timer outputs High level (inverted value of the initial output level at output start) until the counter matches
the compare data A set in the T16E_CA register (0x5300). When the counter reaches the next compare data A
value, the output pin switches to Low level, and a compare A interrupt factor is generated. If the counter subse-
quently counts up to compare data B set in the T16E_CB register (0x5302), the counter is reset and the output
pin is returned to the High level. A compare B interrupt factor is also generated at the same time.
Содержание S1C17001
Страница 1: ...Technical Manual S1C17001 CMOS 16 BIT SINGLE CHIP MICROCONTROLLER ...
Страница 31: ...3 MEMORY MAP AND BUS CONTROL 22 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 33: ...4 POWER SUPPLY VOLTAGE 24 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 63: ...6 INITERRUPT CONTROLLER 54 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 87: ...8 CLOCK GENERATOR CLG 78 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 91: ...9 PRESCALER PSC 82 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 133: ...11 16 BIT TIMER T16 124 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 185: ...14 8 BIT OSC1 TIMER T8OSC1 176 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 211: ...16 STOPWATCH TIMER SWT 202 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 219: ...17 WATCHDOG TIMER WDT 210 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 241: ...18 UART 232 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 277: ...20 I2 C 268 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 297: ...21 REMOTE CONTROLLER REMC 288 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 303: ...22 ON CHIP DEBUGGER DBG 294 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 313: ...25 PACKAGE 304 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...