Author Topic: NHD-2.4-240320CF-CSXN#-F works in 18 bits(262K colors) mode  (Read 2046 times)

charlie

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
NHD-2.4-240320CF-CSXN#-F works in 18 bits(262K colors) mode
« on: March 14, 2016, 12:15:38 PM »
Hi, I have NHD-2.4-240320CF-CSXN#-F display. I want to use it in 18 bits(262K colors) interface. But when I send data to lcd. It accepts first 2 bytes to be a pixel, and next 1 byte to a pixel too. not next 2 bytes. how do I set it to 18 bits interface? Thanks.

Saurabh_B

  • Administrator
  • Hero Member
  • *****
  • Posts: 341
  • Karma: 10
    • View Profile
Re: NHD-2.4-240320CF-CSXN#-F works in 18 bits(262K colors) mode
« Reply #1 on: March 14, 2016, 02:07:18 PM »
Hi Charlie,

Unfortunately it is not possible to use 18-Bit parallel to write to the display.
There are only 16 data pins connected to the controller, you would need to write Twice to the display for 18-bit color.

charlie

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: NHD-2.4-240320CF-CSXN#-F works in 18 bits(262K colors) mode
« Reply #2 on: March 14, 2016, 03:07:39 PM »
Hi Saurabh,

do you have initial sequence for 16 interface, but 18 bits data? My code looks working in 16 bits mode.

Thanks a lot

Saurabh_B

  • Administrator
  • Hero Member
  • *****
  • Posts: 341
  • Karma: 10
    • View Profile
Re: NHD-2.4-240320CF-CSXN#-F works in 18 bits(262K colors) mode
« Reply #3 on: March 15, 2016, 10:39:50 AM »
Charlie,

Unfortunately we do not have any initialization examples to drive this display using 16bits.

I would recommend using the Interface Pixel Format command to set the display into 262K color mode with 18b/pixel.
You can find the datasheet for this controller through the following link: http://www.newhavendisplay.com/app_notes/ST7789S.pdf

To do this you would need to send the following:
Command: 0x3A
Data: 0x66

That will set the display into 262K RGB interface with 18 bits/pixel. This is explained more on page 217 of the controller datasheet.

Then you will have to decide which format you would like to use to write the data:
This will be selected by the RAM control command (0xB0h)

the MTD1 and MTD0 bits control how the data should be input into the display. On pages 81-84 of the controller specification it will give you options on how you would be able to input the data.

 

NHD‐3.5‐320240MF‐ATXL#‐CTP‐1 Problem with standby mode

Started by guenterBoard TFTs

Replies: 0
Views: 1852
Last post June 16, 2016, 12:14:36 PM
by guenter
NHD-0420H1Z-FL-GBW-33V3 pull-ups and pull-downs in 4 bit mode

Started by richardwrightBoard Character LCDs

Replies: 3
Views: 2857
Last post December 15, 2014, 05:12:27 PM
by Michael_L
NHD0420CW-A*3 tHREE LINE MODE, MIDDLE LINE DOUBLE HEIGHT

Started by wb2dybBoard OLEDs

Replies: 3
Views: 2980
Last post July 01, 2015, 09:49:46 AM
by Paul_B
Text orientation not changing with Extended Entry Mode Set Register

Started by tekknojoeBoard OLEDs

Replies: 5
Views: 1275
Last post January 27, 2017, 10:13:57 AM
by jmadsenee
Large custom fonts in 8080 parallel mode

Started by bluedog54Board OLEDs

Replies: 1
Views: 2389
Last post July 22, 2015, 03:12:47 PM
by Saurabh_B