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 CCS Technical Support

GLCD driver problem with PCD and dspic

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



Joined: 28 Mar 2009
Posts: 17

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

GLCD driver problem with PCD and dspic
PostPosted: Fri Apr 01, 2011 3:01 am     Reply with quote

Hi every one,
I use CCS 4.114 and dspic 30f6014A micro with 64x128 GLCD.
My program compiled and fully work with CCS 4.093,but when
I switch to CCS 4.114 my GLCD don't display correct and display some
wrong line on screen.
Then I change some part of "glcd_pixel" function and problem fix.
Now GLCD work correct.
I change "glcd_pixel" as follow:
Code:

/////////////////////////////////////////////////////////////////////////////
void glcd_pixel(unsigned int8 x, unsigned int8 y, int1 color)
#ifdef FAST_GLCD
{
   unsigned int16 p;
   unsigned int16 temp;
   temp =(unsigned int16)y>>3; //Div8
   temp <<=6; //x64
   temp +=x;
//////////////////////////////////////////////////////////////////////////////

May this helpful for same trouble...
Regards,
Mohammad Kouchekzadeh
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