CLUT8 Usage and LCD toggling for reduce RAM

HI,

I was using RGB565 earlier for displaying data and my RAM consumption was 580KB for 480x272 display. I want to limit my Graphics RAM to 300KB to 400KB Max, so i started using CLUT8,8bpp. I am using event as well. But i am getting window flashing for each update of timer of 1 second.

This issue was not happening in RGB565, 16 bpp. How to rectify this issue in CLUT8? Attached my program.

https://drive.google.com/file/d/0B2lqBLhAeTdLVmFjT2NtcW16RGc/view

Thanks,

Linto

DTDS

S7_SK_gx_clut8 (2).zip

Parents Reply
  • Hello Linto,

    This is correct. Your horizontal stride needs to be a multiple of 64 bytes to satisfy GLCDC requirements. With 16-bit colour, 480 pixels per row would provide 960 bytes of data (15 x 64 bytes). With 1 byte per pixel, the figure is no longer divisible by 64. You should adjust horizontal stride (changing horizontal size is not necessary) to 512 and build your GUIX application to accommodate for additional 32 pixel margin on the right. No changes to the output timing should be necessary.

    Regards
Children