NHD-1.27-12896UGC3, can't write data correctly, 4 wire spi
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#
-
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:
https://newhavendisplay.com/content/app_notes/Arduino_OLED_12896.txt
0
Please sign in to leave a comment.
Comments
1 comment