Author Topic: NHD-0216SZW-BG5 compatibility?  (Read 4052 times)

w1jsb

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
NHD-0216SZW-BG5 compatibility?
« on: April 15, 2014, 06:24:44 PM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 356
  • Karma: 33
    • View Profile
Re: NHD-0216SZW-BG5 compatibility?
« Reply #1 on: April 16, 2014, 10:52:43 AM »
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

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: NHD-0216SZW-BG5 compatibility?
« Reply #2 on: April 17, 2014, 06:06:27 PM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 356
  • Karma: 33
    • View Profile
Re: NHD-0216SZW-BG5 compatibility?
« Reply #3 on: April 18, 2014, 08:30:52 AM »
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.



 

Compatibility between driver/controller ST706UU and HD44780.

Started by oscargomezfBoard Character LCDs

Replies: 1
Views: 899
Last post September 02, 2016, 12:15:25 PM
by Ted_M
NHD-1.8-128160EF-CTXI# Compatibility

Started by kevinpwuBoard TFTs

Replies: 1
Views: 2782
Last post May 20, 2014, 08:07:09 AM
by Michael_L
MOVED: compatibility

Started by Saurabh_BBoard Graphic LCDs

Replies: 0
Views: 1958
Last post June 20, 2016, 04:00:42 PM
by Saurabh_B
compatibility

Started by gasBoard OLEDs

Replies: 1
Views: 2219
Last post June 20, 2016, 04:07:17 PM
by Saurabh_B
NHD-0216SZW-BG5 OLED artefacts and undefined patterns

Started by GeroFBoard OLEDs

Replies: 2
Views: 900
Last post January 28, 2017, 07:18:49 AM
by GeroF