View previous topic :: View next topic |
Author |
Message |
DriverInside
Joined: 10 Feb 2006 Posts: 6
|
graphic lcd problems with pic18f4455 |
Posted: Fri Feb 10, 2006 7:37 am |
|
|
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
|
|
Posted: Fri Feb 10, 2006 4:32 pm |
|
|
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
|
|
Posted: Mon Feb 13, 2006 7:33 am |
|
|
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
|
|
Posted: Mon Feb 13, 2006 11:22 am |
|
|
Did you define port A as digital? |
|
|
DriverInside
Joined: 10 Feb 2006 Posts: 6
|
|
Posted: Mon Feb 13, 2006 3:23 pm |
|
|
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
|
|
Posted: Mon Feb 13, 2006 3:40 pm |
|
|
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
|
|
Posted: Mon Feb 13, 2006 4:37 pm |
|
|
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
|
|
Posted: Mon Feb 13, 2006 4:56 pm |
|
|
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
|
|
Posted: Tue Feb 14, 2006 7:18 am |
|
|
thx you !! I fix it!! |
|
|
|