Operation Of Pulse Width Measurement Function - Fujitsu F2MC-16LX Hardware Manual

16-bit microcontroller mb90330 series
Hide thumbs Also See for F2MC-16LX:
Table of Contents

Advertisement

CHAPTER 15 PWC TIMER
15.3.2

Operation of Pulse Width Measurement Function

Time cycle between arbiter events of input pulse can be measured by the time.
Operation of Pulse Width Measurement Function
The pulse width measurement function does not start the count until the set measurement start edge is input
after it is started. Starts the count up after clearing the timer to be 0000
stops the count when detecting the stop edge. The value counted in this period is registered as the pulse
width. When the measurement ends, the interruption is detected.
Operates as follows depending on the measurement mode after the measurement.
• Single measurement mode: Suspends the operation.
• Continuous measurement mode: The timer value is transferred to the buffer register and the
Figure 15.3-2 and Figure 15.3-3 show the single measurement mode operation and the continuous measurement
mode operation, respectively.
Figure 15.3-2 Pulse Width Measurement Operation (Single Measurement Mode/ "H" Width Measurement)
PWC input measured pulse
Timer count value
FFFF
0000
PWC input measured pulse
Timer count value
FFFF
H
0000
H
368
H
Timer clear
H
Measurement
Timer
start
start
EDIR flag set (Measurement end)
Figure 15.3-3 Pulse Width Measurement Operation
(Continuous Measurement Mode/ "H" Width Measurement)
Transfer data to PWCR
Timer clear
Measurement
Timer
Timer
start
start
stop
EDIR flag set (Measurement end)
measurement is suspended until the next start edge is input.
(A sold line shows the timer count value.)
Timer
stop
(A solid line shows the timer count value.)
Timer clear
Timer
start
when detecting the start edge and
H
Time
Overflow
Time
EDIR flag set

Advertisement

Table of Contents
loading

Table of Contents