Freescale Semiconductor, Inc.

Freescale Semiconductor, Inc.

User Guide

Tuning for Customer Motor

/* MUST_CHANGE_nn: */

Label for changes which must be set (changed) when adapting software for a motor

/* MUST_CHANGE_nn_EXPER: */

Label for changes which must be set (changed) when adapting software for a motor — the setting can be done experimentally

/* MUST_IF_HW_CHANGE_nn */

Label for changes which must be set (changed) when a power stage board different from high voltage power board is used

/* CAN_CHANGE_nn */

Label for changes which can be set (changed) when adapting software for a motor, but usually the setting is not needed

/* CAN_CHANGE_nn_EXPER */

Label for changes which can be set (changed) when adapting software for a motor, but usually the setting is not needed — the setting can be done experimentally

6.5.2.2 Labels in the File const.h

The other parameters, like motor PWM frequency and current sampling period can be set in the file const.h. The required steps are marked:

/* CAN_CHANGE_FPWM_n */

Label for definitions which should be modified, when changing

PWM frequency

/* CAN_CHANGE_PERCURSAMP_n */

lLabel for definitions which should be corrected, when changing current sampling period

Let’s follow the next sections, or the labels in the source code to customize the software.

DRM028 — Rev 0

 

Designer Reference Manual

 

 

 

MOTOROLA

User Guide

133

 

For More Information On This Product,

 

 

Go to: www.freescale.com

 

Page 133
Image 133
Motorola M68HC08 manual Labels in the File const.h