Semiconductor, Inc.

Freescale Semiconductor, Inc.

Software Design

State Diagram

PWM DUTY CYCLE IS LEFT AT VALIE

ENTER FOUND BY THE CURRENT CONTROLLER

DURING THE ALIGN STATE

 

 

 

EXIT

 

 

FIRST COMMUTATION

 

 

 

 

 

 

COMMUTATIONS ARE LOCKED TO

 

DONE

 

THE BACK-BMF FEEDBACK

 

 

(START_F = 0)

 

 

 

 

 

CURRENT MEASUREMENT

SECOND COMMUTATION

 

 

 

IS DONE

 

 

 

(CMD_F = 1)

 

 

CURRENT MEASUREMENT

 

 

 

 

 

 

DONE

 

IS DONE

 

MEASUREMENTS

DONE

 

 

 

 

 

 

 

HANDLER

 

 

MEASUREMENTS

 

DONE

 

(CMD_F = 1)

HANDLER

 

 

 

 

 

SCHEDULER

DONE

 

ERROR HANDLER

DONE

 

PHASE HAS BEEN

 

 

 

 

 

 

 

COMMUTATED (PC_F=1)

 

RECEIVED THE

DONE

 

 

 

ZERO CROSSING EVENT

 

 

 

 

DONE

 

 

(ICR_F = 1)

 

 

OVER-CURRENT

SERVICE OF COMMUTATION

SERVICE OF RECEIVED

BACK-EMF ZERO CROSSING

FEEDBACK

IRRECOVERABLE COMMUTATION ERROR

Freescale

 

FAULT STATE

 

IRRECOVERABLE OVER-CURRENT

TIMER2 (TIM A CH3) INTERRUPT

 

 

 

 

 

 

 

PWM (RELOAD) INTERRUPT (PWM CENTER)

COMMUTATION ISR

TIMER1 (TIM A CH1) INTERRUPT

 

BEMF ZERO CROSSING

 

 

 

 

SENSING ISR

PHASE HAS BEEN

 

CURRENT MEASUREMENT

DONE

 

 

COMMUTATED

 

IS DONE

 

(ICR_F=1)

 

CURRENT MEASUREMENT

(CMD_F = 1)

 

 

 

 

 

 

(PC_F=1)

ISR

 

 

 

Figure 5-10. Back-EMF Acquisition

DRM028 — Rev 0

 

Designer Reference Manual

 

 

 

MOTOROLA

Software Design

97

 

For More Information On This Product,

 

 

Go to: www.freescale.com

 

Page 97
Image 97
Motorola M68HC08 manual Back-EMF Acquisition