Display 4X20 scroll
Moderator: Benj
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
- Contact:
Display 4X20 scroll
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.
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.
- Attachments
-
- Disptest_16F88.fcf
- (7.5 KiB) Downloaded 352 times
- Enamul
- Posts: 1772
- Joined: Mon Mar 05, 2012 11:34 pm
- Location: Nottingham, UK
- Has thanked: 271 times
- Been thanked: 814 times
- Contact:
Re: Display 4X20 scroll
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
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
- Attachments
-
- Disptest_16F88.fcf
- (7.5 KiB) Downloaded 346 times
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
- Contact:
Re: Display 4X20 scroll
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
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
- Enamul
- Posts: 1772
- Joined: Mon Mar 05, 2012 11:34 pm
- Location: Nottingham, UK
- Has thanked: 271 times
- Been thanked: 814 times
- Contact:
Re: Display 4X20 scroll
Hi,
I have just shown that you were right....the problem is in the function...
I'll post the corrected pg shortly..
Enamul
I have just shown that you were right....the problem is in the function...
I'll post the corrected pg shortly..
Enamul
- Enamul
- Posts: 1772
- Joined: Mon Mar 05, 2012 11:34 pm
- Location: Nottingham, UK
- Has thanked: 271 times
- Been thanked: 814 times
- Contact:
Re: Display 4X20 scroll
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
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
- Attachments
-
- Disptest_16F877a_R.fcf
- (9 KiB) Downloaded 343 times
-
- Disptest_16F877a_L.fcf
- (9 KiB) Downloaded 315 times
- Enamul
- Posts: 1772
- Joined: Mon Mar 05, 2012 11:34 pm
- Location: Nottingham, UK
- Has thanked: 271 times
- Been thanked: 814 times
- Contact:
Re: Display 4X20 scroll
HI,
I have manged to use scroll function with some modification in Flow chart...
I think this will be useful..
Enamul
I have manged to use scroll function with some modification in Flow chart...
I think this will be useful..
Enamul
- Attachments
-
- Disptest_16F877a_sc.fcf
- (9.5 KiB) Downloaded 327 times
- Enamul
- Posts: 1772
- Joined: Mon Mar 05, 2012 11:34 pm
- Location: Nottingham, UK
- Has thanked: 271 times
- Been thanked: 814 times
- Contact:
Re: Display 4X20 scroll
Hi
This is to use 2 line scrolling together...Although simulation shows different, works in hardware.
Enamul
This is to use 2 line scrolling together...Although simulation shows different, works in hardware.
Enamul
- Attachments
-
- Disptest_16F877a_sc_2.fcf
- (11 KiB) Downloaded 330 times
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
- Contact:
Re: Display 4X20 scroll
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
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
- Enamul
- Posts: 1772
- Joined: Mon Mar 05, 2012 11:34 pm
- Location: Nottingham, UK
- Has thanked: 271 times
- Been thanked: 814 times
- Contact:
Re: Display 4X20 scroll
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
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
- Attachments
-
- Disptest_16F877a_sc_2.fcf
- (11 KiB) Downloaded 312 times
-
- Disptest_16F877a_sc.fcf
- (9.5 KiB) Downloaded 292 times
- Enamul
- Posts: 1772
- Joined: Mon Mar 05, 2012 11:34 pm
- Location: Nottingham, UK
- Has thanked: 271 times
- Been thanked: 814 times
- Contact:
Re: Display 4X20 scroll
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
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
- Attachments
-
- Disptest_16F877a_sc_2_20.fcf
- (11 KiB) Downloaded 325 times
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
- Contact:
Re: Display 4X20 scroll
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.
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.
- Enamul
- Posts: 1772
- Joined: Mon Mar 05, 2012 11:34 pm
- Location: Nottingham, UK
- Has thanked: 271 times
- Been thanked: 814 times
- Contact: