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 support@ccsinfo.com

graphic lcd problems with pic18f4455

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



Joined: 10 Feb 2006
Posts: 6

View user's profile Send private message Send e-mail

graphic lcd problems with pic18f4455
PostPosted: Fri Feb 10, 2006 7:37 am     Reply with quote

I'm using a BLG1206A1YSR with HD61202U chipset. I tested it with a pic16f877 using ex_glcd.c and it worked fine.

I tested with the 4455, the display doesn't works. The port i'am using works good, i have tested it.

Does someone know if have I something to change in the driver (*.c) to fix that problem ??

thx
JP

.... sorry for my english :(
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Feb 10, 2006 4:32 pm     Reply with quote

It could be that Port B is not being set to all digital i/o pins by
the CCS startup code in your version.

What version is your PCH compiler ?

You can find the version at the top of the .LST file. This file
is in your project folder.
Guest








PostPosted: Mon Feb 13, 2006 7:33 am     Reply with quote

i'm using CCS PCM C Compiler, Version 3.224, 26926

that's working fine this way with 16f877 :

LCD Pin connections:
* 1: VSS is connected to GND
* 2: VDD is connected to +5V
* 3: V0 - LCD operating voltage (Constrast adjustment)
* 4: D/I - Data or Instruction is connected to B2
* 5: R/W - Read or Write is connected to B4
* 6: Enable is connected to B5
*7-14: Data Bus 0 to 7 is connected to port D
*15: Chip Select 1 is connected to B0
*16: Chip Select 2 is connected to B1
*17: Reset is connected to C0
*18: Negative voltage is also connected to the 10k Ohm POT
*19: Positive voltage for LED backlight is connected to +5V (N/C)
*20: Negavtive voltage for LED backlight is connected to GND (N/C)

but I would like to use it this way :

LCD Pin connections:
* 1: VSS is connected to GND
* 2: VDD is connected to +5V
* 3: V0 - LCD operating voltage (Constrast adjustment)
* 4: D/I - Data or Instruction is connected to A2
* 5: R/W - Read or Write is connected to A4
* 6: Enable is connected to A5
*7-14: Data Bus 0 to 7 is connected to port B
*15: Chip Select 1 is connected to A0
*16: Chip Select 2 is connected to A1
*17: Reset is connected to C0
*18: Negative voltage is also connected to the 10k Ohm POT
*19: Positive voltage for LED backlight is connected to +5V (N/C)
*20: Negavtive voltage for LED backlight is connected to GND (N/C)

the probleme with this configuration is that only one side of the display is working.
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Mon Feb 13, 2006 11:22 am     Reply with quote

Did you define port A as digital?
DriverInside



Joined: 10 Feb 2006
Posts: 6

View user's profile Send private message Send e-mail

PostPosted: Mon Feb 13, 2006 3:23 pm     Reply with quote

i did cause for now i dont need analog:

setup_adc_ports(NO_ANALOGS);
setup_adc(ADC_OFF);
set_adc_channel(0);

but how can I define port A as digital?

this is really a pain right now :(

thank for your help...
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Feb 13, 2006 3:40 pm     Reply with quote

Quote:
setup_adc_ports(NO_ANALOGS);

but how can I define port A as digital?

You did it with the statement above.


Also check these things:

1. Do you have a pull-up resistor on Pin A4 ?
If not, add a 4.7K pull-up.

2. Do you have the NOLVP parameter in your #fuses statement ?
If not, add it.
Guest








PostPosted: Mon Feb 13, 2006 4:37 pm     Reply with quote

yep, I have a pull-up on A4 and I also have NOLVP in my #fuses statement.

Do I have to activate the internal pull-up on port b ??

thx again
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Feb 13, 2006 4:56 pm     Reply with quote

Quote:
the problem with this configuration is that only one side of the display is working

If only one side is working, then look closely at the connections for
the CS1 and CS2 signals.
DriverInside



Joined: 10 Feb 2006
Posts: 6

View user's profile Send private message Send e-mail

PostPosted: Tue Feb 14, 2006 7:18 am     Reply with quote

thx you !! I fix it!!
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