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

LCD question

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







LCD question
PostPosted: Thu Dec 21, 2006 6:33 am     Reply with quote

Hi,

I'm working with a new LCD COG. I have a simple test program which writes the same data to each memory location (100*64 pixels --> 100*8 locations). If I use constant value , e.g., 32 everything goes right and I 8 lines. However, the values without "32", e.g. 1, makes display crazy. This is not a software problem, but have anyone had same kind of situation. Please find a code below.

Thanks and season greetings
Tapio

Write_Display2(CMD,DISPLAY_ON);
for (i=0; i<8;++i )
{
Write_Display2(CMD,0xB0+i);
Write_Display2(CMD,0x00); //Column adress low
Write_Display2(CMD,0x10);
for (j=0; j<100;++j)
{
Write_Display2(data_d, 0); HERE 32 works , 0 makes it crazy!
delay_ms(10);

}
}
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