VGA32_16BPP, VGA32_TFT - External Memory Data Format
Frozen Content
When using the VGA32_16BPP or VGA32_TFT 32-bit VGA Controller variants, the color quality is fixed at 16 bits per pixel. The VGA Controller does not create the output RGB value for a pixel through use of a color look-up table – rather the color information is stored in the external video memory in the correct format and used directly.
Each address in memory contains a 32-bit word. That word contains the RGB color information for two pixels, with each pixel represented by 16 bits (or 2 bytes). For pixels 0-1 for example, the 32-bit word in memory would be stored as follows:
MSB LSB | |||||
31 27 | 26 21 | 20 16 | 15 11 | 10 5 | 4 0 |
Pixel0_R | Pixel0_G | Pixel0_B | Pixel1_R | Pixel1_G | Pixel1_B |