Author Topic: NHD-0240A2 Can't write to location 30 in either row  (Read 485 times)

RS3800

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
NHD-0240A2 Can't write to location 30 in either row
« on: June 28, 2017, 09:42:27 AM »
I have a 2 row 40 character display and I don't know what's going on here but I can't write a single character to location 30 in either row 1 or 2 addresses 9F & DF.  I can write strings of characters but not one character at a time to those locations.  I can write single characters to other addresses but not those two.  I have another NH display that I tried and I have the same problem with that display also.

Any Ideas, Thank You

Saurabh_B

  • Administrator
  • Hero Member
  • *****
  • Posts: 341
  • Karma: 10
    • View Profile
Re: NHD-0240A2 Can't write to location 30 in either row
« Reply #1 on: June 28, 2017, 11:31:56 AM »
Would it be possible to get a picture of your display and the code you are using?

I would like to see if we can recreate the same problem.

RS3800

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
Re: NHD-0240A2 Can't write to location 30 in either row
« Reply #2 on: June 28, 2017, 02:59:29 PM »
Here is the photo.  The problem is the character after the #4 in the row 2.  I found this problem while testing.

I am trying to make the characters (b thru h) in row 1 change from upper & lower case if an input is active or not.


RS3800

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
Re: NHD-0240A2 Can't write to location 30 in either row
« Reply #3 on: June 28, 2017, 03:17:06 PM »
This code is not complete!  There are parts of it that are not being used.

The LCD section is run from CALLs on page 3

The problem I am Having is on page 6, LCD_Upper & LCD_Lower address DF or row 1 address 9F.  If I use any other addresses it will work.


RS3800

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
Re: NHD-0240A2 Can't write to location 30 in either row
« Reply #4 on: July 05, 2017, 10:42:02 AM »
[Solved] I couldn't figure out why only certain parts of the display acted up and others did not.

So, here is what I did.  I bought a display from a different manufacturer and that was worse yet!  Then I knew it had to be something in my code.  The first thing I did was slow the clock speed down to 500 kHz and then it worked fine so I went up to 1MHz and the problems came back  Then I knew it was timing.  I added time delays in until I found one the solved the problem and I found it in my E pulse.  I had one NOP in there and that wasn't enough, I tried 3 NOPs and still that wasn't enough.  To make a long story short I finally got it to 5ms and every thing was ok after that.

I never got any suggestions so maybe I was not the only one that was stumped.

Paul_B

  • Administrator
  • Sr. Member
  • *****
  • Posts: 248
  • Karma: 16
    • View Profile
Re: NHD-0240A2 Can't write to location 30 in either row
« Reply #5 on: August 11, 2017, 04:10:50 PM »
Glad to hear you got your display up and running!

Thanks for sharing your solution, it will definitely help others  :D

 

NHD-4.3-480800EF-CTXP#-T - HX8369 continious memory write problem

Started by Henning_SBoard TFTs

Replies: 3
Views: 3460
Last post September 17, 2014, 06:51:40 AM
by Henning_S
NHD-1.27-12896UGC3, can't write data correctly, 4 wire spi

Started by dannyjBoard OLEDs

Replies: 1
Views: 2173
Last post November 14, 2014, 09:30:55 AM
by Michael_L
NHD-3.12-25664UCB2 Help Cannot write to the display

Started by gkearns@luxcom.comBoard OLEDs

Replies: 0
Views: 1258
Last post November 26, 2015, 09:52:53 AM
by gkearns@luxcom.com