I'm using PBP to drive a 4X40 LCD from Futurlec driven by a PIC16F877A at 20 MHz
I've read all/most of the 4X40 posts but still have a problem:
1. The LCD is marked JHD404A1 on the back.
2. I think the spec sheet published by Futurlec is wrong - there is no indication of two ENABLES although the data addresses for lines 1/3 and 2/4 are the same ($80-$A7 and $C0-$E7)?
3. On the JHD web-site there is a JHD404A that has different pin-outs and includes two ENABLES. Looks hopeful:
Pin 1 -8 Data 7 to 0
Pin 9 ENABLE1
Pin 10 R/W
Pin 11 RS
Pin 12 Contrast
Pin 13 Ground
Pin14 +5
Pin15 ENABLE2
Pin16 NC
Pin17 Backlight +
Pin18 Backlight -
But still won't work despite:
1. Long delay to let LCD settle
2. Going through all combinations of ENABLE 1/2 at initialisation
3. Painstaking checking of wiring from LCD to PIC877A
4. Checking of DEFINES for LCD (DEFINE LINES set at 2?)
5. Xtal is 20 MHz and is also DEFINED
6. Other 2 and 4 line LCDs work OK using the same PBP program
Anyone else out there using this Futurlec 4X40 LCD with PBP code. I'd welcome advice/comments/code.
I may have missed some previous post but have searched this site all morning?
Regards Bill Legge
Bookmarks