13 PWM & CAPTURE TIMER (T16E)
156
EPSON
S1C17001 TECHNICAL MANUAL
D3
CLKSEL: Input Clock Select Bit
Selects the timer input clock.
1 (R/W): External clock
0 (R/W): Internal clock (default)
If CLKSEL is written as 0, the internal clock (prescaler output) is selected as the timer input clock. If
written as 1, the external clock (clock input from EXCL3 (P27) pin) is selected and functions as an
event counter.
Note: To input the EXCL3 clock from the P27 port, P27MUX (D7/P2_PMUX register) must be
written as 1, and the P27 pin function must be changed beforehand.
∗
P27MUX
: P27 Port Function Select Bit in the P2 Port Function Select (P2_PMUX) Register
D2
OUTEN: Clock Output Enable Bit
Controls the TOUT signal (timer output clock) output.
1 (R/W): Permitted
0 (R/W): Prohibited (default)
Writing 1 to OUTEN outputs the TOUT signal from the TOUT (P26) output pin. Writing 0 to OUTEN
halts output and switches to Off level in accordance with the INVOUT(D4) and INITOL(D8) settings.
P26 must be set to the TOUT pin using the P26 port function selection register before outputting the
TOUT signal.
D1
T16ERST: Timer Reset Bit
Resets the counter.
1 (W): Reset
0 (W): Disabled
0 (R):
Normally 0 when read out (default)
Writing 1 to T16ERST resets the PWM & capture timer counter.
D0
T16ERUN: Timer Run/Stop Control Bit
Controls the timer Run/Stop.
1 (R/W): Run
0 (R/W): Stop (default)
The PWM & capture timer starts the count when T16ERUN is written as 1 and stops when written as 0.
The counter data is retained when stopped until the subsequent reset or run. Counting can be resumed
when switched from Stop to Run from the data retained.
Summary of Contents for S1C17001
Page 1: ...Technical Manual S1C17001 CMOS 16 BIT SINGLE CHIP MICROCONTROLLER ...
Page 33: ...4 POWER SUPPLY VOLTAGE 24 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 63: ...6 INITERRUPT CONTROLLER 54 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 87: ...8 CLOCK GENERATOR CLG 78 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 91: ...9 PRESCALER PSC 82 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 133: ...11 16 BIT TIMER T16 124 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 211: ...16 STOPWATCH TIMER SWT 202 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 219: ...17 WATCHDOG TIMER WDT 210 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 241: ...18 UART 232 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 277: ...20 I2 C 268 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 313: ...25 PACKAGE 304 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...