21.01.2014 Views

3.22EjemploDRM007 Co..

3.22EjemploDRM007 Co..

3.22EjemploDRM007 Co..

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

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

}<br />

DataLCD('0');<br />

MovCursorLCD(First_<strong>Co</strong>lumn, LEFT);<br />

if (FAULTState != NO_FAULT)<br />

{<br />

CtrlLCD(CLEARLCD);<br />

if (FAULTState == MOTOR_STALLED)<br />

StringLCD("Motor Stalled!!!");<br />

else<br />

StringLCD("Fault Occured!!!");<br />

FAULTState = NO_FAULT;<br />

LCDState = BLDC_STOP;<br />

}<br />

}Forever();<br />

}<br />

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

* End main.c *<br />

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

;<br />

7.3.3 TIMER.C<br />

;<br />

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

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

*<br />

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

*<br />

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

* File name : timer.c *<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 implementation of different motor control algorithms are*<br />

* in this document. Also the interrupt handler subroutines are*<br />

* here in timer.c *<br />

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

#ifndef _TIMER_H<br />

#define _TIMER_H<br />

#include "main.h"<br />

#include "timer.h"<br />

#include "tables.h"<br />

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

DRM007<br />

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

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

Saved successfully!

Ooh no, something went wrong!