Freescale Semiconductor, Inc.

Software Design

5.3.1 Software Variables and Defined Constants

Important system variables are listed in Table 5-1.

Table 5-1. Software Variables

 

Name

Type

Representing Range

Description

 

 

 

 

 

 

Sys1

Sys1_Def

8flags

System variable #1

 

 

 

 

 

 

Speed_Min_U8

U8

< 0;

Minimal speed [system units]

 

Speed_Range_Max_RPM)

 

 

 

 

 

 

 

 

 

 

Sp_Input

U8

< 0; 255>

Speed input variable used for required

 

speed calculation

Inc.

 

 

 

 

 

 

 

Coef_Speed_Inp

U8

 

Coeficient Sp_Inp to Speed_Desired

 

 

 

 

calculation

 

 

 

 

 

 

 

 

 

Semiconductor,

T_ZCros

U16

< 0;

Zero crossing time [n]

[UNIT_PERIOD_T2_US]

 

Speed_Desired

U8

Speed_Range_Max_RPM)

Desired speed

 

PIParamsScl_U8_Spe

Structure

 

Speed PI regulator parameters

 

ed

 

 

 

 

Per_Speed_MAX_Ran

 

 

Minimal commutation period of the speed

 

ge

U16

[UNIT_PERIOD_T2_US]

range

 

 

 

(at Speed_Range_Max_RPM)

 

 

 

 

 

 

 

 

 

 

Per_ZCrosFlt

U16

[UNIT_PERIOD_T2_US]

Zero crossing period — filtered

 

 

 

 

 

 

T2

U16(union

[UNIT_PERIOD_T2_US]

Timer 2 variable

 

)

 

 

 

 

Freescale

 

 

 

 

 

 

 

 

Curr_Align

S8

 

Required current during alignment state

 

T_ZCros0

U16(union

[UNIT_PERIOD_T2_US]

Zero crossing time [n-1]

 

 

)

 

 

 

T_Cmt

U16

[UNIT_PERIOD_T2_US]

Commutation time

 

Curr

S8

<-Curr_Range_Max_cA;

dc-bus current

 

Curr_Range_Max_cA)

 

 

 

 

 

 

 

 

 

 

 

 

<-Curr_Range_Max_cA;

 

 

 

 

Curr_Range_Max_cA)

 

 

 

 

 

 

 

PIParamsScl_S8_Currr

Structure

 

Current PI regulator parameters

 

 

 

 

 

 

Volt

U8

<-VOLT_RANGE_MAX;

dc-bus voltage

 

VOLT_RANGE_MAX)

 

 

 

 

 

 

 

 

 

 

V_TASC2

U8

 

Back-EMF zero crossing expecting edge

 

 

 

 

 

 

V_MUX

U8

 

Preset value of back-EMF zero crossing

 

 

phase multiplexer

 

 

 

 

 

 

 

 

 

Designer Reference Manual

 

DRM028 — Rev 0

 

 

 

76

Software Design

MOTOROLA

 

For More Information On This Product,

 

 

Go to: www.freescale.com

 

Page 76
Image 76
Motorola M68HC08 manual Software Variables and Defined Constants, Important system variables are listed in Table