0
\$\begingroup\$

I'm using a LCD with a ST7701S driver and it has an 18-bit RBG interface. To control it I am using a STM32H7 with the LTDC peripheral. I have been prototyping with the STM32H745-Disco which has a LCD with a 24-bit RGB interface. To my understanding the LTDC does not offer a pixel format that is 18 bits.

Can I still use ARGB8888 or RGB888 pixel format in the LTDC with the 18-bit interface? Will I want to connect the lower or upper 6 bits of each color channel to the LCD? For example, R0-R5 of the MCU to R0-R5 of the LCD or R2-R7 of the MCU to R0-R5 of the LCD? What would the effect be of doing either of these?

\$\endgroup\$

1 Answer 1

1
\$\begingroup\$

Reference Manual RM0433, Chapter 32.3.2:

For LTDC outputs up to 24 bits (RGB888), if less than 8 bpp are used to output for example RGB565 or RGB666 to interface on 16- or 18-bit displays, the RGB display data lines must be connected to the MSB of the LTDC RGB data lines.

So, yes, you can use RGB8888 and connect the upper 6 bits.

\$\endgroup\$
1
  • \$\begingroup\$ Thank you for pointing that out! \$\endgroup\$ Commented Apr 13 at 0:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.