AN1911 Freescale Semiconductor / Motorola, AN1911 Datasheet - Page 18

no-image

AN1911

Manufacturer Part Number
AN1911
Description
3-Phase AC Motor Control with V/Hz Speed Open Loop Using DSP56F80X
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Software Design
6.2 State Diagram
6.2.1 Initialization
18
Wrong hardware: If wrong hardware is identified (different power module or missing optoisolation
board) during initialization, DriveFaultStatus variable is set to Wrong_Hardware.
If any of the above mentioned faults occurs, program run into infinite loop and waits for reset. Fault is
signalled by user LEDs on controller board and on the PC Master control screen.
The general state diagram incorporates the Main routine entered from Reset, and interrupt states. The
Main routine includes the initialization of the DSP and the main loop. The main loop incorporates
Initialization State, Application State Machine and Check Run/Stop Switch state.
The interrupt states provides calculation of the actual speed of motor, PWM reload interrupt, ADC
service, Limit analog values handling, over current and over voltage PWM fault handler etc.
The Main Routine provides initialization of the DSP:
The board identification routine identifies the connected power stage board by decoding the identified
message send from the power stage. In case the wrong power stage is connected, the program goes to
the infinite loop, displays the fault status on the LED. The state can be left only by the RESET.
initializes PLL Clock
COP and LVI disabled
identifies connected hardware
initializes Analog to Digital Converter
initializes POSIX timers for Speed ramp and LED handler
initializes PWM module:
— center aligned complementary PWM mode, positive polarity
— sets callback for PWM reload to (every 4th. PWM pulse)
— sets callback for PWM faults
— sets of PWM modulus - (defines the PWM frequency)
— enables fault interrupts
sets-up I/O ports (push buttons, switch, brake)
initializes Quadrature Decoder for speed measurement
initializes algorithms (V/Hz look-up table, Sinewave generator)
enables interrupts
Indirect Power Factor Correction Using DSP56F80X
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com

Related parts for AN1911