LCD interfacing with 8051-II
YouTube link here LCD interfacing with 8051-II Please find the coding below: #include<regx51.h> #define lcd P3 // define LCD DATA pins to Port-2 sbit RS = P2^0; // Register select sbit RW = P2^1; // Read/write sbit EN = P2^2; // Enable pin void delay (unsigned int ms) // Delay function { unsigned int i, j; for (i=0; i<=ms; i++) for (j=0; j<1275; j++); } void lcd_cmd(unsigned char x) //LCD command function { ...