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?????
LCD problem
-
- Posts: 43
- Joined: Sat Sep 13, 2008 10:36 pm
- Contact:
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: LCD problem
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel