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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/05/06 05:51
Read: times


 
#106547 - problem getting 2 line display on LCD
iam using CDM16216B crystalonics 16X2 lcd for my project(interfaced to at89s52 controller).
i used the following commands for initialization

void lcd_init()
{

com_lcd(0x38); /*for lcd 8 bit mode*/
com_lcd(0x0f);/*display on cursor blinking*/
com_lcd(0x06);/*increment cursor*/
com_lcd(0x01); /*clear lcd*/
}
void com_lcd(unsigned char c)
{
e=0;
rs=0;
rw=0;
LCD=c;
e=1;
e=0;
delay_ms(2);
}
But it is giving me a single line display i used the command com_lcd(0xc0) to display on the second line. i've tried it on breadboard and pcb but its giving only single line the second line is not displayed.
can anyone suggest me wat cud be the problem and possible solution? and also is there anyway to clear a single charcter on lcd?

List of 7 messages in thread
TopicAuthorDate
problem getting 2 line display on LCD            01/01/70 00:00      
   What is the rest of your code            01/01/70 00:00      
   Initialisation            01/01/70 00:00      
      it is            01/01/70 00:00      
   it worked but why????            01/01/70 00:00      
      No SMS please            01/01/70 00:00      
         of course it does to the writer a            01/01/70 00:00      

Back to Subject List