I want to interface LCD in 8 bit mode but it can not initializes. bellow is my initialization function please help me to solve this problem.
void Lcd_Init() { Lcd_command (0x30); MSdelay(50); Lcd_command (0x30); MSdelay(50); Lcd_command (0x30); MSdelay(50); Lcd_command (0x38); MSdelay(10); Lcd_command (0x0e); MSdelay(10); Lcd_command (0x01); MSdelay(10); Lcd_command (0x06); MSdelay(10); Lcd_command(0x80); MSdelay(10);
}
Are you sure about the functionality of your Mega-Siemens delay function?
Another thing - magic numbers are seldom good in software.
Third thing - how have you figured out that all your pins are correctly connected and initialized, so your software commands actually result in the expected hardware pin changes?
View all questions in Keil forum