Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

[SOLVED] scrolling text on LCD

Status
Not open for further replies.

Qbik

Newbie level 3
Joined
Aug 25, 2010
Messages
3
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Location
Somewhere
Activity points
1,299
Hello,

I trying to write code to scroll text across my LCD display (HD44780). I tried to find any solution of my problem but I didn't find.

Could you tell me the algorithm how to do it? Or source code?

I want to scroll the first line while the second will be fixed. I tried to do it without build in command 0x18 (scroll left) and 0x1e (scroll right). Is it possible? O

I'm using:
+Microcontroller: PIC18F550
+MPLAB, Hi Tech compiler

Thank you a lot for advice.
 

Qbik

Newbie level 3
Joined
Aug 25, 2010
Messages
3
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Location
Somewhere
Activity points
1,299
I regret to say that I know this example and author used here build in routine (code). 0x1C means that LCD will be shift to right. As I wrote I'd like to avoid it (if it is possible). Below is fragment of this code:


Code C - [expand]
1
2
3
4
5
while(1)
{
  lcdcmd(0x1C);  //Shift the entire display to right
  delay(75);
}

 

hugo

Full Member level 6
Joined
Dec 31, 1999
Messages
323
Helped
49
Reputation
98
Reaction score
23
Trophy points
1,298
Location
canada
Activity points
2,162
Hi,

For a single character scrolling to the right, the algorithm is :

- write a character (row,col)
- delay 100 (ms) //scrolling speed
- delete it
- write it again (row,col+1)
- delay 100 (ms) //scrolling speed
- delete it
... etc
 
Last edited:
  • Like
Reactions: Qbik

    Qbik

    points: 2
    Helpful Answer Positive Rating

Qbik

Newbie level 3
Joined
Aug 25, 2010
Messages
3
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Location
Somewhere
Activity points
1,299
Thank you for your replies. The problem is solved.
 
  • Like
Reactions: vet

    vet

    points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top