Saad_111
Member level 1
Hi everyone,
I am working on pic18f4523 and i want to interface lcd with mcu, but lcd is not working.
here is a simple code:
Can anyone please tell me, what is the problem actually?
I am working on pic18f4523 and i want to interface lcd with mcu, but lcd is not working.
here is a simple code:
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 void main() { CMCON = 0x07; // turn off comparators ADCON1 = 0x0F; // AD-Ports as digital I/O ADCON0= 0x0; // AD-Converter module disabled TRISB = 0x00; lcd_config(&portd,4,5,6,3,2,1,0); Lcd_Cmd(_LCD_CURSOR_OFF); // Cursor off Lcd_Cmd(_LCD_CLEAR); // Clear display Lcd_Out(1,1,"Hello World"); Delay_ms(1000); do { Delay_ms(100); PORTD=~PORTD; } while(1); }
Can anyone please tell me, what is the problem actually?
Last edited by a moderator: