nhd-0216cw-ar3 - locks up

Comments

6 comments

  • Michael_L

    Do you have any other devices present on the I2C bus?  If so can you please isolate the display on it and try testing this again?  Whether already isolated or not, can you try using the display again with larger pull-ups? (Try 10kΩ)

    0
  • tonybeckett

    I had tried 10K pullups but the signals did not look good.

    0
  • tonybeckett

    How fast can the display respond to clear display cmd , home cmd, and fill 2 lines with text?

    0
  • tonybeckett
    IF I try to send cmds to
    clear,home, display 1 line , gotoline 2, display
    faster than 2 Hz the display hangs the i2c bus randomly.
    Is that expected?

    T
    0
  • Michael_L
    Although this doesn't appear to be listed in the controller's datasheet, typically these types of character display controllers have longer execution times for the Clear Display and Return Home commands when compared to the other commands available.  It is usually safe to implement a 2ms delay after the clear command is called, can you try using this?
    0
  • tonybeckett

    I added 4 mS delays after each and a longer one in the main loop.
    Only after adding a 300mS delay does the program get stable.
    Seems the display pulls the i2c bus low and never releases.

    0

Please sign in to leave a comment.