Page 1 of 1

LCD problem

Posted: Sun Oct 26, 2008 11:56 am
by khaled yasin
i connected an LCD screen to PIC16f877 and used the motion sensor2 example to see the distance on it,the lcd works fine but it gives me all black blocks,i checked the LCD pins on pic they were giving signals except for the pin B5 which is the enable pin it was always low and didn't send any output at all>>>
can some one tell me why????
what if i connect the enable pin in the LCD directly to 5volt source is that ok?????

Re: LCD problem

Posted: Mon Oct 27, 2008 10:54 am
by Benj
Hello

The enable pin is being used it is just on for small amounts of time. Tying the enable pin to VDD will stop the display from working altogether. Are you running the LCD Start macro at the start of your program. If you are experiencing LCD startup problems then calling this macro twice at the start of your program should get rid of any problems.