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

YM12864C GLCD driver problem Help!!!

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



Joined: 08 Sep 2008
Posts: 2

View user's profile Send private message

YM12864C GLCD driver problem Help!!!
PostPosted: Tue May 11, 2010 2:55 pm     Reply with quote

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



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue May 11, 2010 3:21 pm     Reply with quote

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);
  }

}
hertzon



Joined: 08 Sep 2008
Posts: 2

View user's profile Send private message

PostPosted: Wed May 12, 2010 7:39 am     Reply with quote

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