page1
Set up phase map.
Set up interrupts.
Set up ports.
Set up statistic structures.
Read sensors
Set BLDC phase mark from sensors
START
Sleep 1 second
Show banner
ISR: Shaft moved
End
Get statistics
Show statistics
Update statistic data
Empty read?
Yes
No
End