
13 PWM Timer (T16E)
S1C17003 TECHNICAL MANUAL
EPSON
13-7
T16E
Clock output start
To output the TOUT3 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
TOUT3 output (INITOL = 0, INVOUT = 0)
TOUT3 output (INITOL = 0, INVOUT = 1)
TOUT3 output (INITOL = 1, INVOUT = 0)
TOUT3 output (INITOL = 1, INVOUT = 1)
(When T16E_CA = 3 and T16E_CB = 5)
1 2 3 4 5 0
0
1
2 3 4 5 0 1 2 3 4 5 0 1
Figure 13.6.2: PWM Timer output waveform
TOUT3 output 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.
The TOUTN3 pins output the inverted signals described above.
TOUT3 output when INVOUT = 1 (Active High)
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
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 High level. A compare B interrupt factor is also generated at the same time.
The TOUTN3 pins output the inverted signals described above.