The code protection option shows 'disabled' and the pic can read the memory once the read button is pressed in pickit2.But still,the lcd doesn't display anything,but a line of black boxes.The lcd display coding is as shown below:
// LCD module connections
sbit LCD_RS at LATD0_bit;
sbit LCD_EN at LATD1_bit;
sbit LCD_D4 at LATD2_bit;
sbit LCD_D5 at LATD3_bit;
sbit LCD_D6 at LATD4_bit;
sbit LCD_D7 at LATD5_bit;
sbit LCD_RS_Direction at TRISD0_bit;
sbit LCD_EN_Direction at TRISD1_bit;
sbit LCD_D4_Direction at TRISD2_bit;
sbit LCD_D5_Direction at TRISD3_bit;
sbit LCD_D6_Direction at TRISD4_bit;
sbit LCD_D7_Direction at TRISD5_bit;
// End LCD module connections
void main() {
ANSELD = 0x00;
TRISD = 0x00;
PORTD = 0x00;
Delay_ms(100);
LCD_Init();
LCD_Cmd(_LCD_CURSOR_OFF);
LCD_Cmd(_LCD_CLEAR);
LCD_Out(1,1,"Accident");
LCD_Out(2,2,"Notifier");
while(1){
Delay_ms(2000);
LCD_Out(1,1,"Accident");
LCD_Out(2,2,"Notifier");
Delay_ms(2000);
LCD_Out(1,1,"Karthigan");
LCD_Out(2,2,"Dasaratha");
}
}
Can anyone help me ?
Thank you.