Author Topic: Character Display Compatibility (HD44780 vs. WS0010)  (Read 1318 times)

0 Members and 1 Guest are viewing this topic.

Offline t0mt0mTopic starter

  • Contributor
  • Posts: 12
  • Country: at
Character Display Compatibility (HD44780 vs. WS0010)
« on: January 09, 2023, 01:51:54 pm »
Hi,

i want to replace the 40x2 character display of a 1986 akai s900.

Since I had an OLED variant from vishay lying around i hooked it up but it does not work correctly.
The first line is displayed correctly, but the second half of the second line is blank.
You could say it's only showing 75%.

The original display is a Optrex DMC40218UE.
The oled one i have is this:
OLED-040N002A-LPP5N00000
https://www.mouser.at/datasheet/2/427/oled040n002alpp5n00000-1153452.pdf

I know the generic 40x2 lcds you get for ~10$ work out of the box on the S900.
So what could be the reason the oled does not display all characters?

Theres a few jumpers on the back of the display. I was thinking about testing the J68_J80 jumper which is currently set to 6800 mode and changing it to 8000 mode. But then i took a look at the service manual and the original lcd has pin 5 labelled as R/W, so that would indicate it is using 6800 mode as well, right?

Maybe someone experienced with these displays can give me some tips.
I really love the look of the oled display and would like to put it to good use.

thanks
cheers
« Last Edit: January 09, 2023, 04:27:13 pm by t0mt0m »
 

Online Doctorandus_P

  • Super Contributor
  • ***
  • Posts: 3387
  • Country: nl
Re: Character Display Compatibility
« Reply #1 on: January 09, 2023, 02:33:04 pm »
Is that display supposed to be HD44780 compatible?
Have you checked commands of the display?

Another possibility is timing. Some of these displays are more sensitive to timing differences then others, also the datasheet specify or assume a certain clock frequency (for the display chip itself) and that of course also influences timing.

And maybe your display is just broken. Swap it for another and observe the results.
 
The following users thanked this post: t0mt0m

Offline madires

  • Super Contributor
  • ***
  • Posts: 7803
  • Country: de
  • A qualified hobbyist ;)
Re: Character Display Compatibility
« Reply #2 on: January 09, 2023, 03:13:32 pm »
The oled one i have is this:
OLED-040N002A-LPP5N00000

I know the generic 40x2 lcds you get for ~10$ work out of the box on the S900.
So what could be the reason the oled does not display all characters?

The LCDs use an HD44780 (or compatible), while your OLED has a WS0010 (actually two because of 40x2). Both controllers are quite compatible (from an instruction point of view) but not 100%.
 
The following users thanked this post: t0mt0m

Offline t0mt0mTopic starter

  • Contributor
  • Posts: 12
  • Country: at
Re: Character Display Compatibility
« Reply #3 on: January 09, 2023, 03:35:36 pm »
Thanks so much for the replies.

So that basically means there's nothing I can do to make it work, other than putting a microcontroller in between to do some kind of translation or modifying the akai's firmware, which is completley out of my range of abilities.

Anyway I'll hook up the display to an arduino to make sure it's not faulty but i think it's unlikely since it was new.
 

Offline ozcar

  • Frequent Contributor
  • **
  • Posts: 322
  • Country: au
Re: Character Display Compatibility
« Reply #4 on: January 09, 2023, 08:21:20 pm »
Anyway I'll hook up the display to an arduino to make sure it's not faulty but i think it's unlikely since it was new.

Good idea.

My immediate thought was that perhaps there was some difference between the two displays relating to the way the data RAM addresses correspond to the positions on the display, causing some of the characters to be placed "off screen". The address required for the start of the second line is usually not contiguous with the end of the first line, but then having an address discontinuity in the middle of a line would be a bit weird.

The data sheet you linked to shows the RAM -> character position relationship on page 4. To confuse things a little they give the column addresses on the top line in decimal (starting at 1) but the RAM addresses in hexadecimal (starting at 0). Then they have apparently messed up the values given for the first line of the display by ending the line with a repeat of the beginning (should presumably end with 10 11 12 13 not 00 01 02 03).

The data sheet I can turn up for DMC40218 does not seem to give the equivalent information, but having the second line begin at 0x40, with no silly break in the middle of the line is what I would expect.
 

