Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

LCD Timing issues

 
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-AVR Archive
View previous topic :: View next topic  
Author Message
kv9r

Bascom Member



Joined: 09 Jun 2007
Posts: 3

usa.gif
PostPosted: Thu Jul 05, 2007 3:09 pm    Post subject: LCD Timing issues Reply with quote

I have two MAVRIC-IB ATmega128 boards that connect to a 128X64 LCD the program uses the glcdKS108.lib.
The board I initially developed the program on has a 14.7456Mhz clock everything works correctly the 8X8 font, 16X16 font, line draw, circle draw and even showpic graphics.
I connected my other board which has a 16.0000Mhz clock.
The display was intermittent there were extra dots and lines at random locations.
I realized that I had not changed the $crystal = 14745600 to $crystal = 16000000 after doing so the display was better but still had random dots and lines.
I then changed $crystal = 16000000 to $crystal = 18000000 and everything worked flawlessly.
This showed me that it was a timing issue writing to the LCD.
Changing the $crystal is not an expectable solution, there must be a better way to change just the read/write timing for the LCD.
Thanks Dyan...
Back to top
View user's profile
Frankeman

Bascom Member



Joined: 11 Aug 2004
Posts: 948
Location: the Netherlands

netherlands.gif
PostPosted: Thu Jul 05, 2007 5:01 pm    Post subject: Reply with quote

Hi, and welcome to this friendly forum.

You can change the "glcdks108.lib"
Search for lines like "@genus(5)"
Increment the 5 to add more delay.

Frank.
Back to top
View user's profile
kv9r

Bascom Member



Joined: 09 Jun 2007
Posts: 3

usa.gif
PostPosted: Thu Jul 05, 2007 7:27 pm    Post subject: Reply with quote

Thanks Frank
That worked perfectly Razz
Dyan...
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-AVR 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