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

128x64 GLCD odd behavior

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



Joined: 01 Feb 2004
Posts: 19
Location: Cedar Rapids, IA

View user's profile Send private message MSN Messenger

128x64 GLCD odd behavior
PostPosted: Wed May 26, 2010 12:40 pm     Reply with quote

Hello All,

I've been working with a KS0108 based GLCD. In the past I've been able to work with this GLCD with no issues, but recently I've fired it back up and found some odd behavior.

I can fill the screen with glcd_fill() function so I know that the individual pixels and memory locations are ok. However when I try to draw shapes like lines, rectangles, circles, etc. I get some random pixel errors.

When I single step through the code I can see that some pixels are being set ok, but when subsequent pixels are set, some of the previously set pixels are cleared.

I have a feeling that when the glcd_pixel() function reads back the memory location contents it is corrupting the data. Then when the glcd_write() function is called to set the individual pixel, it is upsetting the previously drawn pixels.

Please excuse the fact that I did not post any code, but I am just using the included driver glcd.c

Has anyone ever encountered this sort of behavior before ? If so, any suggestions on how to fix the problem ?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed May 26, 2010 3:06 pm     Reply with quote

What's your CCS compiler version ?

Also, what's your PIC ?
MikeP



Joined: 07 Sep 2003
Posts: 49

View user's profile Send private message

PostPosted: Wed May 26, 2010 8:17 pm     Reply with quote

Please read and apply the fixes in this post if you are using the SED1335.c driver.

http://www.ccsinfo.com/forum/viewtopic.php?t=21096
sapy44



Joined: 01 Feb 2004
Posts: 19
Location: Cedar Rapids, IA

View user's profile Send private message MSN Messenger

GLCD info
PostPosted: Sun Jul 18, 2010 12:54 am     Reply with quote

Compiler version 4.066

PICs used are 18F4685 and 18F4620


using the standard GLCD driver from CCS
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