AN1913D Freescale Semiconductor / Motorola, AN1913D Datasheet - Page 40

no-image

AN1913D

Manufacturer Part Number
AN1913D
Description
3-phase BLDC Motor Control with Sensorless Back-EMF ADC Zero Crossing Detection using DSP 56F80x
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Software Design
7.3.2 Initialize
Notes: The EVM board can be connected to a different number of power stage boards. In order to assure
7.3.3 State Diagram - Process Application State Machine
40
The Main software initialization provides the following actions:
The Process Application State Machine state diagram is displayed in
State Machine controls the main application functionality.
The application can be controlled as follows:
In the manual control, the application is controlled by the Start/Stop switch and the Up/Down push
buttons to set Required Speed.
In the PC Master control mode the Start/Stop is controlled manually and the Required Speed is set
using the PC Master.
The motor is stopped whenever the absolute value of Required speed is lower then Minimal Speed or
switch set to stop or if there is a system failure - Drive Fault (Emergency Stop) state is entered. All the
software processes are controlled according this Application State Machine status.
the right hardware is connected, board identification is performed. When inappropriate hardware
is detected, the DriveFaultStatus|=WRONG_HARDWARE is set and the motor remains
stopped.
CmdApplication = 0
DriveFaultStatus = NO_FAULT
PCB Motor Set Identification
— boardId function is used to detect one of three possible hardware sets. According to the
ADC Initialization with Zero Crossing initialization
LED diodes initialization
Switch (Start/Stop) initialization
Push Buttons (Speed up/down) initialization
Commutation control initialization
PWM initialization
PWM fault interrupts initialization
Output Compare Timers initialization
Manually
From PC Master
used hardware, one of three control constant sets are loaded (functions
EVM_Motor_Settings, LV_Motor_Settings, HV_Motor_Settings)
BLDC control with BEMF Zero Crossing using ADC
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
Figure
7-7. The Application

Related parts for AN1913D