sx1
Newbie level 2
Hello,
I am trying to interface the LCD with the PIC 16f877a microcontroller . I am using the MPLAB ICD2 debugger. But somehow I am never able to assign PORTD to 0x20 or 0x28 or any hexadecimal number starting with 0. I am using the 4 bit mode to interface the LCD. So to set the bit mode and number of lines I have to send 0x28 but i am unable to send it as the debugger interprets it is as 0x08. It works well for MPLAB SIM. I had burned the same code yesterday and was successful in printing the string but today somehow it isnt working and i am sure it isn't a hardware problem.
I am trying to interface the LCD with the PIC 16f877a microcontroller . I am using the MPLAB ICD2 debugger. But somehow I am never able to assign PORTD to 0x20 or 0x28 or any hexadecimal number starting with 0. I am using the 4 bit mode to interface the LCD. So to set the bit mode and number of lines I have to send 0x28 but i am unable to send it as the debugger interprets it is as 0x08. It works well for MPLAB SIM. I had burned the same code yesterday and was successful in printing the string but today somehow it isnt working and i am sure it isn't a hardware problem.