Freescale Semiconductor, Inc.

Freescale Semiconductor, Inc.

BLDC Motor Control

Table 3-1. PC Master Software Communication Commands

 

Comman

Data

Demo

Respon

Response

Command

d

Byte

s

Descriptio

Suitcase Action

 

Code

s

Byte

n

 

 

 

 

 

 

 

 

Set manual

02

None

Setting of manual

00

OK

mode

 

 

mode

55

Failed

 

 

 

 

 

 

3.4.1.3 PC Master Software, BLDC Control MCU Software API, Communication Variables

The application interface, data variables used for the exchange between the BLDC control MCU software and PC master software, are shown in Table 3-2. These variables are used for status sensing and control. PC master software accesses these bytes directly from their physical memory addresses.

Table 3-2. PC Master Software API Variables

Name

Type

I/

Representing

Description

O

Range

 

 

 

 

 

 

 

 

Sys3

Sys3_Def

I/

8flags

System variable #3

O

 

 

 

 

 

 

 

 

 

Motor_Ctrl

Motor_Ctrl_Def

I

8flags

Motor control variable

 

 

 

 

 

Motor_Status

Motor_Status_D

O

8flags

Motor status variable

ef

 

 

 

 

 

 

 

 

 

Failure

Failure_Def

O

8flags

Failure variable

 

 

 

 

 

 

 

 

 

Speed input variable used for

Sp_Input

U8

I

< 0; 255>

required

 

 

 

 

speed calculation

 

 

 

 

 

Speed_Range_Max_RP

U16

O

< 0; 65535>

Speed range maximum

M

[rpm]

 

 

 

 

 

 

 

 

Speed_Max_RPM

U16

O

< 0; 65535>

Maximal speed limit

[rpm]

 

 

 

 

 

 

 

 

 

Speed_Min_RPM

U16

O

< 0; 65535>

Minimal speed limit

[rpm]

 

 

 

 

 

 

 

 

 

Commut_Rev

U8

O

< 0; 255>

Commutations per motor revolution

 

 

 

 

 

 

 

 

<-Curr_Range_Max_c

 

Curr

S8

O

A;

dc-bus current

 

 

 

Curr_Range_Max_cA)

 

 

 

 

 

 

Curr_Range_Max_cA

S16

O

<-32768;32767>

Current range maximum

[A*10^-2]

[A*10^-2]

 

 

 

 

 

 

 

 

Designer Reference Manual

 

DRM028 — Rev 0

 

 

 

52

BLDC Motor Control

MOTOROLA

 

For More Information On This Product,

 

 

Go to: www.freescale.com

 

Page 52
Image 52
Motorola M68HC08 manual PC Master Software API Variables, Name Type Representing Description Range