18.4 Operations
(i) Flowchart of the Pulse Width Count Operation
Continuous count mode
Count start edge detected
Overflow occurs
⇒ Set OVIR flag
Count end edge detected
⇒ Set EDIR flag
Transfer timer value to PWCR
Figure 18.4g Flowchart of Operation in Pulse Width Count Mode
(9) Initial State
• The initial values of each register are:
PWCSR ⇒
⇒
PWCR
⇒
DIVR
264
Chapter 18: Pulse Width Counter (PWC) Timer
Count clock selection
Operation and count mode selection
Clear interrupt flag
Settings
Enable interrupt
Set pulse output initial value
Restart
Clear timer
Start count
Up-count
Stop count
(00000000 00000000)
(00000000 00000000)
(XXXXXX00)
B
Start by STRT bit
Single-shot count mode
Count start edge detected
Overflow occurs
⇒ Set OVIR flag
Count end edge detected
⇒ Set EDIR flag
Operation stops
B
B
Clear timer
Start count
Up-count
Stop count
MB90580 Series