TMP92CF30
2009-06-12
92CF30-282
3. Pulse
width
measurement
This mode allows measuring the H level width of an external pulse. While
keeping the 16 bit timer/event counter counting (free-running) with the internal
clock input, the external pulse is input through the TB0IN0 pin. Then the capture
function is used to load the UC10 values into TB0CP0H/L and TB0CP1H/L at the
rising edge and falling edge of the external trigger pulse respectively. The
interrupt INT6 occurs at the falling edge of TB0IN0.
The pulse width is obtained from the difference between the values of
TB0CP0H/L and TB0CP1H/L and the internal clock cycle.
For example, if the internal clock is 0.8[us] and the difference between
TB0CP0H/L and TB0CP1H/L is 100, the pulse width will be 100
×
0.8[
μ
s] =80
μ
s
Additionally, the pulse width which is over the UC10 maximum count time
specified by the clock source can be measured by changing software.
Figure 3.13.14 Pulse Width Measurement
Note: Only in this pulse width measuring mode(TB0MOD<TB0CPM1:0>
=
“10”), external interrupt INT6 occurs at the
falling edge of TB0IN0 pin input. In other modes, it occurs at the rising edge.
The width of L level can be measured by multiplying the difference between the
first C1 and the second C0 at the second INT6 interrupt and the internal clock
cycle together.
C2
C1
C2
C1
C2
C1
Count clock
(Prescaler ouptut clock)
TB0IN0 pin input
(External pulse)
Loading to TB0CP0H/L
INT6
Loading to TB0CP1H/L
Содержание TLCS-900/H1 Series
Страница 1: ...TOSHIBA Original CMOS 32 Bit Microcontroller TLCS 900 H1 Series TMP92CF30FG Semiconductor Company ...
Страница 650: ...TMP92CF30 2009 06 12 92CF30 648 7 Package Dimensions LQFP176 P 2020 0 40F TOP VIEW BOTTOM VIEW Detail view of A 25 1 A ...
Страница 652: ...TMP92CF30 2009 06 12 92CF30 650 ...