Author Topic: NHD-C0216CZ-FSW-FBW-3V3 problems  (Read 3126 times)

Felix

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
NHD-C0216CZ-FSW-FBW-3V3 problems
« on: February 23, 2016, 09:28:05 AM »
We access a NHD-C0216CZ-FSW-FBW-3V3 over SPI from a FPGA. Because the display does not work I am not sure if I understand the SPI communication correct:

I do it according to the ST7032 datasheet (page 33, 34, 37, 45). And I tried also the commands freom the LCD data sheet page 10.

If I send only one command I have to send only 8 bits? What could be wrong?

Attached is a screenshot of a SPI access (0x0F : Display, cursor and cursor position on)

LCD_DNI ist the RS signal

Felix

Saurabh_B

  • Administrator
  • Hero Member
  • *****
  • Posts: 341
  • Karma: 10
    • View Profile
Re: NHD-C0216CZ-FSW-FBW-3V3 problems
« Reply #1 on: February 24, 2016, 09:38:20 AM »
Hi Felix,

Do you have anything tied to the RS pin on the display? (I did not see this in your picture)

If so, have you initialized the display?

Felix

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
Re: NHD-C0216CZ-FSW-FBW-3V3 problems
« Reply #2 on: February 25, 2016, 07:43:47 AM »
There was im timing issue and sometimes there were more than eight SCLK (9 to 12 ). And that caused the problems when writing commands. Now I can use all the commands successful.

But sending data to the display (RAM) does not work correctly: I always send 4 bytes. But the display shows only one or two oft this letters/numbers.

Is there a minimum time between sending each byte/character to the display/RAM?

Felix

Saurabh_B

  • Administrator
  • Hero Member
  • *****
  • Posts: 341
  • Karma: 10
    • View Profile
Re: NHD-C0216CZ-FSW-FBW-3V3 problems
« Reply #3 on: March 01, 2016, 08:22:24 AM »
Felix,

Yes there is a minimum execution time for commands sent to the display. You can find the minimum execution on the table in page 6 of the display specification.
Display Specification


Felix

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
Re: NHD-C0216CZ-FSW-FBW-3V3 problems
« Reply #4 on: March 03, 2016, 01:07:59 AM »
Thanks. I solved it with different timings until it worked. Only then I saw the minimum execution time in the table.

Now we have two problems with command:

Return Home 0x02 is not working.

Set DDRAM address to 0x40 (command 0xC0) is also not working. We can't acces the 2nd line of our display

Our initialisation is:

Function Set:       0x39   2 lines ON, double height font OFF, instruction table 1 (frequency/power/follower control)
Internal OSC frequency   0x14   settings for internal osc frequency
Power Control       0x56   
Follower Control    0x6D
Contrast         0x70   contrast set for internal follower mode
Display on       0x0F   Display, Cursor, Cursor  Position ON
Entry Mode       0x06   cursor moves right, DDRAM address increase
Clear Display      0x01   clears display
Function Set:       0x38   2 lines ON, double height font OFF, instruction table 0 (cursor+display shift, CGRAM adr)

After that the first line is working. But we cant access the 2nd line with 0xC0

Felix

Felix

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
Re: NHD-C0216CZ-FSW-FBW-3V3 problems
« Reply #5 on: March 21, 2016, 01:02:39 AM »
Now we have two problems with command:

Return Home 0x02 is not working.

Set DDRAM address to 0x40 (command 0xC0) is also not working. We can't acces the 2nd line of our display
The solution Shaurab suggested by email was to send the wakeup command (Function Set 0x39) more than once.

After sending five wakeup commands both commands are working.

Regards, Felix

 

NHD‐C0216CZ‐FSW‐FBW‐3V3

Started by AJS@UltraClenzBoard Character LCDs

Replies: 1
Views: 2360
Last post September 08, 2014, 09:22:04 AM
by Michael_L
Problems with a NHD‐0420H1Z‐FL‐GBW‐3V3

Started by c2hollowBoard Character LCDs

Replies: 7
Views: 4091
Last post July 17, 2017, 08:17:45 AM
by Saurabh_B
NHD-C0216CZ-NSW-BBW-3V3 Voltage booster Capacitor Voltage

Started by GeoffStateBoard Character LCDs

Replies: 2
Views: 2963
Last post November 16, 2014, 09:34:14 PM
by GeoffState
NHD-C0216CZ-FSW-FBW Serial Interface RS line question

Started by joestaudtBoard Character LCDs

Replies: 4
Views: 2873
Last post May 11, 2015, 09:34:29 AM
by Michael_L
MOVED: interfacing NHD-C0216CZ-FSW-FBW-3V3 with msp430

Started by Saurabh_BBoard Newhaven Engineering Projects

Replies: 0
Views: 839
Last post April 10, 2017, 08:09:28 AM
by Saurabh_B