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

GLCD problem - See Photo

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



Joined: 04 Apr 2005
Posts: 63

View user's profile Send private message Send e-mail

GLCD problem - See Photo
PostPosted: Wed Aug 09, 2006 9:00 pm     Reply with quote

Hi,
I've compile the code for ex_glcd.c from example codes and loaded to 18F452.
It does work fine and shows the reading from RA0, except the 0,0 location of the screen is shifted to middle and wrapped around.

for example the "WARNING" and the bar shows as follow:


Any suggestion?
specialk



Joined: 12 Nov 2005
Posts: 27

View user's profile Send private message

PostPosted: Thu Aug 10, 2006 1:51 am     Reply with quote

Looks like your chip select lines are reversed. Try changing CS1 and CS2 either in software or by swaping the lines physically.

-special [k]
jahan



Joined: 04 Apr 2005
Posts: 63

View user's profile Send private message Send e-mail

PostPosted: Thu Aug 10, 2006 8:11 am     Reply with quote

thankx for the help. I'll try it today.
my thoughts was that there is something wrong with memory location to start writing information. Just like a 24x2 line regular lcd where the second line has a specific address that program points to and write the data.
what are the CS1 and CS2 lines anyway?

-JJ
Ttelmah
Guest







PostPosted: Thu Aug 10, 2006 10:04 am     Reply with quote

They select the two 'halves' of the memory. Hence if reversed will give the sort o behaviour you are seeing.

Best Wishes
jahan



Joined: 04 Apr 2005
Posts: 63

View user's profile Send private message Send e-mail

Thankx
PostPosted: Fri Aug 11, 2006 10:17 pm     Reply with quote

It is working great!.
Thankx
Homie



Joined: 11 Aug 2006
Posts: 11

View user's profile Send private message

PostPosted: Fri Aug 11, 2006 11:46 pm     Reply with quote

CS1 and CS2 is chip select 1 and 2. My guess is that your display is a 128x64bit display. And every chip can handle 8 rows at 8bits =64bits, therefore you need 2 chips to cover the whole display.

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