The 16×2 LCD has command register is use to hold the commands. The 16×2 LCD module has a set of commands each meant for doing a particular job with the display.
http://pdf1.alldatasheet.com/datasheet-pdf/view/127934/ETC1/JHD162A.html
Initializing LCD: Basic command to initialize LCD to the 8051
The common steps needs for initializing the LCD display
I don't understand two things. Why do we need to give delay between two commands?. How much delay need to give ?
http://pdf1.alldatasheet.com/datasheet-pdf/view/127934/ETC1/JHD162A.html
Initializing LCD: Basic command to initialize LCD to the 8051
The common steps needs for initializing the LCD display
- Send 38H to the 8 bit data line for initialization
- Send 0FH for making LCD ON, cursor ON and cursor blinking ON.
- Send 06H for incrementing cursor position.
- Send 01H for clearing the display and return the cursor.
C:
void LCD_initializing(void)
{
LCD_Command(0x38);
Delay(20);
LCD_Command(0x0f);
Delay(20);
LCD_Command(0x01);
Delay(20);
LCD_Command(0x81);
Delay(20);
}