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

help in GLCD 128x128

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



Joined: 08 Jul 2008
Posts: 4

View user's profile Send private message

help in GLCD 128x128
PostPosted: Tue Jul 08, 2008 9:31 pm     Reply with quote

Some one please help me to solve the GLCD main code question. My GLCD is in 128x128.
Code:
void main(void)
{
glcd_init(ON);
glcd_readByte(GLCD_CS1);
Wait_Not_Busy();
glcd_writeByte(GLCD_CS1,0xBF);
Wait_Not_Busy();
glcd_fillScreen(ON);
glcd_pixel(40,40,ON);
while (1);
}

I include the GLCD.c in the PIC C driver but it could not work.
And I also wrote some code in the driver
Code:
unsigned char GLCD_Read(void){
unsigned char w;
output_high(GLCD_E);
delay_us(0.010);
output_low(GLCD_E);
return w;
}

void Wait_Not_Busy(void){
SET_TRIS_D(0XFF);
output_low(GLCD_DI);
output_high(GLCD_RW);
if(input(GLCD_CS1)==1&&input(GLCD_CS2)==1){
output_low(GLCD_CS1);
while (GLCD_Read()&0x80)
output_high(GLCD_CS1);
output_low(GLCD_CS2);
while (GLCD_Read()&0x80)
output_high(GLCD_CS2);
}
else{
while (GLCD_Read()&0x80);
}
SET_TRIS_D(0X00);
}

Where should I add the CS3 and CS4?
Please help me! I’m very frustrated.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Jul 08, 2008 9:55 pm     Reply with quote

The code that you posted won't work.

Post the manufacturer and part number of your LCD.
darren



Joined: 08 Jul 2008
Posts: 4

View user's profile Send private message

PostPosted: Wed Jul 09, 2008 9:55 pm     Reply with quote

Displaytech 128128A
http://www.displaytech.com.hk/pdf/graphic/128128a%20series-v11.PDF
can you teach me how to write?
because i'm not quite understand the coding
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