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.

lcd display scrolling

Status
Not open for further replies.

sijincool

Member level 2
Joined
Feb 10, 2010
Messages
43
Helped
2
Reputation
4
Reaction score
0
Trophy points
1,286
Location
india
Activity points
1,611
hi iam using 16x2 character lcd

is there any easy way to display scrolling string on this display other than shifting the string and displaying it in each loop.

my sytem need to display time and date in the second line.


also could any one pls help me with what exactly is this LCM display??
 

In a 16x2 LCD no, but you can try this fucnction it is quite efficient:


Code:
void ScrollMessage(unsigned char row,const char Message[])
{
 char TempS[21];
 unsigned int  MHead=0,Done=0,counter;
 if(row >1) row=1;
 row=row*40;
 while(Done==0)
 {
  for(counter=0;counter<16;counter++)
  {
	  TempS[counter]=Message[MHead+counter];
	  if(Message[MHead+counter+1]==0) Done=1;
	 }
	 MHead++;
  lcd_goto(row);
  lcd_puts(TempS);
  DelayMs(SCROLLDELAY);
  DelayMs(SCROLLDELAY);
 }
}
LCM i think is a Liquid Crystal Module, Its the name given to an LCD with a control circuit.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top