Motorola M68HC08 Reference Manual page 84

Sensorless bldc motor control using the mc68hc908mr32
Hide thumbs Also See for M68HC08:
Table of Contents

Advertisement

Software Design
Designer Reference Manual
84
Freescale Semiconductor, Inc.
Figure 5-4. Main Software Flowchart
In the Stand-By state function, the start/stop switch is checked using
StSWReadStart () function. The DecideStaSto () function is called to
decide if the application should start. The start condition differs if manual
or PC master software mode is set. When in manual mode (PCMode =
0), the start condition is the switch in the start position. When PC master
software mode (PCMode = 1), the start condition is a start request from
PC master software (StartCtrl = 1). In both modes, Stop_F is cleared
when the software evaluates the start condition. When Stop_F is
cleared, the software checks the over-voltage condition and the
application starts.
The system Alignment and Starting (Back-EMF Acquisition) states
are provided by Alignment() and Start () functions in the code_start.c
file, both are called from main(). The functionality during the start and
running state is described in
During the starting (back-EMF acquisition) state, the commutation time
Software Design
For More Information On This Product,
Go to: www.freescale.com
RESET
MCU INITIALIZATION:
– SYSTEM REGISTERS INITIALIZATION
– PORTS INITIALIZATION
– PLL — CPU CLOCK INITIALIZATION
– PC MASTER SOFTWARE (PORT)
INITIALIZATION
APPLICATION INITIALIZATION:
– CURRENT OFFSET CALIBRATION
– SYSTEM REGISTERS INITIALIZATION
– PWM INITIALIZATION
– TIMER 1 CURRENT SENSING TO PWM
SYNCHRONIZATION
– ADC MEASUREMENT INITIALIZATION
MAIN S/W LOOP:
– SEE
FIGURE 5-5
3.3.1 Sensorless Commutation
Control.
DRM028 — Rev 0
MOTOROLA

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mc68hc908mr32

Table of Contents