beautypg.com

Figure 6-7 – Motorola M68HC08 User Manual

Page 128

background image

User Guide

Designer Reference Manual

DRM028 — Rev 0

128

User Guide

MOTOROLA

Figure 6-7. Follow-up for Software Customizing to Customer Motor

INCLUDE APPROPRIATE:

— CONST_CUST_X.H
— INTO CODE_FUN.C FILE

INCLUDE:

— CONST_CUST_LV.H
— INTO CODE_FUN.C FILE

INCLUDE:

— CONST_CUST_EVMM.H
— INTO CODE_FUN.C FILE

INCLUDE:

— CONST_CUST_HV.H
— INTO CODE_FUN.C FILE

— SET DUTY_PWM_MAX
— SET VOLT_HW_MAX
— SET VOLT_MAX_FAULT_V
— SET CURR_HW_MAX_A
— SET CURR_HW_MIN_A
— SET CURR_MAX_FAULT_A

— SET ALIGNMENT STATE CURRENT - CURR_ALIGN_A
— SET CURRENT REGULATOR:

CURR_PIREG_P_GAINSCALELEFT, CURR_PIREG_P_GAIN, CURR_PIREG_I_GAINSCALELEFT, CURR_PIREG_I_GAIN

— SET COIL DISCHARGE PERIOD PER_DIS_US
— SET COMMUTATION (ADVANCING) COEFFICIENT COEF_HLFCMT

-SET COMMUTATION START PERIOD

PER_CMT_START_US!

AND MAXIMAL PER_CMT_MAX_US

-SET ALIGNMENT TO START INCREMENT START_INCR_OOUTREG
-SET NUMBER OF SUCCESSIVE BEMF ZERO CROSSINGS TO ENTER RUNNING STATE I_CNTR_FOK

-SET COMMUTATIONS PER ROTOR MECHANICAL REVOLUTION COMMUT_REV
-SET MAXIMAL SPEED VARIABLES RANGE SPEED_RANGE_MAX_RPM
-SET MAXIMAL REQUIRED SPEED SPEED_MAX_RPM
-SET MINIMAL REQUIRED SPEED SPEED_MIN_RPM
-SET SPEED REGULATOR CONSTANTS:

CURR_PIREG_P_GAINSCALELEFT, CURR_PIREG_P_GAIN, CURR_PIREG_I_GAINSCALELEFT, CURR_PIREG_I_GAIN

— CHECK MINIMAL APPLICATION SPEED
— CHECK MAXIMAL MOTOR SPEED

Decision on the Application Suitability

Selection of the Power Stage

HV

EVM

LV

Modified H/W

LV for 42V

— MODIFY R207, R522, R523, R524
— SET VOLT_HW_MAX
— SET VOLT_MAX_FAULT_V

IN CONST_CUST_LV.H FILE

— SET MAXIMAL FAULT VOLTAGE VOLT_MAX_FAULT_V
— SET MINIMAL FAULT VOLTAGE VOLT_MIN_FAULT_V
— SET VOLT_120_THRESHOLD_V (ONLY FOR HV)
— SET MAXIMAL FAULT CURRENT CURR_MAX_FAULT_A
— SET NUMBER OF CURRENT FAULTS I_CNTR_OVC

Voltage and Current Settings

Alignment Current and Regulator Settings

Start-Up Control Settings

Speed Control Settings

OK

OK

OK

OK

OK

F

re

e

sc

a

le

S

e

m

ic

o

n

d

u

c

to

r,

I

Freescale Semiconductor, Inc.

For More Information On This Product,

Go to: www.freescale.com

n

c

.

..