LCD code not working?

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
Flint3058
Posts: 10
Joined: Sat Jan 17, 2009 12:01 am

LCD code not working?

Post by Flint3058 »

Tried to search the forums but didn't seem to want to let me to , I'm trying connect a LCD to my 16F627 and have set to 4Mhz with an external Xtal and I know my LCD works I tested in 8bit mode connected to my computer LPT port and the screen dose not want to work with the PIC just black blocks on top row, I have a LED connected on RA1 and programed to blink so I know the PIC is working, I checked my connects and they are right as far as I can see, just used the default in Flowcode connected to port B since there are not enough pins on port A the connection is as so E=RB5, RS=B4 , D7= RB3 , D6= RB2 , D5 = RB1 , D4 = RB0
here is the datasheet for my screen http://www.goldentek.com/english/pdf/Do ... L1B%20.pdf
I checked the datasheet on the LCD e-block and have my'n connected the same any one else have had this problem?

User avatar
Steve
Matrix Staff
Posts: 3433
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times

Re: LCD code not working?

Post by Steve »

2 quick things to try:

1) write a small LED flasher program to make sure your processor is running at the speed you have set it.

2) make sure LVP is disabled as this will prevent one of the pins on portb from working as an i/o line.

Flint3058
Posts: 10
Joined: Sat Jan 17, 2009 12:01 am

Re: LCD code not working?

Post by Flint3058 »

Thank you!!!! It works now, it was the the low voltage programing config, disabled and now works perfectly , just had to double check my programmer that it does high voltage programming so I can rewrite the chip and all is fine! :mrgreen:

Post Reply