User`s manual

3: DISPLAY BUFFER
2-6
EPSON
S1D13504 PROGRAMMING NOTES
AND EXAMPLES (S19A-G-002-06)
3D
ISPLAY
B
UFFER
This section discusses how the S1D13504 stores pixels in the display buffer and where the display
buffer is located.
3.1 Display Buffer Location
The S1D13504 requires either a 512K byte or a 2M byte block of memory to be decoded by the sys-
tem. System logic will determine the location of this memory block; the S5U13504P00C evaluation
board decodes the display buffer at the 12M byte location of system memory.
3.2 Display Buffer Organization
3.2.1 Memory Organization for One Bit-per-pixel (2 Colors/Gray Shades)
Eight pixels are grouped into one byte of display buffer as shown below:
One bit-per-pixel provides two shades of gray by indexing into positions 0 and 1 of the Green Look-
Up Table (LUT) and two levels of color by indexing into positions 0 and 1 of the Red/Green/Blue
LUTs.
3.2.2 Memory Organization for Two Bit-per-pixel (4 Colors/Gray Shades)
Four pixels are grouped into one byte of display buffer as shown below:
Two bit-per-pixel provides four shades of gray by indexing into positions 0 through 3 of the Green
LUT and four levels of color by indexing into positions 0 through 3 of the Red/Green/Blue LUTs.
3.2.3 Memory Organization for Four Bit-per-pixel (16 Colors/Gray Shades)
Two pixels are grouped into one byte of display buffer as shown below:
Four bit-per-pixel provides sixteen shades of gray by indexing into positions 0 through F of the
Green LUT and 16 levels of color by indexing into positions 0 through F of the Red/Green/Blue
LUTs.
Table 3-1 Pixel Storage for 1 bpp (2 Colors/Gray Shades) in One Byte of Display Buffer
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
Table 3-2 Pixel Storage for 2 bpp (4 Colors/Gray Shades) in One Byte of Display Buffer
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
Table 3-3 Pixel Storage for 4 bpp (16 Colors/Gray Shades) in One Byte of Display Buffer
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Pixel 0
Bit 3
Pixel 0
Bit 2
Pixel 0
Bit 1
Pixel 0
Bit 0
Pixel 1
Bit 3
Pixel 1
Bit 2
Pixel 1
Bit 1
Pixel 1
Bit 0