Author Topic: NHD-1.27-12896UGC3, can't write data correctly, 4 wire spi  (Read 2245 times)

dannyj

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
NHD-1.27-12896UGC3, can't write data correctly, 4 wire spi
« on: November 12, 2014, 04:53:58 AM »
Hi,
I am surveying a display module, NHD-1.27-12896UGC3. Currently I can only write commands to this controller correctly, Iíve verified sleep-in, sleep-out, display mode all-on, all-off, display mode normal. They are all correct. But when I tried to write a command and then write data to the controller, I found it usually doesnít work. In other words, it just works sometimes.

I am using 4-wire serial mode.
I put my waveform at the end of this mail. This is a Ďset column addressí command with 2 data, 0x14 and 0x17, I programmed. Iíve checked some sample programs, and they set SDIN as high before writing data. Does this make me canít write data into the controller correctly?
Does it need to delay some time between a command issued and start to write data?
Or does my SCLK not support for this display module?

Thanks for your help.

VDD: ~3V
SCLK: 1.5 MHz ~ 500KHz (Those I have tried)

ss-p9: CS#
sclk-p7: SCLK
mosi-p8-sio0: SDIN
miso-p5-sio1: D/C#
 
« Last Edit: November 12, 2014, 07:13:45 PM by dannyj »

Michael_L

  • Administrator
  • Hero Member
  • *****
  • Posts: 356
  • Karma: 33
    • View Profile
Re: NHD-1.27-12896UGC3, can't write data correctly, 4 wire spi
« Reply #1 on: November 14, 2014, 09:30:55 AM »
The set_column_address command uses 2 data parameters after you send it to the display.  You would need to setup the address, and issue the write_memory_start command before writing pixel data to the display.  Please refer to the below example code which has examples with the parallel and serial interface of the display:

http://www.newhavendisplay.com/app_notes/Arduino_OLED_12896.txt

 

NHD-0220CW-AB3 "doubling" data?

Started by GerryOBoard OLEDs

Replies: 2
Views: 1937
Last post October 25, 2015, 03:25:07 AM
by GerryO
NHD-0420DZW-AG5 OLED character module--Displaying junk data

Started by control3Board OLEDs

Replies: 2
Views: 1112
Last post December 11, 2016, 11:19:54 PM
by control3
NHD‐3.12‐25664UMB3 3 or 4 wire interface

Started by cliffgBoard OLEDs

Replies: 1
Views: 2478
Last post February 13, 2015, 04:43:21 PM
by Michael_L
NHD-4.3-480800EF-CTXP#-T - HX8369 continious memory write problem

Started by Henning_SBoard TFTs

Replies: 3
Views: 3583
Last post September 17, 2014, 06:51:40 AM
by Henning_S
NHD-0216K3Z-FL-GBW-V3 outputting 5V on data pin

Started by Andrew_BBoard Character LCDs

Replies: 4
Views: 1115
Last post December 07, 2016, 08:34:51 AM
by Paul_B