cancel
Showing results for 
Search instead for 
Did you mean: 

Using LTDC in L8 input mode

yusuf1809
Visitor

My goal is to display text on the TFT LCD using stm32F756. The display I have is just the screen, no controller or gram. So I have configured the LTDC and was able to display a sample image which I stored in the flash. Now, the internal SRAM is not sufficient for the framebuffer, and I would like to implement CLUT to reduce the SRAM consumption. I have gone through the reference manual of the mcu. I can configure the pixel format of the LTDC layer from cubemx. But I don't see any way to configure the CLUT register. I can do that and the clut enabling manually I guess. My query are the followings -

1. The CLUT register contains address and rgb values. What is this address? Is it the address of the CLUT or the index value of the CLUT for that pixel? and in the RGB fields, do I have to manually write the RGB values for that pixel from the CLUT?

2. If I have only one color for all the fonts, do I still need to have a CLUT or can I just put the RGB values in the CLUT register? Is it possible that LTDC can read the RGB values from the CLUT register?

3. The output of my LTDC is RGB565. The length of each pixel of the LTDC framebuffer is 32 bit. But if I convert the image into L8, length for each index should be 8 bit. can LTDC read the framebuffer if the framebuffer has 8 bit CLUT-index values for each pixel?

0 REPLIES 0