160
µ
PD78214 Sub-Series
(2) Programmable square wave outputEight-bit timer/counter 2 outputs a square wave separately on the TO2 and TO3 timer output pins.Table 7-12 Programmable Square Wave Output Setting Range of 8-Bit Timer/Counter 2
Maximum pulse width
28 × 16/fCLK
(683
µ
s)
28 × 32/fCLK
(1.37 ms)
28 × 64/fCLK
(2.73 ms)
28 × 128/fCLK
(5.46 ms)
28 × 256/fCLK
(10.9 ms)
28 × 512/fCLK
(21.8 ms)
Minimum pulse width
16/fCLK
(2.6
µ
s)
32/fCLK
(5.3
µ
s)
64/fCLK
(10.7
µ
s)
128/fCLK
(21.3
µ
s)
256/fCLK
(42.7
µ
s)
512/fCLK
(85.3
µ
s)
The values in parentheses are based on fCLK = 6 MHz.
Caution The values in Table 7-12 assume the use of an internal clock.
(3) Pulse width measurementEight-bit timer/counter 2 measures the pulse width of a signal applied to the external interrupt input pinINTP1.Table 7-13 Pulse Width Measurement Range of 8-Bit Timer/Counter 2
Measurable pulse width
28 × 16/fCLK
(683
µ
s)
28 × 32/fCLK
(1.37 ms)
28 × 64/fCLK
(2.73 ms)
28 × 128/fCLK
(5.46 ms)
28 × 256/fCLK
(10.9 ms)
28 × 512/fCLK
(21.8 ms)
Resolution
16/fCLK
(2.6
µ
s)
32/fCLK
(5.3
µ
s)
64/fCLK
(10.7
µ
s)
128/fCLK
(21.3
µ
s)
256/fCLK
(42.7
µ
s)
512/fCLK
(85.3
µ
s)
The values in parentheses are based on fCLK = 6 MHz.