SPRUHZ7K August 2015 – April 2024 AM5706 , AM5708 , AM5716 , AM5718 , AM5718-HIREL
This subsequence describes the steps to configure the gamma table for gamma correction (see Table 11-123).
Software must ensure there is no visible effect when modifying the table because it is not under hardware control. The synchronization done using the DMA engine inside the DISPC to load the table when it is not used for displaying the picture on the screen is not present for this mode.
| Step | Register/Bit Field/Programming Model | Value |
|---|---|---|
| Enable Gamma table for LCD2 and TV. | DISPC_CONFIG1[9] GAMATABLEENABLE | 0x1 |
| Initialize all entries for the gamma table by setting the table index and the RGB values. For more information, see Section 11.2.4.14.2, Gamma Correction Unit. | DISPC_GAMMA_TABLE2[31][29:20][19:10][9:0] INDEX, VALUE_R, VALUE_G, VALUE_B | 0x– |