Motorola M68HC08 User Manual

Page 53

Advertising
background image

BLDC Motor Control

Application Control

DRM028 — Rev 0

Designer Reference Manual

MOTOROLA

BLDC Motor Control

53

Type: S8- signed 8 bit, U8- unsigned 8 bit,S16- signed 16bit, U16-
unsigned 16bit

The system registers Sys3, Motor_Ctrl, Motor_Status, Failure flags
are described by definitions of Sys3_Def, Motor_Ctrl_Def,
Motor_Status_Def, Failure_Def:

typedef union

{

struct

{

unsigned int HV

: 1; /* BIT0 High Voltage board Flag */

unsigned int LV : 1; /* BIT1 Low Voltage board */

unsigned int EVMm : 1; /* BIT2 EVMm board */

unsigned int BIT3 : 1; /* BIT3 RESERVED */

unsigned int PCMode : 1;/* BIT4 PCMaster/manual mode Flag */

unsigned int BIT5 : 1; /* BIT5 RESERVED */

unsigned int BIT6 : 1; /* BIT6 RESERVED */

unsigned int Alignment : 1; /* BIT7 Alignment state

Proceeding */

} B;

/* |Alignment|***|***|PCMode|***|EVMm|LV||HV| */

char R;

} Sys3_Def;

/* System register #3 Definition */

typedef union

{

struct

{

unsigned int StartCtrl : 1; /* Switch Start set to START

Flag */

unsigned int BIT1

: 1; /* BIT1 RESERVED */

unsigned int BIT2

: 1; /* BIT2 RESERVED */

unsigned int BIT3

: 1; /* BIT5 RESERVED */

unsigned int BIT4

: 1; /* BIT4 RESERVED */

unsigned int BIT5

: 1; /* BIT6 RESERVED */

unsigned int BIT6

: 1; /* BIT6 RESERVED */

unsigned int ClearFail : 1; /* BIT7 Clear failure Status */

} B;

/* |ClearFail|***|***|***|***|***|***|StartCtrl| */

char R;

} Motor_Ctrl_Def;

/* PC master software Motor Control Flags Definition */

typedef union

{

struct

{

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