NHD-1.8-128160EF-CSXN#-F Programming

Comments

4 comments

  • Paul_B

    I changed the voltage for Vdd and IOVdd to 2.8V. No difference. I read the datasheet for the  ILI9163 controller up-and-down to check for anything I may have missed. This datasheet looks like a poorly written document to me(!!!). Impossible for me to get all the technical information I need.

    Questions:

    - How to determine the setting for Power_Control1?
    - Ditto for VCOM_Control1?
    - Why can VCOML be negative?

    Anyway, there's a chance this is a DOA.

    /Guenther

    0
  • Saurabh_B

    Guenther,

    I will look over your code for any mistakes.
    All displays are tested before they leave our Facility, chances that it is DOA is fairly low.

    You can provide 3.3V to both the VDDIO and VDD pins.

    You can use the optimal settings for the VCOM and Power_Control found in our example code here: https://newhavendisplay.com/content/app_notes/Arduino_nhd-1_8-128160EF-CTXI.txt

    Is it possible to also share your wiring diagram / Schematic for your connections?

    0
  • Guenther

    The second unit I got showed the same symptom. So I dug deeper into my code. I finally got to the bottom of it. It was the definition of my delay code for 'DELAY_10US'.

    For values '3*n'>32767 the generated instructions created a huge number like FFFFxxxx. That kept my 'DELAY_10US(15000) looping for a looooong time. Changing the '3*n' to  '3L*n' created the expected result.

    I think this a compiler bug - not promoting the calculation of '3*n' to be done in 'long'.

    All is working now as expected.

    0
  • Paul_B

    Thanks for sharing your solution Guenther!

    0

Please sign in to leave a comment.