11 16-BIT TIMER (T16)
110
EPSON
S1C17001 TECHNICAL MANUAL
11.2.3 Pulse Width Measurement Mode
In pulse width measurement mode, when pulses with the specified polarity are input from the external clock port,
the internal clock is fed only while the signal is active, enabling counting. This enables interrupt generation and in-
put pulse width measurements for pulse inputs of the specified width or greater.
Pulse input port
The Input/output port used for external pulse input is the same as for external clock mode (see Table 11.2.2.1).
Input pulses using the input/output port corresponding to the timer channel in input mode.
Count clock selection
Counting uses the prescaler output clock selected by DF[3:0] (D[3:0]/T16_CLK
x
register) in the same way as
for internal clock mode. Select the clock to suit approximate input pulse widths and counting accuracy.
Signal polarity selection
CKACTV
(D10/T16_CTL
x
register) is used to select the active level for the pulses counted. The High period is
measured when CKACTV is 1 (default) and the Low period is measured when CKACTV is set to 0.
Internal count clock
PRUN
External input signal
Counter (CKACTV = 1)
n-1
n-2
n-3
0x2 0x1 0x0
n
n
Internal count clock
PRUN
External input signal
Counter (CKACTV = 1)
Underflow interrupt
0xff 0xfe 0xfd
n+3 n+2 n+1
n
0x0
Example 1: Pulse width measurement
Example 2: Detecting pulses over specified width
Figure 11.2.3.1: Pulse width measurement mode count operation
Содержание 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 ...