Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/17/03 20:03
Read: times


 
#36660 - RE: 87LPC764 and LCD display help
Erik,

Thanks. Yes, I had a search on the forum, but the latest threads about LCD's didnt really seem to apply. I have read the 8052.com tutorial and FAQ, and indeed followed many of the instructions in making my code.

I have a couple of thoughts, and the first is whether this is a suitable wait routine for the LCD Busy flag;
void wait_lcd(void){
int i=0;
EN=1;
RS=0;
RW=1;
DATA=0xFF;
i=DATA;
while(DB7==1)
{
}
EN=0;
RW=0;
}

and whether this is a suitable initialise routine;

void init_lcd(void){
RW=0;
EN=1;
RS=0;
DATA=0x38;
EN=0;
wait_lcd();
EN=1;
RS=0;
DATA=0x0E;
EN=0;
wait_lcd();
EN=1;
RS=0;
DATA=0x06;
EN=0;
wait_lcd();
}

Sorry for all the code, and I am sure that the answer is in the forum somewhere, but couldnt see it at first.

Thanks very much

Adam Morris

List of 21 messages in thread
TopicAuthorDate
87LPC764 and LCD display help            01/01/70 00:00      
RE: 87LPC764 and LCD display help            01/01/70 00:00      
RE: 87LPC764 and LCD display help            01/01/70 00:00      
RE: 87LPC764 and LCD display help            01/01/70 00:00      
RE: 87LPC764 and LCD display help            01/01/70 00:00      
RE: 87LPC764 and LCD display help            01/01/70 00:00      
RE: 87LPC764 and LCD display help            01/01/70 00:00      
RE: 87LPC764 and LCD display help            01/01/70 00:00      
RE: 87LPC764 and LCD display help            01/01/70 00:00      
RE: 87LPC764 and LCD display help            01/01/70 00:00      
RE: 87LPC764 and LCD display help            01/01/70 00:00      
RE: 87LPC764 and LCD display help            01/01/70 00:00      
RE: 87LPC764 and LCD display help            01/01/70 00:00      
RE: 87LPC764 and LCD display help            01/01/70 00:00      
RE: 87LPC764 and LCD display help            01/01/70 00:00      
RE: 87LPC764 and LCD display help            01/01/70 00:00      
RE: 87LPC764 and LCD display help            01/01/70 00:00      
RE: 87LPC764 and LCD display help            01/01/70 00:00      
RE: 87LPC764 and LCD display help            01/01/70 00:00      
RE: 87LPC764 and LCD display help            01/01/70 00:00      
RE: 87LPC764 and LCD display help            01/01/70 00:00      

Back to Subject List