Fujitsu MB90460 Series Hardware Manual page 477

F2mc-16lx 16-bit microcontroller
Table of Contents

Advertisement

CHAPTER 16 PWC Timer
■ Interrupt Request Generation
In the pulse-width measurement mode, the following two interrupt requests can be generated:
Timer overflow interrupt request
If an overflow occurs during a count, the overflow flag is set. When the overflow interrupt request is
enabled, an interrupt request is generated.
Measurement termination interrupt request
When the measurement termination edge is detected, the count end flag (EDIR) of PWCSH0/PWCSH1 is
set. If the measurement termination interrupt is enabled, an interrupt request is generated.
The measurement termination flag (EDIR) is automatically cleared when PWC0/ PWC1 is read.
■ Measurement Mode and Measurement Operation
Table 16.6-6 lists measurement mode operations.
Table 16.6-6
Measurement Mode Operation (1/2)
Measurement mode MOD2 MOD1 MOD0
H pulse-width
measurement
L pulse-width
measurement
Rising edge-to-rising
edge period
measurement
458
1
0
1
The H period width is measured.
Start of measurement:
Termination of measurement:
1
1
0
The L period width is measured.
Start of measurement:
End of measurement:
1
0
0
The rising edge-to-rising edge time is measured.
Start of measurement:
Termination of measurement:
Measurement operation
w w
Start of
Termination of
measurement
measurement
w w
Start of
Termination of
measurement
measurement
w w
w
Start of
Termination of
measurement
measurement
Start
w
Termination of
Start
measurement
When the rising edge is detected
When the falling edge is detected
w
Start
Termination of
measurement
When the falling edge is detected
When the rising edge is detected
w
Termination
Start
Termination
When the rising edge is detected
When the rising edge is detected

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb90465 series

Table of Contents