Memory Organization For Two Bit-Per-Pixel (4 Colors/Gray Shades); Memory Organization For Four Bit-Per-Pixel (16 Colors/Gray Shades) - Epson S1D13505 Technical Manual

Embedded ramdac lcd/crt controller
Table of Contents

Advertisement

Epson Research and Development
Vancouver Design Center

3.1.2 Memory Organization for Two Bit-Per-Pixel (4 Colors/Gray Shades)

Bit 7
Bit 6
Pixel 0
Pixel 0
Bit 1
Bit 0
Figure 3-2: Pixel Storage for 2 Bpp (4 Colors/Gray Shades) in One Byte of Display Buffer

3.1.3 Memory Organization for Four Bit-Per-Pixel (16 Colors/Gray Shades)

Bit 7
Bit 6
Pixel 0
Pixel 0
Bit 3
Bit 2
Figure 3-3: Pixel Storage for 4 Bpp (16 Colors/Gray Shades) in One Byte of Display Buffer
Programming Notes and Examples
Issue Date: 01/02/05
Bit 5
Bit 4
Pixel 1
Pixel 1
Bit 1
Bit 0
In this memory format each byte of display buffer contains four adjacent pixels. Setting or
resetting any pixel will require reading the entire byte, masking out the appropriate bits and,
if necessary, setting the bits to '1'.
Two bit pixels are capable of displaying four gray shade/color combinations. For
monochrome panels the four gray shades are generated by indexing into the first four
elements of the green component of the Look-Up Table. For color panels the four colors
are derived by indexing into positions 0 through 3 of the Look-Up Table.
Bit 5
Bit 4
Pixel 0
Pixel 0
Bit 1
Bit 0
In this memory format each byte of display buffer contains two adjacent pixels. Setting or
resetting any pixel will require reading the entire byte, masking out the upper or lower
nibble (4 bits) and setting the appropriate bits to '1'.
Four bit pixels provide 16 gray shade/color possibilities. For monochrome panels the gray
shades are generated by indexing into the first 16 elements of the green component of the
Look-Up Table. For color panels the 16 colors are derived by indexing into the first 16
positions of the Look-Up Table.
Bit 3
Bit 2
Pixel 2
Pixel 2
Bit 1
Bit 0
Bit 3
Bit 2
Pixel 1
Pixel 1
Bit 3
Bit 2
Page 17
Bit 1
Bit 0
Pixel 3
Pixel 3
Bit 1
Bit 0
Bit 1
Bit 0
Pixel 1
Pixel 1
Bit 1
Bit 0
S1D13505
X23A-G-003-07

Advertisement

Table of Contents
loading

Table of Contents