Author Topic: 2x NHD-0420D3Z I2C Problem  (Read 1936 times)

alk

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
2x NHD-0420D3Z I2C Problem
« on: July 10, 2016, 06:01:42 PM »
Hello,

I've used these displays in the past with success, and now I'm using two of them in parallel on the I2C bus and I can't figure out what's wrong. Each of the two displays has been assigned its own I2C address and they both work great if they are individually plugged in. However, when I plug them both in neither screen accepts any command and nothing is displayed. I've checked the waveforms on my scope and they are identical to the waveforms of the individual LCD operations. Therefore, I must conclude that neither slave device is holding any of the lines low. I've tried reducing my clock speeds down to well below 100kHz with no effect... I am completely at a loss as to how to debug this or where the problem even lies. Has anyone experienced this problem before or have any insight?


Saurabh_B

  • Administrator
  • Hero Member
  • *****
  • Posts: 355
  • Karma: 10
    • View Profile
Re: 2x NHD-0420D3Z I2C Problem
« Reply #1 on: July 11, 2016, 01:24:36 PM »
How are the displays powered?

Is there a separate 5V input for the VDD on either display. Also are you using any pull up resistors?

alk

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Re: 2x NHD-0420D3Z I2C Problem
« Reply #2 on: July 11, 2016, 04:18:18 PM »
Both displays are powered by a single 5V rail. My control board has 3.3v outputs connected to a bi-directional level shifter with 10kOhm pullups

Saurabh_B

  • Administrator
  • Hero Member
  • *****
  • Posts: 355
  • Karma: 10
    • View Profile
Re: 2x NHD-0420D3Z I2C Problem
« Reply #3 on: July 13, 2016, 12:21:31 PM »
Are there any other devices on the I2C bus?

Last time I heard an issue like this occur; another device on the bus was keeping the logic voltage from reaching a valid logic High for the display.

alk

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Re: 2x NHD-0420D3Z I2C Problem
« Reply #4 on: July 18, 2016, 06:06:37 PM »
No, these are the only two devices on the bus.

The bus waveforms for the case of a single display is almost identical to the case with two displays. I did, however, notice a small difference today. For the latter case, the SDA line only gets pulled down to about 900mV for the ACKs whereas the SDA line gets pulled down to about 400mV when only one display is plugged in. The datasheet says that the the voltage must be below 0.6v to register as a low input. Could it be that the other display (the one not being addressed) is trying interpreting an ACK as a release of the bus?

I tried removing the pullup from one of the displays since I thought that perhaps the parallel combination of the two pullups (5KOhm) could be fudging the voltage levels. However, this changed nothing.

Saurabh_B

  • Administrator
  • Hero Member
  • *****
  • Posts: 355
  • Karma: 10
    • View Profile
Re: 2x NHD-0420D3Z I2C Problem
« Reply #5 on: July 19, 2016, 10:24:07 AM »
Can you also try this without the pull up resistors?

alk

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Re: 2x NHD-0420D3Z I2C Problem
« Reply #6 on: July 20, 2016, 09:34:11 PM »
Yes, I've done so and there is again no change in the waveforms. I guess this means that the internal pull-ups on the display's pic16f690 are enabled. I've tried lower termination resistances as well (2Kohm) with no changes. I checked the series resistance on the i2c bus (the resistance of my wiring) and it was about 30 ohms. This seems a little high since the wire (22AWG) should only provide 52 ohms/km and there's only about 1foot of wire.

Could it be that the weak internal pullups are too low value and are dragging the pullup resistance way down?

CarloTruax

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: 2x NHD-0420D3Z I2C Problem
« Reply #7 on: September 16, 2016, 11:43:29 AM »
Hi...i am a new user here. I want to know how are the displays powered?Is there a separate 5V input for the VDD on either display. Also are you using any pull up resistors? Are there any other devices on the I2C bus?Last time I heard an issue like this occur; another device on the bus was keeping the logic voltage from reaching a valid logic High for the display.

pcb assembly china
« Last Edit: November 10, 2016, 04:20:03 PM by CarloTruax »

Saurabh_B

  • Administrator
  • Hero Member
  • *****
  • Posts: 355
  • Karma: 10
    • View Profile
Re: 2x NHD-0420D3Z I2C Problem
« Reply #8 on: September 21, 2016, 08:35:50 AM »
Hi,

You could power it through a 5V so long as the supply can provide enough current to run the backlight as well. Most MPUs would allow for this.
The display does have internal pull up resistors, so you will not need to worry about providing those externally.


 

NHD‐3.5‐320240MF‐ATXL#‐CTP‐1 Problem with standby mode

Started by guenterBoard TFTs

Replies: 0
Views: 1933
Last post June 16, 2016, 12:14:36 PM
by guenter
NHD‐2.4‐240320SF‐CTXL#‐FTN1 touch-screen problem

Started by hbcelebiBoard TFTs

Replies: 5
Views: 4162
Last post December 10, 2014, 11:19:05 AM
by Michael_L
Working on NHD‐2.4‐240320SF‐CTXL#‐FTN1, have problem in initialization

Started by sli25Board TFTs

Replies: 6
Views: 3773
Last post June 04, 2015, 09:52:25 PM
by sli25
Problem in bringing up NHD‐2.4‐240320SF‐CTXL#‐FTN1 on Renesas RL78/G14

Started by sli25Board TFTs

Replies: 3
Views: 3044
Last post May 28, 2015, 02:59:03 PM
by Michael_L
problem with NHD‐2.23‐12832UCB3

Started by luisvalsecaBoard OLEDs

Replies: 1
Views: 883
Last post January 24, 2017, 02:52:53 PM
by Saurabh_B