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

Back to Subject List

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


 
#148768 - Did you see this?
Responding to: ???'s previous message
Damjan Lapuh said:
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;


have a look at
http://lcdhype.de/index.php...entry19340

The datasheet is in German, but there's software too.

is says ...

Line         Adresses in DD-RAM
1 (oben)      0…23 (0h…17h)
2 96…119           (60h…77h)
3 24…47            (18h…2Fh)
4 120…143          (78h…8Fh)
5 48…71            (30h…47h)
6 144…167          (90h…A7h)
7 72…95            (48h…5Fh)
8 (unten)   168…191(A8h…BFh)

This is one recommended hookup, for verifying functionality, I suppose.

PC-Printer Port    (DB25S)     LC-Display
1  /Strobe           10            EX
2   D0                2            D0
3   D1                3            D1
4   D2                4            D2
5   D3                5            D3
6   D4                6            D4
7   D5                7            D5
8   D6                8            D6
9   D7                9            D7
14 /Autofeed         13          I/OC1
16  Init             11           R/W
17 /Select in        12          I/OC2
18...25 GND          16           GND


I suggest also that you consider what the sheet says about the contrast voltage ranging from +5 to +10 volts.

Using 'C' is not an excuse for failing to learn all the details of the hardware you're trying to use. The datasheet indicates that the controller is a Mitsubishi M50530, for which I have no datasheet, so I can't advise you as to the details, but I'd suggest you find one, and study it thoroughly.

RE

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