Freescale Semiconductor, Inc.

Freescale Semiconductor, Inc.

Software Design

5.5.4 Align State

In the align state the rotor position is stabilized by applying PWM signals to only two motor phases (no commutation). When preset time-out expires, then this state is finished. See Figure 5-9.

ENTER

RUN CONDITION (STOP_F = 0)

 

CURRENT MEASUREMENT

 

IS DONE

 

CURRENT CONTROLLER

ALIGN TIME-OUT

(CMD_F = 1)

 

SCHEDULER

OVER-CURRENT

DETECTION

 

 

(CMD_F = 0)

ALIGN TIME-OUT EXPIRED

 

 

IRRECOVERABLE OVER-CURRENT

 

FAULT

EXIT

STATE

TIMER1 (TIM A CH1) INTERRUPT

CURRENT MEASUREMENT

ISR

CURRENT MEASUREMENT IS DONE (CMD_F = 1)

DONE

Figure 5-9. Align State

Scheduler

The scheduler handles the state transitions in the align state. The dc-bus current measurement is done in OC interrupt service routine, in order to keep synchronization with PWM cycle. After measurement is made, the scheduler allows calculation by the current controller and

Designer Reference Manual

 

DRM028 — Rev 0

 

 

 

94

Software Design

MOTOROLA

 

For More Information On This Product,

 

 

Go to: www.freescale.com

 

Page 94
Image 94
Motorola M68HC08 manual Align State