View previous topic :: View next topic |
Author |
Message |
nuno12345
Joined: 16 Jul 2008 Posts: 50
|
16F88 and LCD |
Posted: Wed Aug 06, 2008 10:28 pm |
|
|
Hi again, I cant get my LCD to work :/
LCD: 16x2 LCD Module White Characters with Blue Backlight HD44780
PIC: 16F88 I/P
CODE: Code: | #include <16F88.h>
#fuses INTRC_IO, NOWDT, NOPROTECT, BROWNOUT, PUT, NOLVP
#use delay(clock=4000000)
#include "flex_lcd.c"
//======================
void main()
{
lcd_init();
lcd_putc("\fHello World");
while(1);
} |
PROGRAMMER: JDM Programmer (bought)
PROBLEM: The LCD just "lights" it doesnt show anything...once I got it to show the "end blinking square" but I cant get it anymore :/
Thanks ;) |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Aug 06, 2008 10:38 pm |
|
|
Post the list of connections between the LCD and the PIC.
Also post the other connections that you have to the LCD, such as
the contrast circuit. |
|
![](templates/subSilver/images/spacer.gif) |
nuno12345
Joined: 16 Jul 2008 Posts: 50
|
|
Posted: Wed Aug 06, 2008 11:10 pm |
|
|
I have them like this:
Code: | #define LCD_DB4 PIN_B4
#define LCD_DB5 PIN_B5
#define LCD_DB6 PIN_B6
#define LCD_DB7 PIN_B7
#define LCD_E PIN_A1
#define LCD_RS PIN_A3
#define LCD_RW PIN_A2 |
I have 2 extra PIN's on the LCD for backlight, positive and negative, the backlight lights ON...
The VEE PIN I try to connect to GND VCC, used a 10k resistor... |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu Aug 07, 2008 12:52 am |
|
|
1. Post the manufacturer and part number of the LCD.
2. Post your compiler version. |
|
![](templates/subSilver/images/spacer.gif) |
nuno12345
Joined: 16 Jul 2008 Posts: 50
|
|
Posted: Thu Aug 07, 2008 8:42 am |
|
|
CCS: 4.074
LCD: JHD 162A (I think its from Hitachi) |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu Aug 07, 2008 11:36 am |
|
|
I tested your program with a 16F88 on a PicDem2-Plus board, with your
connections, and with your version of the compiler. It worked OK.
I think the problem is that your connections to the LCD are probably
not correct. You should check them again. |
|
![](templates/subSilver/images/spacer.gif) |
nuno12345
Joined: 16 Jul 2008 Posts: 50
|
|
Posted: Thu Aug 07, 2008 11:42 am |
|
|
I did check them :/
It works for me in proteus too but not on my breadboard :/ |
|
![](templates/subSilver/images/spacer.gif) |
nuno12345
Joined: 16 Jul 2008 Posts: 50
|
|
Posted: Thu Aug 07, 2008 12:49 pm |
|
|
Finnaly working, voltage problem...in desperate I got closer to the pc monitor then I watched the LCD and there was the text, but I could barely notice it...I increased the voltage and voila! lol
Thanks PCM, your the man ;) |
|
![](templates/subSilver/images/spacer.gif) |
|