Fujitsu MB91319 Series Hardware Manual page 208

Fr60 32-bit microcontroller
Table of Contents

Advertisement

CHAPTER 7 MULTIFUNCTION TIMER
■ Capture Mode
In the capture mode, the width between the rising or falling edges of an external pin input can be
measured. The clock for measurement can be selected from the seven types of clock sources.
The start and end edges can be selected from either the rising or falling edge. In free-run mode,
the count value is captured when the end edge is reached. In the upper-limit compare mode, an
upper limit is input if the count value and the upper-limit compare value match before the end
edge is reached. Otherwise, the captured value at the end edge is input.
Figure 7.3-3 shows an example of starting the count at the rising edge and ending it at the falling
edge in free-run mode.
Figure 7.3-3 Example of Rising and Falling Edges in Capture Mode
External input
0xFFFF H
Counter value
0x0000 H
Capture register
186
xxxx
7777
The value at this
point is captured.

Advertisement

Table of Contents
loading

Table of Contents