i changed the chip select code.
but still nothing display in my glcd
code:
void WritePosition(void){
b_GLCD_GCS1=0;
b_GLCD_GCS2=0;
b_GLCD_GCS3=0;
b_GLCD_GCS4=0;
if (YPos>63){
if(XPos>63){
b_GLCD_GCS4=1;
b_GLCD_GCS3=1;
}
else{
b_GLCD_GCS2=1;
b_GLCD_GCS1=1;
}
}
GLCD_Write_Cmd(0x40+(XPos&0x3f)); //column=0
GLCD_Write_Cmd(0xb8+((YPos&0x3f)>>3)); //row=0
}
and please check this for me
code:
void Wait_Not_Busy(void){
TRIS_Data=0xff;
b_GLCD_RS=0;
b_GLCD_RW=1;
if (b_GLCD_GCS1==1 && b_GLCD_GCS2==1){
b_GLCD_GCS1=0;
while (GLCD_Read()&0x80);
b_GLCD_GCS1=1;
b_GLCD_GCS2=0;
while (GLCD_Read()&0x80);
b_GLCD_GCS2=1;
}
if (b_GLCD_GCS3==1 && b_GLCD_GCS4==1){
b_GLCD_GCS3=0;
while (GLCD_Read()&0x80);
b_GLCD_GCS3=1;
b_GLCD_GCS4=0;
while (GLCD_Read()&0x80);
b_GLCD_GCS4=1;
}
else{
while (GLCD_Read()&0x80);
}
TRIS_Data=0x00;
}
please help me~