![](templates/subSilver/images/CCSLogo.jpg) |
![CCS C Software and Maintenance Offers](templates/subSilver/images/forumAd6.jpg) |
View previous topic :: View next topic |
Author |
Message |
hertzon
Joined: 08 Sep 2008 Posts: 2
|
YM12864C GLCD driver problem Help!!! |
Posted: Tue May 11, 2010 2:55 pm |
|
|
I have a problem. I'm doing an application with a LCD display 128x64 pixels. I am using CCS compiler version 4.014, with a PIC18F452. I am using the library GLCD.C, simulating everything in Proteus to perfection. But to connect the dots and lines the screen is unrecognizable
I think that was a problem in the frequency of the clock in CCS. I'm using a 10MHz crystal, with the fuse H4, or 40MHz. In Proteus it is going well, but in reality no. It was something like, I think the clock I was given for putting the clock frequency was 120MHz! Haha crazy and I run the GLCD, to a perfection. Not all is due to this problem, the controller may not help, it may be the driver, or connection pins of the lcd may vary in position with respect the original driver. Any help is welcome.
In the photo section of GLCD I have 2 images running at 120MHz! jejeje
Sincerely,
Mr. Nelson Javier Rodriguez
Bogota_Colombia |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue May 11, 2010 3:21 pm |
|
|
For PLL operation, set the #use delay() to 40 MHz.
The program below will blink an LED on Pin B0, once per second.
You must use a 10 MHz crystal (with 22 pf capacitors).
After programming the PIC, you must turn off the power to the board.
Then turn the power on again. This is necessary to activate the H4 PLL mode.
Code: | #include <18F452.h>
#fuses H4, NOWDT, PUT ,BROWNOUT, NOLVP
#use delay(clock=40000000)
//====================================
void main()
{
while(1)
{
output_high(PIN_B0);
delay_ms(500);
output_low(PIN_B0);
delay_ms(500);
}
} |
|
|
![](templates/subSilver/images/spacer.gif) |
hertzon
Joined: 08 Sep 2008 Posts: 2
|
|
Posted: Wed May 12, 2010 7:39 am |
|
|
Ok, thanks the processor its running at 40MHz with PLL (H4), but still has the problem with lcd. I search this 128x64 lcd YM12864, and it has this controller AIP31108. I had to modified GLCD driver, multiply x3 the delays in this driver and it works fine!!!...
I think that the controller is not fast enough than Hantronix HDM64GS12 (3 times more slow).
thanks
Ing. Nelson Rodriguez
Bogota-Colombia
nelsonhenge@hotmail.com |
|
![](templates/subSilver/images/spacer.gif) |
|
|
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
|