Page 18
Epson Research and Development
Vancouver Design Center
S1D13503
Programming Notes and Examples
X18A-G-002-06
Issue Date: 01/01/30
3 GRAY SHADES / COLORS AND LOOK-UP TABLES
This section discusses how the S1D13503 shows color and monochrome images on LCD panels.
3.1 Pixels
A pixel is physically stored in display memory as a series of bits. The more bits, the more colors the pixel can show.
The following sections show how these pixels are stored in display memory.
3.1.1 Memory Organization for One Bit Pixel (Black-and-White)
To store one bit pixels, eight pixels are grouped into one byte of display memory as shown below:
Figure 1: Pixel Storage For 1 Bit (Black-and-White) In One Byte Of Display Memory
When these pixels are shown, Pixel 0 is seen to be left of Pixel 1, Pixel 1 is seen to be left of Pixel 2, and so on. One bit
pixels are only available on monochrome panels, and can only be displayed in black-and-white (no Look-Up Table is used).
3.1.2 Memory Organization for Two Bit Pixels (4 Colors/Gray Shades)
To store two bit pixels, four pixels are grouped into one byte of display memory as shown below:
Figure 2: Pixel Storage For 2 Bits (4 Colors/Gray Shades) In One Byte Of Display Memory
When these pixels are shown, Pixel 0 is seen to be left of Pixel 1, Pixel 1 is seen to be left of Pixel 2, and so on. Two bit
pixels are available in both monochrome and color panels.
Table 3-1: Number Of Bits As Related To Colors
Bits per
Pixel
Levels of
Gray Shades
Colors
1
2
n/a
2
4
4
4
16
16
8
n/a
256
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Pixel 0
Bit 0
Pixel 1
Bit 0
Pixel 2
Bit 0
Pixel 3
Bit 0
Pixel 4
Bit 0
Pixel 5
Bit 0
Pixel 6
Bit 0
Pixel 7
Bit 0
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Pixel 0
Bit 1
Pixel 0
Bit 0
Pixel 1
Bit 1
Pixel 1
Bit 0
Pixel 2
Bit 1
Pixel 2
Bit 0
Pixel 3
Bit 1
Pixel 3
Bit 0
electronic components distributor