Fujitsu MB91260B Series Hardware Manual page 211

32-bit microcontroller
Table of Contents

Advertisement

CHAPTER 10 PWC (Pulse Width Count: Pulse Width Measurement)
If the next measurement is completed before reading the measurement result in continuous measurement
mode, the previous measurement result is cleared by the new measurement result. In this case, the error flag
in PWCSR (ERR) is set. An error flag (ERR) is cleared automatically when PWCR is read.
Input pin selection
There are 2 channels for PWC. Pins used for signal inputs for a pulse width count have 2 channels: PWI0
and PWI1. Therefore, the pin can be used independently for each channel. For input pin PWI0 and PWI1,
the time between rising and falling of each input waveform can be measured by combining PIS1 and PIS0
in PWCSR0. Note that PWI0 in the PWCR register is used. At this time, "H" width of PWC internal count
waveform is measured. Settings of MOD2, MOD1, MOD0 are ignored.
PWI0 input waveform
PWI1 input waveform
PWC internal count
waveform at PIS1,PIS0=01
PWC internal count
waveform at PIS1,PIS0=10
• If you compare two inputs, start counting at PWI0, stop counting at PWI1 even for rising/falling
detection.
• If you change the detection mode for rising/falling, be sure to perform after the measurement ends.
196
Figure 10.4-3 Input Waveform and Internal Count Waveform
For the time between rising and falling, "H" width of
this internal count waveform is measured.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fr60lite

Table of Contents