Offline james_s

  • Super Contributor
  • ***
  • Posts: 21611
  • Country: us
Re: Character Display Compatibility
« Reply #5 on: January 09, 2023, 08:35:32 pm »
Thanks so much for the replies.

So that basically means there's nothing I can do to make it work, other than putting a microcontroller in between to do some kind of translation or modifying the akai's firmware, which is completley out of my range of abilities.

Anyway I'll hook up the display to an arduino to make sure it's not faulty but i think it's unlikely since it was new.

It depends on what the actual issue is, if it's a matter of timing it's possible you could insert a delay or pulse extender for the offending signal but it's going to depend on exactly what is causing the malfunction. You'd probably have to use a logic analyzer to look at how the display is being driven, and then try driving your display with an arduino or something and look at the signals to see how they differ. Then you can try to reproduce the faulty behavior by altering the code in order to confirm exactly what's making it misbehave.
 

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 12875
Re: Character Display Compatibility (HD44780 vs. WS0010)
« Reply #6 on: January 09, 2023, 09:57:53 pm »
See https://web.alfredstate.edu/faculty/weimandn/lcd/lcd_addressing/lcd_addressing_index.html for HD44780 addressing vs display layout. 

Using an Arduino to test the addressing would definately be the way forward, as you need to be *CERTAIN* they are mapped the same.   One issue I have run into before that caused mysterious corruption of the layout of displayed text was writing to a HD44780 too fast - the firmware didn't check the busy bit and the display was a rather old one which I believe was slower than normal, so any command that took slightly longer than usual to complete resulted in the next one being silently ignored, resulting in lost cursor address positioning commands (because they were the first sent for any text field) and corrupted layout!
 

Offline t0mt0mTopic starter

  • Contributor
  • Posts: 12
  • Country: at
Re: Character Display Compatibility (HD44780 vs. WS0010)
« Reply #7 on: January 10, 2023, 08:07:59 pm »
Thanks a lot for the suggestions!

However I've decided to give up for now and go the cheap LCD route.
I don't have much time right now and I'd rather make some music with the S900.

I've tested the OLED on the arduino using the LiquidCrystal library and it showed stuff on the whole display - so i assume it's not faulty.
however it was not acting right either. So yeah, these controllers are not compatible. And after a while it has stopped displaying anything at all. I really hope I haven't ruined it.  :palm: I can't see how though.

Before that i tried to sniff the AKAIs display signal but couldn't get that to work either. I guess my programm is way to slow, I only got 2 chars and that's it. Also the S900 obviously needs some feedback from the display like the busy signal, because without it it reacts extremely slow to menu changes etc.

I quit.
But thank you all for your help
 

Offline james_s

  • Super Contributor
  • ***
  • Posts: 21611
  • Country: us
Re: Character Display Compatibility (HD44780 vs. WS0010)
« Reply #8 on: January 10, 2023, 08:57:19 pm »
What did you try to sniff it with? Even the fastest HD44780 type display should be trivial to read with one of those cheap USB logic analyzers. OLED displays are nice but they seem to be a lot less robust than LCD. My friend managed to kill one trying to adapt it to a piece of audio gear, I think at some point he must have momentarily connected the power backwards or to the wrong pin. Internally the OLED controllers are all 3.3V I think and the logic in old gear is almost all 5V.
 

Offline PCB.Wiz

  • Super Contributor
  • ***
  • Posts: 1574
  • Country: au
Re: Character Display Compatibility (HD44780 vs. WS0010)
« Reply #9 on: January 10, 2023, 10:37:33 pm »
However I've decided to give up for now and go the cheap LCD route.
....
I quit.
But thank you all for your help
Probably the best idea, especially as you have no control over the driving code in fixed equipment.

The first line is displayed correctly, but the second half of the second line is blank.
You could say it's only showing 75%.
That's remarkably close to almost working ;)

Is the info on the second line 'as expected'  ?

LCD displays can often have varying mappings into the LCD controller memory, especially when the physical display is smaller than the controller's max. That's fixed by LCD pinout and layout design.
Also, some code uses delays instead of BUSY polling, and delays tuned for 44780 may not work on another controller.
eg if your newer board is slower, it may drop info, and display the last half, on the first half line ?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf