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

Usage of FAST_GLCD and glcd_update() commands with PIC18F

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



Joined: 28 Nov 2008
Posts: 1

View user's profile Send private message

Usage of FAST_GLCD and glcd_update() commands with PIC18F
PostPosted: Fri Jan 02, 2009 11:50 am     Reply with quote

Hello everybody,

I am gonna tell you my problem briefly; I want to use the faster method for driving a ks0108, which is fast_glcd*. When i use it with glcd_text57 or glcd_bar functions, it works just fine.

When it comes to glcd_line(), it doesnt show anything on the graphic lcd.

Here is my simple code; again what i want to do is, first display the bars one by one, clear the screen, then draw the lines from top to bottom one by one.

*When i dont use FAST_GLCD, program executes perfectly.


Code:

#include <18f4685.h>
#fuses HS,NOWDT,NOPROTECT,NOBROWNOUT,NOLVP,NOPUT,NOWRT,NODEBUG,NOCPD

#use delay (clock=6000000)
#define FAST_GLCD
#include <HDM64GS12.c>
#include <graphics.c>


int i,x1,y1,x2,y2;

void main()
{
   
   glcd_init(ON);
   
   while(1)
   {
      glcd_init(ON);
      y2=60;
      x1=5;
      for(i=0;i<8;i++)
      {
         glcd_bar(x1,0,x1,y2,10,ON);
         glcd_update();
         delay_ms(1000);
         x1+=15;
         y2-=5;
      }
      glcd_init(ON);
      x1=5;
      y1=5;
      x2=100;
      y2=5;
     
      for(i=0;i<6;i++)
      {
         glcd_line(x1,y1,x2,y2,ON);
         glcd_update();
         delay_ms(1000);
         y2=y1+=10;
         x2-=10;
         
      }
     
   }
}


What may be the problem that prevents displaying the lines?

Regards
hoss



Joined: 12 Oct 2006
Posts: 9

View user's profile Send private message

PostPosted: Mon Apr 06, 2009 11:19 am     Reply with quote

I have the same problem, but it was working when using one of the 3.x version compilers.
I have just updated to 4.090 to see if it has been fixed again, but it seems not...
tigiyko



Joined: 05 Dec 2011
Posts: 3

View user's profile Send private message

PostPosted: Mon Dec 05, 2011 3:15 am     Reply with quote

I have same problem too. My code works perfectly with glcd_update () function. But when i compiled my code without fast_glcd( it is still working in isis) characters in glcd engaging. Can anyone help me?
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