3.22EjemploDRM007 Co..
3.22EjemploDRM007 Co..
3.22EjemploDRM007 Co..
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 />
void MovCursorLCD(UBYTE places, UBYTE dir)<br />
{<br />
UBYTE ctrl_byte = 0x10 | dir;<br />
do<br />
{<br />
CtrlLCD(ctrl_byte);<br />
}while((--places)>0);<br />
}<br />
return;<br />
/*****************************************************************************\<br />
* void data_LCD(UBYTE data): ASCII symbol to be displayed in the LCD in the *<br />
* current cursor position. *<br />
* *<br />
* Parameters: data. 8-bit value representing the ASCII code of the symbol *<br />
* to be displayed in the LCD at current position *<br />
* *<br />
* Return: None. *<br />
\*****************************************************************************/<br />
void DataLCD(UBYTE data)<br />
{<br />
// Upper Nibble<br />
PORTA &= 0xF0;<br />
// puting pin states of the LCD in PORTA pins<br />
PORTA |= (data >> 4) & 0x0F;<br />
Set_RS();<br />
Set_E();<br />
Clear_E();<br />
// Lower Nibble<br />
PORTA &= 0xF0;<br />
PORTA |= data & 0x0F;<br />
Set_E();<br />
Clear_E();<br />
// puting pin states of the LCD in PORTA pins<br />
Wait40us();<br />
Clear_RS();<br />
}<br />
return;<br />
DRM007<br />
BLDC Motor <strong>Co</strong>ntrol Board for Industrial and Appliance Applications<br />
148 Source <strong>Co</strong>de MOTOROLA