Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics 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.

Pausing the LCD screen

Status
Not open for further replies.

natasie

Member level 2
Member level 2
Joined
Jul 11, 2011
Messages
48
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,629
hey guys

please i want to know how to pause the LCD screen. In the LCD command register, there is nothing stated about pausing the screen. is there anyway that

when p1.1 is high

my LCD will display "HALLOWETH BE THY NAME"
and be paused on the screen i.e. it wont write it again and again and again.

and when p1.1 is low, it will clear.

please help me with the simple code. thanks
 

I think you need to put a Dummy loop after writing to the LCD.
Dummy loop is a loop which does nothing but consume some amount of time; so a user have enough time to recognize the message on screen.
Use two or more nested loops to consume at least 1-2 seconds between consecutive LCD messages.
 

so there is no command then? i thought so too. thankyou
 

The LCD shows the same data until you send a new command, what you refer to seems to be more about the code flow than the LCD itself.
You can use a flag, for example value_shown, set it to 0 when the data has changed and the display needs to be updated and then set it to 1 so that the display is not updated until new data are available.


Code C - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
while(1) {
 
  if (!value_shown) {
    // use the LCD routine here
 
    value_shown=1;
  }
 
  // when the data changes in another part of the code then set 
  value_shown=0;
 
}



Alex
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top