(g) Timer Operation Flowchart
Restart
Reload operation mode
Reload PWCR value in timer
Start count
Overflow occurs
⇒ Set OVIR flag
Invert POUT bit value
MB90580 Series
Count clock selection
Operation and count mode selection
Clear interrupt flag
Settings
Enable interrupt
Set pulse output initial value
Set value to PWCR
Start by STRT bit
Up-count
Figure 18.4f Flowchart of Timer Mode Operation
Single-shot operation mode
Start count
Up-count
Overflow occurs
⇒ Set OVIR flag
Invert POUT bit value
Stop count
Stop operation
Chapter 18: Pulse Width Counter (PWC) Timer
18.4 Operations
259