13 PWM & CAPTURE TIMER (T16E)
13-6
EPSON
S1C17704 TECHNICAL MANUAL
13.6 Controlling Clock Output
The PWM & capture timer can generate the TOUT signal using the compare match signals from the counter.
Figure 13.6.1 shows the PWM & capture timer clock output circuit.
Logic
INITOL
Compare A
Compare B
Clock
OUTEN
TOUT (P26)
INVOUT
D Q
Q
Figure 13.6.1 PWM & Capture Timer Clock Output Circuit
Setting the initial output level
The default output level while the clock output is turned off is 0 (low level). This level can be changed to 1 (high
level) using INITOL (D8/T16E_CTL register).
∗
INITOL
: Initial Output Level Select Bit in the PWM Timer Control (T16E_CTL) Register (D8/0x5306)
When INITOL is 0 (default), the initial output level is low. When INITOL is set to 1, the initial output level is
set to high.
The timer output goes to the initial output level when the timer is reset by writing 1 to T16ERST as well as
when the timer output is turned off.
Setting the signal active level
By default, an active high signal (normal low) is generated. This logic can be inverted using INVOUT (D4/
T16E_CTL register). When 1 is written to INVOUT, the timer generates an active low (normal high) signal.
∗
INVOUT
: Inverse Output Control Bit in the PWM Timer Control (T16E_CTL) Register (D4/0x5306)
Note that the initial output level set by INITOL is inverted when INVOUT is set to 1.
See Figure 13.6.2 for the waveforms.
Setting the output pin
The TOUT signal generated here can be output from the TOUT (P26) pin, enabling a programmable clock or
PWM signal to be supplied to external devices.
At initial reset, the P26 pin used for the clock output is set for the I/O port and set in input mode. The pin goes
into high-impedance status.
When the pin function is switched to the TOUT output, the pin outputs the level according to the set values of
INITOL and INVOUT. The output pin holds this level until the output level changes due to the counter value
after the timer output is enabled.
Table 13.6.1 Initial Output Level
INITOL
INVOUT
Initial output level
1
1
Low
1
0
High
0
1
High
0
0
Low
Summary of Contents for S1C17704
Page 1: ...TECHNICAL MANUAL S1C17704 CMOS 16 BIT SINGLE CHIP MICROCOMPUTER ...
Page 22: ...1 OVERVIEW 1 10 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 42: ...3 MEMORY MAP BUS CONTROL 3 12 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 82: ...6 INTERRUPT CONTROLLER ITC 6 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 108: ...8 CLOCK GENERATOR CLG 8 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 112: ...9 PRESCALER PSC 9 4 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 138: ...10 I O PORTS P 10 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 156: ...11 16 BIT TIMERS T16 11 18 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 208: ...14 8 BIT OSC1 TIMER T8OSC1 14 16 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 234: ...16 STOPWATCH TIMER SWT 16 14 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 242: ...17 WATCHDOG TIMER WDT 17 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 264: ...18 UART 18 22 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 300: ...20 I2C 20 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 320: ...21 REMOTE CONTROLLER REMC 21 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 360: ...24 ON CHIP DEBUGGER DBG 24 6 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 362: ...25 BASIC EXTERNAL WIRING DIAGRAM 25 2 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...