Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
void Delay(unsigned int Duration)
{
while((Duration--)!=0)
{
unsigned int loop=1000;
while((loop--)!=0);
}
}
void strobe()
// Generate the E signal
{
EN = 1;
Delay(5);
EN = 0;
Delay(5);
}
void LCD_control(unsigned char controlCode) // Control position of characters which is going to be displayed.
{
P2=controlCode;
RS=0;
RW=0;
strobe();
}
LCD_CMD_Write(0x38); //8-bit, 2-line display, 5x7 font
LCD_CMD_Write(0x06); //auto increment
LCD_CMD_Write(0x0E); //display on, cursor on, no blinking
LCD_CMD_Write(clearLCD); //clear display, reset
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.