Author Topic: Changing the Slave Address with NHD-0420D3Z  (Read 3359 times)


  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Changing the Slave Address with NHD-0420D3Z
« on: January 09, 2015, 02:48:15 PM »
Hello, I am working on a project in which I run two of the specified character LCD displays on a single I2C bus as slaves. The master/controller in this scenario is a KL25z Freedom Platform. I've been able to successfully write text to the LCD, move the cursor around, and execute several of the commands specified in the data sheet. However, in order for my project to work, I need to be able to talk to one LCD and not the other. Obviously, I should just change the I2C slave address of one of the two LCDs. However, when I execute the command specified in the data sheet, nothing happens and the display still responds to the default address. Has anyone had this issue or know what might be wrong?


  • Administrator
  • Hero Member
  • *****
  • Posts: 357
  • Karma: 34
    • View Profile
Re: Changing the Slave Address with NHD-0420D3Z
« Reply #1 on: January 09, 2015, 04:30:08 PM »
The execution time for the command to change the I2C address is longer than the other commands (3ms). See the table on page 7 of the datasheet.  Please make sure you are allowing for this :)


  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Re: Changing the Slave Address with NHD-0420D3Z
« Reply #2 on: January 13, 2015, 01:53:20 PM »
Haha oh wow I feel silly. I did initially note that this command needed a longer delay. When I went back to check my code it turns out I was only delaying for about 2 ms given the clock rate of my controller. Increasing the delay has done the trick and everything works great, thanks Michael!



Started by DavidVMBoard Character LCDs

Replies: 2
Views: 1633
Last post May 30, 2017, 12:58:32 PM
by DavidVM
NHD-0420D3Z-NSW-BBW-V3 i2c display and Arduino missing characters

Started by 0miker0Board Character LCDs

Replies: 0
Views: 2229
Last post July 06, 2017, 11:05:59 AM
by 0miker0
NHD-0420D3Z-NSW-BBW-V3 back-light flickers

Started by rickford66Board Character LCDs

Replies: 3
Views: 4279
Last post May 06, 2015, 08:34:09 AM
by fraryb
Trouble with serial interface on NHD-0420D3Z-FL-GBW-V3

Started by chughesBoard Character LCDs

Replies: 4
Views: 3955
Last post September 29, 2015, 11:16:48 AM
by Paul_B
MOVED: NHD-0420D3Z-FL-GBW-V3 not displaying cahracters

Started by Saurabh_BBoard Graphic LCDs

Replies: 0
Views: 1587
Last post February 13, 2017, 10:43:30 AM
by Saurabh_B