Operation In Pulse Period/Pulse Width Measurement Mode - Renesas 7700 FAMILY User Manual

Mitsubishi 16-bit single-chip microcomputer
Table of Contents

Advertisement

TIMER B
6.5 Pulse period/pulse width measurement mode

6.5.3 Operation in pulse period/pulse width measurement mode

When the count start bit is set to "1," the counter starts counting of the count source.
The counter value is transferred to the reload register when an valid edge of the measurement pulse
is detected. (Refer to section "(1) Pulse period/pulse width measurement.")
The counter value is cleared to "0000
The timer Bi interrupt request bit is set to "1" when the counter value is cleared to "0000
The interrupt request bit remains set to "1" until the interrupt request is accepted or the interrupt request
bit is cleared to "0" by software.
The timer repeats operations
Note: The timer Bi interrupt request does not occur when the first valid edge is input after the timer starts
counting.
(1) Pulse period/pulse width measurement
The measurement mode select bits (bits 2 and 3 at addresses 5B
period of an external signal is measured or its pulse width is done. Table 6.5.3 lists the relationship
between the measurement mode select bits and the pulse period/pulse width measurements.
Make sure that the measurement pulse interval from the falling to the rising, and from the rising to
the falling are two cycles of the count source or more. Additionally, use software to identify whether
the measurement result indicates the "H" level or the "L" level width.
Table 6.5.3 Relationship between measurement mode select bits and pulse period/pulse width measurements
b3
b2
Pulse period/pulse width measurement
0
0
Pulse period measurement
0
1
1
0
Pulse width measurement
1
1
Not selected
6–24
" after the transfer in
16
to
above.
Measurement interval (Valid edges)
From falling to falling (Falling)
From rising to rising (Rising)
From falling to rising, and from rising to falling
(Falling and rising)
7751 Group User's Manual
, and the counter continues counting.
to 5D
) specify whether the pulse
16
16
" in
(Note).
16

Advertisement

Table of Contents
loading

This manual is also suitable for:

7751 series

Table of Contents