Display 4X20 scroll

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Display 4X20 scroll

Post by jgu1 »

Hi Team! :D

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 351 times

User avatar
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

Post 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
Attachments
Disptest_16F88.fcf
(7.5 KiB) Downloaded 346 times
Enamul
University of Nottingham
enamul4mm@gmail.com

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: Display 4X20 scroll

Post 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 :D

Best regard

Jorgen

User avatar
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

Post 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
Enamul
University of Nottingham
enamul4mm@gmail.com

User avatar
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

Post 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
Attachments
Disptest_16F877a_R.fcf
(9 KiB) Downloaded 343 times
Disptest_16F877a_L.fcf
(9 KiB) Downloaded 315 times
Enamul
University of Nottingham
enamul4mm@gmail.com

User avatar
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

Post by Enamul »

HI,

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 326 times
Enamul
University of Nottingham
enamul4mm@gmail.com

User avatar
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

Post by Enamul »

Hi
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 329 times
Enamul
University of Nottingham
enamul4mm@gmail.com

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: Display 4X20 scroll

Post 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

User avatar
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

Post 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
Attachments
Disptest_16F877a_sc_2.fcf
(11 KiB) Downloaded 312 times
Disptest_16F877a_sc.fcf
(9.5 KiB) Downloaded 291 times
Enamul
University of Nottingham
enamul4mm@gmail.com

User avatar
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

Post 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
Attachments
Disptest_16F877a_sc_2_20.fcf
(11 KiB) Downloaded 325 times
Enamul
University of Nottingham
enamul4mm@gmail.com

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: Display 4X20 scroll

Post 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. :D

Best regard

Jorgen.

User avatar
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

Post by Enamul »

Hi,
It's ok. It's nice to hear that it works.

Enamul
Enamul
University of Nottingham
enamul4mm@gmail.com

Post Reply