Newhaven Display Forum

Newhaven Products => TFTs => Topic started by: charlie on March 14, 2016, 12:15:38 PM

Title: NHD-2.4-240320CF-CSXN#-F works in 18 bits(262K colors) mode
Post by: charlie 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.
Title: Re: NHD-2.4-240320CF-CSXN#-F works in 18 bits(262K colors) mode
Post by: Saurabh_B 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.
Title: Re: NHD-2.4-240320CF-CSXN#-F works in 18 bits(262K colors) mode
Post by: charlie 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
Title: Re: NHD-2.4-240320CF-CSXN#-F works in 18 bits(262K colors) mode
Post by: Saurabh_B 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.