13 PWM & CAPTURE TIMER (T16E)
13-16
EPSON
S1C17704 TECHNICAL MANUAL
D3
CLKSEL: Input Clock Select Bit
Selects the input clock for the timer.
1 (R/W): External clock
0 (R/W): Internal clock (default)
The internal clock (prescaler output) is selected for the input clock of the timer by writing 0 to CLKSEL.
An external clock (one that is fed from the EXCL3 (P27) pin) is selected by writing 1, and the timer
functions as an event counter.
Note
: To input the EXCL3 clock from the P27 port, write 1 to P27MUX (D7/P2_PMUX register) to
switch the P27 pin function in advance.
∗
P27MUX
: P27 Port Function Select Bit in the P2 Port Function Select (P2_PMUX) Register
D2
OUTEN: Clock Output Enable Bit
Controls the output of the TOUT signal (timer output clock).
1
(R/W):
Enable
0 (R/W): Disable (default)
The TOUT signal is output from the TOUT (P26) output pin by writing 1 to OUTEN. Clock output is
stopped by writing 0 to OUTEN and goes to the off level according to the set values of INVOUT (D4)
and INITOL (D8). In this case, the P26 pin must be set for the TOUT output using the P26 port func-
tion select register before outputting the TOUT signal.
D1
T16ERST: Timer Reset Bit
Resets the counter.
1
(W):
Reset
0 (W):
Has no effect
0 (R):
Always 0 when read (default)
Writing 1 to T16ERST resets the counter in the PWM & capture timer.
D0
T16ERUN: Timer Run/Stop Control Bit
Controls the timer's Run/Stop state.
1
(R/W):
Run
0 (R/W): Stop (default)
The PWM & capture timer starts counting up by writing 1 to T16ERUN and stops by writing 0. In Stop
state, the counter data is retained until the timer is reset or placed in a Run state. By changing states
from Stop to Run, the timer can restart counting beginning at the retained count.
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 ...