beautypg.com

Pc master software communication commands – Motorola M68HC08 User Manual

Page 51

background image

BLDC Motor Control

Application Control

DRM028 — Rev 0

Designer Reference Manual

MOTOROLA

BLDC Motor Control

51

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.

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

countries.

Table 3-1. PC Master Software Communication Commands

Command

Comman

d

Code

Data
Byte

s

Demo

Suitcase Action

Respon

s

Byte

Response

Descriptio

n

Set PC master
software mode

01

None

Setting of PC master
software mode

00
55

OK

Failed

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

.

..