PA3040
Advanced Member level 3
Dear All
This is related to PIC 16F877a MCU and HD44870 LCD ( 4bit Mode)
My LCD and MCU connections are as follows.
RD4 to LCD data pin 4
RD5 to LCD data pin 5
RD6 to LCD data pin 6
RD7 to LCD data pin 7
LCD 0,1,2,3 pins are connected to GND
Above codes data write for 4bit mode and it is working
However my new hardware design was changed as follows
RD0 to LCD data pin 4
RD1 to LCD data pin 5
RD2 to LCD data pin 6
RD3 to LCD data pin 7
Could you please advice me how may I change my above lcddata program accordant to new hardware design
Thanks in advance
This is related to PIC 16F877a MCU and HD44870 LCD ( 4bit Mode)
My LCD and MCU connections are as follows.
RD4 to LCD data pin 4
RD5 to LCD data pin 5
RD6 to LCD data pin 6
RD7 to LCD data pin 7
LCD 0,1,2,3 pins are connected to GND
Code:
void lcddata(unsigned char value)
{
LCD_RS = 1;
LCD_DATA= (value&0xf0);
LCD_STROBE;
LCD_DATA = ((value<<4)&0xf0);
LCD_STROBE;
__delay_ms(10);
}
Above codes data write for 4bit mode and it is working
However my new hardware design was changed as follows
RD0 to LCD data pin 4
RD1 to LCD data pin 5
RD2 to LCD data pin 6
RD3 to LCD data pin 7
Could you please advice me how may I change my above lcddata program accordant to new hardware design
Thanks in advance