CHAPTER 16 PWC Timer
■ Flowchart of Pulse-width Measurement Operation
Figure 16.6-6 Flowchart of Pulse-width Measurement Mode Operation
Overflow occurs
Set OVIR flag
460
Setting
Restart
Continuous measurement mode
Detect count start page
Clear timer
Start count
Addition
Detect count end edge
Set EDIR flag
Discontinue count*
Transfer timer value to PWC
*: Except continuous measurement mode of H/L pulse-width measurement
-Select count clock
-Select operation mode and timer mode
-Clear interrupt flag
-Enable interrupt
Start by STRT bit
Single operation mode
Overflow occurs
Set OVIR flag
Detect count start page
Clear timer
Start count
Addition
Detect count end edge
Set EDIR flag
Discontinue count*
Discontinue operation