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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/26/07 08:27
Read: times


 
#148700 - LCD 8x24 - samsung 0282a
Hello,

I am trying to start above mentioned display. I tried to write initialization code based on documents of the display. No success. I also searched internet (including this forum), and tried to write code, based on programs I've found. No success.

I am using 89S8253 and 4-bit connection. Below is the code I am using. I get blank display with two lines (obviously not proper initialized lcd). Does anyone have any suggestion or working code (preferrably in C)?

thank you and a happy new year to everyone!




delay (1500); 

 // 4-bit, font 5x8, duty??? ram??
 lcd_code (0%11011010);  delay (1000);
 
 // SE: autoincrement on write, no inc. on read
 lcd_code (0%01010010); delay (10);		
 
 // display off, set cursor and underline mode off
 lcd_code (0x2F); delay (10);			
  
 // SU:
 lcd_code (0x01); delay (100);	// clear ram
 lcd_code (0x03); delay (10);	// cursor home, display start
 
 
 lcd_code (0x3F);// display on, set cursor and underline on
 delay (100);

 return;
   


List of 20 messages in thread
TopicAuthorDate
LCD 8x24 - samsung 0282a            01/01/70 00:00      
   add. info            01/01/70 00:00      
   add. info            01/01/70 00:00      
   What language are you using?            01/01/70 00:00      
      solved!            01/01/70 00:00      
         Binary numbers in 'C'            01/01/70 00:00      
      Wrong operator            01/01/70 00:00      
         As You are using C, why not            01/01/70 00:00      
   Do not use fixed delays - check for LCD busy            01/01/70 00:00      
      I've found the opposite!            01/01/70 00:00      
         Binary numbers in 'C'            01/01/70 00:00      
         Infinite waits            01/01/70 00:00      
            Actually it is time            01/01/70 00:00      
         Another opposite            01/01/70 00:00      
            and ..            01/01/70 00:00      
               Whoaaaaaa.....            01/01/70 00:00      
               LCD Timeout            01/01/70 00:00      
      Code formatting - avoid TABs            01/01/70 00:00      
         Oh - sorry about that ...            01/01/70 00:00      
   Did you see this?            01/01/70 00:00      

Back to Subject List