View previous topic :: View next topic |
Author |
Message |
jahan
Joined: 04 Apr 2005 Posts: 63
|
GLCD problem - See Photo |
Posted: Wed Aug 09, 2006 9:00 pm |
|
|
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
|
|
Posted: Thu Aug 10, 2006 1:51 am |
|
|
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
|
|
Posted: Thu Aug 10, 2006 8:11 am |
|
|
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
|
|
Posted: Thu Aug 10, 2006 10:04 am |
|
|
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
|
Thankx |
Posted: Fri Aug 11, 2006 10:17 pm |
|
|
It is working great!.
Thankx |
|
|
Homie
Joined: 11 Aug 2006 Posts: 11
|
|
Posted: Fri Aug 11, 2006 11:46 pm |
|
|
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 |
|
|
|