Hi, I am planning to allow my robot to sense temperature, then at certain temperature, the LED will light, fan work and the LCD display the temperature. I am using PIC16f877a, the pin connection between LCD and PIC looks like this,
LCD =>PIC
DB0~DB7=> RB1~RB7 (portB)
RS =>RD7
E =>RC7
However, when i try to run it, the LCD just show solid block in the first line. After troubleshoot for quite sometime, i couldn't find the root prob, can anyone help me with this? Here is my code in the attachment. I look at the datasheet, it says that port B has weak pull up, do I need to disable it?
Thanks.