Author Topic: OLED Character display - Some commands don't work  (Read 2990 times)

wedge

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
OLED Character display - Some commands don't work
« on: July 06, 2014, 12:52:19 AM »
I'm using a NHD-0216KZW-AY5 in 4-bit parallel mode, using the busy signal (not using blind delays).  The device initializes just fine, and prints text to the screen successfully.
However, the screen does not respond to the Clear Screen command, and the Move Cursor command.  It simply does nothing when those commands are sent.  There may or may not be other commands it's not responding to, but those are the only ones I've noticed.

If I swap out the screen for any other HD44780 compatible, and leave all other code and connections exactly the same, then everything is working perfectly.
« Last Edit: July 06, 2014, 11:27:41 AM by wedge »

Michael_L

  • Administrator
  • Hero Member
  • *****
  • Posts: 356
  • Karma: 33
    • View Profile
Re: OLED Character display - Some commands don't work
« Reply #1 on: July 08, 2014, 09:29:43 AM »
The display is HD44780 compatible, however there are some minor timing differences that sometimes need to be accounted for (depending on your micro).  I have replicated this with an Arduino, and have found that the busy flag will 'hang' after the clear display command if there is not a delay present after the command is sent (and before the busy flag is checked).  Please add a 2ms delay after sending this these commands, as this fixed the issue for me.

 

Blank Display on NHD‐C0220BiZ‐FS(RGB)‐FBW‐3VM

Started by SteveCBoard Character LCDs

Replies: 3
Views: 4380
Last post May 13, 2014, 12:04:36 AM
by SteveC
NHD‐C12864A1Z‐FSW‐FBW‐HTT display clears after draw

Started by EdAverillBoard Graphic LCDs

Replies: 6
Views: 5439
Last post November 07, 2014, 08:25:20 AM
by Michael_L
NHD‐4.3‐480272EF‐ATXL#‐CTP | FAN5333 | BBB | Nothing on the Display

Started by Alias_AliasBoard TFTs

Replies: 1
Views: 3214
Last post September 25, 2015, 03:09:24 PM
by Paul_B
Arduino LCD library not working with newhaven display NHD‐0420H1Z‐FL‐GWB-3V3

Started by c2hollowBoard Character LCDs

Replies: 9
Views: 8291
Last post July 10, 2014, 08:46:06 AM
by Michael_L
NHD-0420DZW-AG5 - Display "sometimes" shows only 2 lines

Started by stylonurusBoard OLEDs

Replies: 5
Views: 5408
Last post June 18, 2014, 10:09:49 AM
by Michael_L