CHAPTER 15 PWC TIMER
Operation Flow of Pulse Width Measurement
Figure 15.3-5 shows the pulse width measurement operation flow.
380
Figure 15.3-5 Operation Flow of Pulse Width Measurement
Restart
Continuous
measurement mode
Measurement start
egde detection
Clear timer
Count start
Count up
Overflow generation
OVIR flag set
Measurement eged
detection
EDIR flag set
Count stop
Read Timer value to PWCR
Count clock selection
Operation/
Each
Measurement
settings
mode selection
Interrupt flag clear
Interrupt enabled
Start by STRT bit
measurement mode
Measurement start
Overflow generation
OVIR flag set
Measurement eged
detection
Single
egde detection
Clear timer
Count start
Count up
EDIR flag set
Count stop
Operation stop