page1
ISR: Byte Received
End
Update attributes from key press
Get byte (key press)
Get ADC channel index
ISR: Control Read
End
Update statistic data
Store mark value
Channel 0?
Yes
No
Store space value
Set to read other channel and start
Read sensors
Store Position
ISR: Shaft moved
End
Update statistic data
Empty read?
Yes
No
End
Set up phase map.
Set up interrupts.
Set up ports.
Set up statistic structures.
START
Show banner
Get statistics and analysis
Show statistics and analysis
Update statistic data
ISR: Timer Expired
End
Restart timer interrupt
Just done mark?
Yes
No
Set space period
Set mark period
Stop timer interrupt
Set space
Set BLDC mark
ISR: 1sec timer expired
End
End
Reset field output
Passed torque
window?
No
Yes
Set field angle from
stored position set
in sensor read
Update BLDC
waveform analysis
ISR: Millisecond timer expired
End