Freescale Semiconductor, Inc.

Freescale Semiconductor, Inc.

BLDC Motor Control

Application Control

3.4.1.1 Communication with PC Master Software Specifications

SCI communication protocol with a default of 9.6 Kbaud, is used for communication as described in User’s Manual for PC Master Software, Motorola 2000, found on the World Wide Web at:

http://e-www.motorola.com

PC master software controls and senses the status of the application with:

PC master software — BLDC demonstration suitcase communication commands

PC master software — BLDC demonstration suitcase communication bytes

After reset, the BLDC control MCU software is in manual mode. In order to control the system from PC master software, it is necessary to set PC master software mode, and then to provide the MCU software control from PC master software via application interface variables.

3.4.1.2 PC Master Software, BLDC Control MCU Software API, Communication Commands

Commands defined for the BLDC control MCU software are listed in Table 3-1. The commands are very simple. If the software executes the command, it responds with OK byte 00. If it is unable to execute the command, it responds with failed code 55. The commands “Set PC master software mode”, “Set manual mode” can only be executed when the START/STOP switch on the demonstration suitcase is set to STOP and the motor is stopped. Otherwise, a failed response is sent.

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 PC master

01

None

Setting of PC master

00

OK

software mode

 

 

software mode

55

Failed

 

 

 

 

 

 

1. Microsoft is a registered trademark of Microsoft Corporation in the United States and/or other

 

countries.

 

DRM028 — Rev 0

 

Designer Reference Manual

 

 

 

 

 

 

MOTOROLA

BLDC Motor Control

51

 

For More Information On This Product,

 

 

Go to: www.freescale.com

 

Page 51
Image 51
Motorola M68HC08 manual Communication with PC Master Software Specifications, PC Master Software Communication Commands