Return to previous page Return to menu Go to next page

Mode 2, Mode 3, Mode 4
Mode 2 is 64 colors, mode 3 is 128 colors, and mode 4 is 256 colors. Represents a color with a palette code and a color bank.
1 pixel is represented by 8 bits. You can draw 64 colors, 128 colors and 256 colors respectively. 8 bytes are required to represent 8 pixels.
∙ 6 bits, 7 bits, and 8 bits represent the palette code, and the upper 10 bits, 9 bits, and 8 bits are added with the color bank from the color bank word (command table start address + 06H) and written to the frame buffer as 16-bit data. In mode 2 and mode 3, the upper 2 bits and 1 bit are ignored. When 8bit / pixel (when frame buffer is rotated or high resolution), the lower 8 bits of 16 bits are written to the frame buffer.
* Since drawing pixel data is a color bank code, color calculation is not possible.

Figure 6.12 Drawing examples of modes 2, 3, and 4

Mode 5
RGB mode of 32768 colors. Represents the color with brightness of each RGB (red, green, and blue). 1 pixel is expressed in 16 bits. 32768 colors can be drawn. 16 bytes are required to represent 8 pixels.
The RGB code represents the MSB1 bit (value is 1) that represents the RGB code and the RGB brightness in 5 bits. The brightness of each RGB is 00H to 1FH, darker as it approaches 00H, and brighter as it approaches 1FH. When RGB is all 00H, it becomes 8000H and represents black, and when all RGB is 1FH, it becomes FFFFH and represents white.
The RGB code is written as it is in 16 bits to the frame buffer. This mode cannot be used at 8bit / pixel (frame buffer rotation or high resolution).
RGB color calculation can be performed.


Return to previous page Return to menu Go to next page