CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

16F88 and LCD

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
nuno12345



Joined: 16 Jul 2008
Posts: 50

View user's profile Send private message

16F88 and LCD
PostPosted: Wed Aug 06, 2008 10:28 pm     Reply with quote

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 ;)
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Aug 06, 2008 10:38 pm     Reply with quote

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.
nuno12345



Joined: 16 Jul 2008
Posts: 50

View user's profile Send private message

PostPosted: Wed Aug 06, 2008 11:10 pm     Reply with quote

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...
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Aug 07, 2008 12:52 am     Reply with quote

1. Post the manufacturer and part number of the LCD.

2. Post your compiler version.
nuno12345



Joined: 16 Jul 2008
Posts: 50

View user's profile Send private message

PostPosted: Thu Aug 07, 2008 8:42 am     Reply with quote

CCS: 4.074
LCD: JHD 162A (I think its from Hitachi)
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Aug 07, 2008 11:36 am     Reply with quote

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.
nuno12345



Joined: 16 Jul 2008
Posts: 50

View user's profile Send private message

PostPosted: Thu Aug 07, 2008 11:42 am     Reply with quote

I did check them :/
It works for me in proteus too but not on my breadboard :/
nuno12345



Joined: 16 Jul 2008
Posts: 50

View user's profile Send private message

PostPosted: Thu Aug 07, 2008 12:49 pm     Reply with quote

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 ;)
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group