Software variables – Motorola M68HC08 User Manual

Page 76

Advertising
background image

Software Design

Designer Reference Manual

DRM028 — Rev 0

76

Software Design

MOTOROLA

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;

Speed_Range_Max_RPM)

Minimal speed [system units]

Sp_Input

U8

< 0; 255>

Speed input variable used for required

speed calculation

Coef_Speed_Inp

U8

Coeficient Sp_Inp to Speed_Desired
calculation

Speed_Desired

U8

< 0;

Speed_Range_Max_RPM)

Desired speed

PIParamsScl_U8_Spe

ed

Structure

Speed PI regulator parameters

Per_Speed_MAX_Ran

ge

U16

[UNIT_PERIOD_T2_US]

Minimal commutation period of the speed

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

T_ZCros

U16

[UNIT_PERIOD_T2_US]

Zero crossing time [n]

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;

Curr_Range_Max_cA)

dc-bus current

Curr_Align

S8

<-Curr_Range_Max_cA;

Curr_Range_Max_cA)

Required current during alignment state

PIParamsScl_S8_Currr

Structure

Current PI regulator parameters

Volt

U8

<-VOLT_RANGE_MAX;

VOLT_RANGE_MAX)

dc-bus voltage

V_TASC2

U8

Back-EMF zero crossing expecting edge

V_MUX

U8

Preset value of back-EMF zero crossing

phase multiplexer

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

.

..

Advertising