View previous topic :: View next topic |
Author |
Message |
sapy44
Joined: 01 Feb 2004 Posts: 19 Location: Cedar Rapids, IA
|
128x64 GLCD odd behavior |
Posted: Wed May 26, 2010 12:40 pm |
|
|
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
|
|
Posted: Wed May 26, 2010 3:06 pm |
|
|
What's your CCS compiler version ?
Also, what's your PIC ? |
|
|
MikeP
Joined: 07 Sep 2003 Posts: 49
|
|
|
sapy44
Joined: 01 Feb 2004 Posts: 19 Location: Cedar Rapids, IA
|
GLCD info |
Posted: Sun Jul 18, 2010 12:54 am |
|
|
Compiler version 4.066
PICs used are 18F4685 and 18F4620
using the standard GLCD driver from CCS |
|
|
|