Running state, Freescale semiconductor, inc – Motorola M68HC08 User Manual
Page 101
Software Design
State Diagram
DRM028 — Rev 0
Designer Reference Manual
MOTOROLA
Software Design
101
Figure 5-11. Running State
DONE
SCHEDULER
MEASUREMENTS
SERVICE OF COMMUTATION
DONE
(CMD_F=1)
PHASE HAS BEEN
SERVICE OF RECEIVED
BACK-EMF ZERO CROSSING
DONE
(ICR_F = 1)
THE ZERO CROSSING EVENT
RECEIVED
DONE
ERROR HANDLER
SPEED CONTROL
DONE
T3 TIME-OUT
(T3_F = 1)
IRRECOVERABLE COMMUTATION ERROR
OVER-CURRENT
DONE
ENTER
EXIT
(STOP_F = 1)
CURRENT MEASUREMENT
IS DONE
MOTOR STOP IS REQUIRED
FEEDBACK
PWM RELOAD INTERRUPT (PWM CENTER)
DONE
FAULT STATE
COMMUTATED (PC_F = 1)
(ICR_F = 1)
HANDLER
TIMER2 (TIM A CH3) INTERRUPT
PHASE HAS BEEN
COMMUTATED (PC_F = 1)
TIMER1 (TIM A CH1) INTERRUPT
COMMUTATION
ISR
CURRENT MEASUREMENT
ISR
BEMF ZERO CROSSING
SENSING ISR
CURRENT MEASUREMENT
IS DONE
(CMD_F = 1)
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
.
..