mohammad3d
Joined: 28 Mar 2009 Posts: 17
|
GLCD driver problem with PCD and dspic |
Posted: Fri Apr 01, 2011 3:01 am |
|
|
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 |
|