Page 1 of 1
Display 4X20 scroll
Posted: Mon Jul 09, 2012 7:57 pm
by jgu1
Hi Team!
I am making a project where I want to use the scroll function.
The att is only a test for scrollfunction.
How could it be, when I make a scroll function (see att.) the display scrolls fine on line 0 but it does also on line 2. Is it possible to get it to not scroll on line 2. In simulation it look correct but in "real world" line 0 and 2.
Hope someone can help pls.
Best regard
Jorgen.
Re: Display 4X20 scroll
Posted: Tue Jul 10, 2012 11:47 am
by Enamul
Hi,
This is happening because in LCD Line 0 and 2 are addressed one after another and line 1 & 3 are addressed one after another..
http://www.datasheetcatalog.org/datashe ... 0m004b.pdf
So..scrolling causes data to send to 3rd line after first..if you check my attached program you will be certain about the issue..
But you can come around the problem by wrapping at the end...
Enamul
Re: Display 4X20 scroll
Posted: Tue Jul 10, 2012 8:14 pm
by jgu1
Hi Enamul!
Thank´s for your respons. Ok I thougth I have done something wrong.
I assume you have make some corrections in your att. program I will look at it. Thank´s
Best regard
Jorgen
Re: Display 4X20 scroll
Posted: Tue Jul 10, 2012 9:04 pm
by Enamul
Hi,
I have just shown that you were right....the problem is in the function...
I'll post the corrected pg shortly..
Enamul
Re: Display 4X20 scroll
Posted: Wed Jul 11, 2012 1:30 pm
by Enamul
Hi,
I have posted here scroll text FC avoiding scroll macro..FC with name _L & _R correspondingly produce left and right shift.
If anyone want to shift by 2 or more characters..change in x=x-2 or x=x+2...
I am modifying scroll macro to adopt the problem..for the time being hope this will help.
Enamul
Re: Display 4X20 scroll
Posted: Wed Jul 11, 2012 5:50 pm
by Enamul
HI,
I have manged to use scroll function with some modification in Flow chart...
I think this will be useful..

Enamul
Re: Display 4X20 scroll
Posted: Wed Jul 11, 2012 6:00 pm
by Enamul
Hi
This is to use 2 line scrolling together...Although simulation shows different, works in hardware.
Enamul
Re: Display 4X20 scroll
Posted: Wed Jul 11, 2012 7:16 pm
by jgu1
Hi Enamuel!
Thank´s for your exampel´s! Kind of you.
But the "single" scroll still scroll on 2 line. Sorry
The double work´s fine exept from, almost at the end it jump
Best regard
Jorgen
Re: Display 4X20 scroll
Posted: Wed Jul 11, 2012 9:10 pm
by Enamul
Hi,
I don't run in hardware but run in Real PIC simulator..it worked there..
Jump problem can be minimized by delay..adjustment..you can try these two..please let me know
Enamul
Re: Display 4X20 scroll
Posted: Wed Jul 11, 2012 11:23 pm
by Enamul
HI,
Since the LCD has 80 characters location in 1line, 2lines and 4lines LCD...
so...2* 16 lcd has actually 2*40 where 2*16 visible...
in 4*16 lcd has 4*20 where 4*16 visible..
in 4*20 lcd has all visible..
so if you want to have real scroll you should use 2*16 or 2*20...
here is a sample program...Enjoy
Enamul
Re: Display 4X20 scroll
Posted: Fri Jul 13, 2012 7:08 pm
by jgu1
Hi Enamul!
Sorry for the the delay. I´ve being busy. Thank for your exambles it work´s. After your explanation I understand better. Thank´s.
Best regard
Jorgen.
Re: Display 4X20 scroll
Posted: Sat Jul 14, 2012 12:01 am
by Enamul
Hi,
It's ok. It's nice to hear that it works.
Enamul