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

ks0108 128x64glcd interface problem
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
ezflyr



Joined: 25 Oct 2010
Posts: 1019
Location: Tewksbury, MA

View user's profile Send private message

PostPosted: Sat Mar 17, 2012 9:16 am     Reply with quote

Hi,

Are you saying that swapping CS1 and CS2 on the display causes the opposite side of the display to start working? IOW, first the right side was working, and now the left side is working?

If so, your GLCD is probably fine, and the trouble is with CS1 or CS2. You need to figure out which one isn't working. You can study the data sheet, or you can make a simple test.

Try disconnecting one of the CS lines, say CS2. If only one side of the display is now working, the problem is CS2. If the display is not working at all, the problem is CS1. Try each CS line separately - you get the idea.

Once you know which line is causing the problem, you can moe carefully check your wiring. You can also write a small test program to "exercise" the offending line to verify that your PIC is OK. Connect the line to a scope or an LED to give yourself some feedback.

John
sresam89



Joined: 15 Mar 2012
Posts: 20
Location: India

View user's profile Send private message

PostPosted: Sat Mar 17, 2012 11:14 am     Reply with quote

ezflyr wrote:
Hi,

Are you saying that swapping CS1 and CS2 on the display causes the opposite side of the display to start working? IOW, first the right side was working, and now the left side is working?


yes swapping the cs lines causes the display to show the output on single side ONLY that is the left side.

From the very beginning my left side was only working.

Quote:

If so, your GLCD is probably fine, and the trouble is with CS1 or CS2. You need to figure out which one isn't working. You can study the data sheet, or you can make a simple test.

Try disconnecting one of the CS lines, say CS2. If only one side of the display is now working, the problem is CS2. If the display is not working at all, the problem is CS1. Try each CS line separately - you get the idea.



When I plugin portC.2 into CS2 (16 pin of GLCD) and portC.1 (15 pin of GLCD) in to CS1 I get the half of the content on the left side but nothing on the right.
When I swap the leads portc.2 to cs1 and portc.1 to cs2 I get the other half of the content to be displayed but sadly on the same left side of the display still no contents on the right side of my LCD !!

Quote:

Once you know which line is causing the problem, you can moe carefully check your wiring. You can also write a small test program to "exercise" the offending line to verify that your PIC is OK. Connect the line to a scope or an LED to give yourself some feedback.

John


This proves that my cs1 and cs2 lines from pic are giving out datas Confused
What more should I be doing to correct my code Question Crying or Very sad

Also notice I am getting some sort of black bars in my display. Please see my attachment in the previous post.

https://picasaweb.google.com/sresam89/Project?authkey=Gv1sRgCP3WsOikn7-kcw#5720836329326722082
ezflyr



Joined: 25 Oct 2010
Posts: 1019
Location: Tewksbury, MA

View user's profile Send private message

PostPosted: Sun Mar 18, 2012 10:36 pm     Reply with quote

Hi,

It seems that your display might have problem. Can you try a new one?

John
sresam89



Joined: 15 Mar 2012
Posts: 20
Location: India

View user's profile Send private message

PostPosted: Sun Mar 18, 2012 11:39 pm     Reply with quote

ezflyr wrote:
Hi,

It seems that your display might have problem. Can you try a new one?

John


hi ezflyr
I have tried with new one too still the problem exists. :(
Any problem with driver? If you have one can you please attach it.
ezflyr



Joined: 25 Oct 2010
Posts: 1019
Location: Tewksbury, MA

View user's profile Send private message

PostPosted: Tue Mar 20, 2012 10:20 am     Reply with quote

Hi,

To summarze, with the "normal" configuration of CS1 and CS2 you only see something on the left side of the display, and with these lines swapped you still only see something on the left side, but it's the data that nomally goes on the right side?

If you've swapped displays then I guess your drive is not handling the CS lines correctly? I'm traveling, and can't send you anything for about a week. I have a modified version of the CCS driver 'GLCD.c' that I've added some additional font sizes to, and some other things. I can send it to you when I get back.

John
sresam89



Joined: 15 Mar 2012
Posts: 20
Location: India

View user's profile Send private message

PostPosted: Wed Mar 21, 2012 1:43 am     Reply with quote

ezflyr wrote:
Hi,

To summarze, with the "normal" configuration of CS1 and CS2 you only see something on the left side of the display, and with these lines swapped you still only see something on the left side, but it's the data that nomally goes on the right side?

If you've swapped displays then I guess your drive is not handling the CS lines correctly? I'm traveling, and can't send you anything for about a week. I have a modified version of the CCS driver 'GLCD.c' that I've added some additional font sizes to, and some other things. I can send it to you when I get back.

John


is there a need to invert the cs2 lines to deliver the correct codes to the driver
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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