Functions; Intervals Of 8-Bit Timer/Counter 1; Pulse Width Measurement Range Of 8-Bit Timer/Counter 1 - NEC PD78212 User Manual

8-bit single-chip microcomputer sub-series
Table of Contents

Advertisement

7.2 8-BIT TIMER/COUNTER 1

7.2.1 Functions

Eight-bit timer/counter 1 can function as an interval timer and can also be used for pulse width measurement. In
addition to these basic functions, 8-bit timer/counter 1 can be used as a timer for generating an output trigger on
a real-time output port.
(1) Interval timer
When operating as an interval timer, 8-bit timer/counter 1 generates an internal interrupt at specified intervals.
(2) Pulse width measurement
Eight-bit timer/counter 1 measures the pulse width of a signal applied to the external interrupt request input
pin INTP0.
Table 7-10 Pulse Width Measurement Range of 8-Bit Timer/Counter 1
Table 7-9 Intervals of 8-Bit Timer/Counter 1
Resolution
Minimum interval
16/f
16/f
CLK
(2.6 µ s)
(2.6 µ s)
32/f
32/f
CLK
(5.3 µ s)
(5.3 µ s)
64/f
64/f
CLK
(10.7 µ s)
(10.7 µ s)
128/f
128/f
CLK
(21.3 µ s)
(21.3 µ s)
256/f
256/f
CLK
(42.7 µ s)
(42.7 µ s)
512/f
512/f
CLK
(85.3 µ s)
(85.3 µ s)
The values in parentheses are based on f
Measurable pulse width
≤2
× 16/f
8
CLK
(683 µ s)
≤2
× 32/f
8
CLK
(1.37 ms)
≤2
× 64/f
8
CLK
(2.73 µ s)
≤2
× 128/f
8
CLK
(5.46 ms)
≤2
× 256/f
8
CLK
(10.9 ms)
≤2
× 512/f
8
CLK
(21.8 ms)
The values in parentheses are based on f
Chapter 7 Timer/Counter Units
Maximum interval
× 16/f
8
2
CLK
(683 µ s)
× 32/f
8
2
CLK
(1.37 ms)
× 64/f
8
2
CLK
(2.73 ms)
× 128/f
8
2
CLK
(5.46 ms)
× 256/f
2
8
CLK
(10.9 ms)
× 512/f
8
2
CLK
(21.8 ms)
Resolution
16/f
CLK
(2.6 µ s)
32/f
CLK
(5.3 µ s)
64/f
CLK
(10.7 µ s)
128/f
CLK
(21.3 µ s)
256/f
CLK
(42.7 µ s)
512/f
CLK
(85.3 µ s)
= 6 MHz.
CLK
CLK
CLK
CLK
CLK
CLK
CLK
= 6 MHz.
CLK
7
139

Advertisement

Table of Contents
loading

Table of Contents