21.01.2014 Views

3.22EjemploDRM007 Co..

3.22EjemploDRM007 Co..

3.22EjemploDRM007 Co..

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Source <strong>Co</strong>de<br />

Include Files<br />

#define NO_FAULT<br />

#define MOTOR_STALLED<br />

#define FAULT_OCCURRED<br />

// PWM Module<br />

#define _15_625KHz<br />

#define ZEROPWM<br />

#define DEADTIME<br />

#define PWMOFF<br />

#define PWMFREQ<br />

#define PWMON<br />

#define RELOAD_1<br />

#define RELOAD_2<br />

#define RELOAD_4<br />

#define RELOAD_8<br />

0x00<br />

0x01<br />

0x02<br />

0x100<br />

0x80<br />

0x10<br />

0x0000<br />

_15_625KHz<br />

PWMFREQ<br />

0x00<br />

0x40<br />

0x80<br />

0xC0<br />

/*****************************************************************************\<br />

* End timer.h *<br />

******************************************************************************/<br />

;<br />

7.2.5 LCD.H<br />

;<br />

/*****************************************************************************\<br />

* <strong>Co</strong>pyright (c) 2002, Motorola Inc.<br />

*<br />

* Motorola <strong>Co</strong>nfidential Proprietary<br />

*<br />

* ----------------------------------------------------------------------------*<br />

* File name : lcd.h *<br />

* Project name: Brushless DC Motor Drive with the MR8 Microcontroller<br />

*<br />

* ----------------------------------------------------------------------------*<br />

* Author : Jorge Zambada *<br />

* Email : Jorge.Zambada@motorola.com *<br />

* Department : Mexico Applications Lab - SPS *<br />

* *<br />

* Description : The functions prototypes and some usefull #defines where *<br />

* placed in this document for a better understanding of LCD *<br />

* interface *<br />

\*****************************************************************************/<br />

// Function Declaration Headers<br />

void WaitMs(UBYTE number_of_miliseconds);<br />

void Wait40us(void);<br />

void InitLCD(void);<br />

void DataLCD(UBYTE data_to_be_displayed);<br />

void StringLCD(UBYTE *pointer_to_string);<br />

BLDC Motor <strong>Co</strong>ntrol Board for Industrial and Appliance Applications<br />

DRM007<br />

MOTOROLA Source <strong>Co</strong>de 113

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!