Newhaven Products > OLEDs

NHD-0216SZW-BG5 compatibility?

(1/1)

w1jsb:
Hello,

I recently purchased the NHD-0216SZW-BG5 OLED display. I tested it with this universal frequency counter and it works fine: http://www.pongrance.com/ddfc-cc.html   

My plan is to use the OLED display to replace a smaller YJD1602A-1 LCD display in a radio project.

I have used a NewHaven NHD-0216SZ-FSW-FBW LCD display and that works perfect as a replacement.

The problem is that the NHD-0216SZW-BG5 OLED display is not working properly with the radio. When power is applied, sometimes the display turns on, sometimes not. When it does turn on it only displays gibberish. I have checked the pinouts on the data sheet and they are the same as the LCD's I have used.

The radio uses pins 1-6 & 11-16. The micro-controller on the radio I identified as a PIC16F884-I/PT

Is the OLED not even compatible with this? Do I need to wire it differently or change some jumpers?

Any help is greatly appreciated!

Many thanks,
Hanz

Michael_L:
The first thing that comes to mind for me is the timing.  The OLED has slightly different timing than the LCD (this can be seen in the datasheets for the displays, specifically the command tables).  One main difference is the clear display command.  With the OLED, you need a minimum of 2ms delay after executing this command.  The other commands have slightly higher execution times as well, so these would also need to be accounted for if the requirements are not being met.

Also, can you make sure pin 3 is left as a no connect?  The same goes for pins 15&16.  You should not need to change any jumpers, as the OLED comes default as 6800 mode like the LCD.

w1jsb:
Hi Michael,

Thank you for the reply and help. Pins 15 & 16 are no connect, and I also disconnected pin 3 with no luck. You are probably right about the timing. If that is the case, do you know of a way to make it work? Is there a way to compensate for the timing differences? It would be nice to use the beautiful OLED display for my project(s), if possible - I was eager to see the fast responsiveness compared to LCD. If not, that is fine, I'll just stay with using the LCDs.

Thanks again for your help,
Best regards,
Hanz

Michael_L:
You can compensate for the timing differences by adding some delays after your writes, but more importantly, start with the commands that have the longest execution time (such as the clear display command).  If you're lucky, this might be the only timing difference you need to account for.  It all depends on how fast your system is writing to the display.  To view the execution times of the OLEDs commands, refer to our datasheet for the display.  You may compare those times with that of the LCD by looking at the LCD controller's datasheet here: http://www.newhavendisplay.com/app_notes/ST7066U.pdf (see page 17)
Also, refer to the timing characteristics on page 33 of the above ST7066U datasheet, compared with page 11 of the OLED's datasheet.  You will notice the commands between the 2 are are just about identical, but the timing is not.


Navigation

[0] Message Index

Go to full version