Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Strange LCD problems

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-8051 Archive
View previous topic :: View next topic  
Author Message
GeertJ

Bascom Member



Joined: 27 Dec 2005
Posts: 4

belgium.gif
PostPosted: Thu Dec 07, 2006 11:50 am    Post subject: Strange LCD problems Reply with quote

Hi,

I've got some strange problems with my LCD display. I'm using a 4 line, 20 character display form this brand: http://www2.produktinfo.conrad.com/datenblaetter/175000-199999/181743-da-01-de-LCD-Modul_4x20_blau_EA_DIP204B-4NLW.pdf .
Now my problem is that when I write something to the second line, it will appear on the third line. When I write somthing to the third line, it will appear on the second line. First en Fourth line are okay. Somebody has a clue what i'm doing wrong?

Kind regards
Geert Joos
Back to top
View user's profile
SvendP

Bascom Member



Joined: 18 Apr 2006
Posts: 3

blank.gif
PostPosted: Thu Dec 07, 2006 11:55 am    Post subject: Reply with quote

Hi.

That is perfectably normal for en LCD display to behave like that.
The adress for charaters are line 1 - 3 - 2 - 4.

So you will have to live with it.

Regards
Svend
Back to top
View user's profile
SvendP

Bascom Member



Joined: 18 Apr 2006
Posts: 3

blank.gif
PostPosted: Thu Dec 07, 2006 12:04 pm    Post subject: Reply with quote

Hi.

That is perfectably normal for en LCD display to behave like that.
The adress for charaters are line 1 - 3 - 2 - 4.

So you will have to live with it.

Regards
Svend
Back to top
View user's profile
GeertJ

Bascom Member



Joined: 27 Dec 2005
Posts: 4

belgium.gif
PostPosted: Fri Dec 08, 2006 2:21 pm    Post subject: Reply with quote

forgot to mention this, when I write something on the fourth of third line, so with this code

Code:

Locate 3,1
Lcd "write something"
locate 4,1
lcd "write something"
 


he write's it on the second and fourth line, but he starts in the middle of the line (think on character 10 or so)...
Back to top
View user's profile
Gianni

Bascom Member



Joined: 09 Jul 2004
Posts: 61
Location: Italy

blank.gif
PostPosted: Sun Dec 10, 2006 12:45 pm    Post subject: Reply with quote

Hi.
You can try to slow down the cpu clock frequency to 2-5MHz
Sometimes a delay may help

Locate 3,1
delay
Lcd "write something"
locate 4,1
delay
lcd "write something"

Regards
Back to top
View user's profile
GeertJ

Bascom Member



Joined: 27 Dec 2005
Posts: 4

belgium.gif
PostPosted: Sun Dec 10, 2006 3:09 pm    Post subject: Reply with quote

Tried that, but no changes in lcd Crying or Very sad
Back to top
View user's profile
Gianni

Bascom Member



Joined: 09 Jul 2004
Posts: 61
Location: Italy

blank.gif
PostPosted: Mon Dec 11, 2006 10:20 am    Post subject: Reply with quote

I suppose that the display is not 100% HD44780 compatible.
I can only suggest to write your own routine for locate,cls,lcd,cursor,.
Then redirect the output to your lcd routine with $serialoutput and replace the lcd statement with print.

Regards
Back to top
View user's profile
GeertJ

Bascom Member



Joined: 27 Dec 2005
Posts: 4

belgium.gif
PostPosted: Mon Dec 11, 2006 10:59 am    Post subject: Reply with quote

yep, thats probably the problem, the LCD that I use has the KS0073 controller on board, which is, i qoute the manufacture, "almost 100% compatible with the HD44780 controller".... Confused Shocked
Back to top
View user's profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-8051 Archive All times are GMT + 1 Hour
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
You cannot attach files in this forum
You cannot download files in this forum