Color look-up table (CLUT)
The CLUT สามารถถูกเปิดใช้งานในขณะ run-time สำหรับทุกๆ layer ผ่านทาง the LTDC_LxCR register และมันมีประโยชน์เฉพาะในกรณีของสีที่จัดทำดัชนีเมื่อใช้ the L8, AL44 and AL88 input pixel format.
ขั้นแรก, the CLUT ต้องถูกโหลดด้วย the R, G and B values ที่แทนที่ the original R, G, B values ของ pixel นั้น(indexed color). แต่ละ color (RGB value) มี address ของมันเองซึ่งคือ the position ภายใน the CLUT.
The R, G and B values และ respective address ของพวกมันเองถูกโปรแกรมผ่านทาง the LTDC_LxCLUTWR register.
• ในกณีของ L8 and AL88 input pixel format, the CLUT ต้องถูกโหลดโดย 256 colors. The address ของแต่ละ color จะถูก
กำหนดค่าใน the CLUTADD bits ใน the LTDC_LxCLUTWR register.
• ในกณีของ AL44 input pixel format, the CLUT ต้องถูกโหลดเพียง 16 colors เท่านั้น. The address ของแต่ละ color ต้องถูก
เติมโดยการทำซ้ำ the 4-bit L channel เป็น 8-bit ดังนี้:
– L0 (indexed color 0), at address 0x00
– L1, at address 0x11
– L2, at address 0x22
– .....
– L15, at address 0xFF