
Page 16
Epson Research and Development
Vancouver Design Center
SED1352
Programming Notes and Examples
X16-BG-007-04
Issue Date: 98/10/08
3.2 Look-Up Table (LUT)
This section provides a concise description of the LUT registers, followed by a description of a LUT. Next is a series of
examples which show how to initialize a LUT, create an inverted LUT, and how to select one of four banks in the 4 gray
shade mode.
3.2.1 LUT Registers
Note
Register bits discussed in this section are highlighted.
The SED1352 has one internal 16 position, 4-bit wide Look-Up Table (palette). The 4-bit value programmed into each table
position determines the output gray shade of display data.
For example, in 16-level gray shade mode, a data value of 0001h (4 bits per pixel) will point to Look-Up Table positions
one and display the 4-bit gray shade that was previously programmed into that location.
bits 7-6
Bank Bits [1:0]
In 4-level gray mode (2-bits/pixel), the 16 position palette is arranged into four, 4 position “banks”. These
two bits control which bank is currently selected. These bits have no effect in 16-level gray mode (4-
bits/pixel).
bits 3-0
Palette Address Bits [3:0]
These 4 bits provide a pointer into the 16 position Look-Up Table currently selected for CPU R/W access.
Note
The Look-Up Table configuration (e.g. 1/2/4 banks) does not affect the R/W access
from the CPU as all 16 positions can be accessed sequentially.
bits 3-0
Palette Data Bits [3:0]
These 4-bits are the gray shade values used for display data output. They are programmed into the 4-bit
Look-Up Table (palettes) positions pointed to by Palette Address bits [3:0].
For example; in a 16-level gray shade display mode, a data value of 0001b (4-bits / pixel) will point to
Look-Up Table position one and display the 4-bit gray shade corresponding to the value programmed into
that location.
AUX[0E] Look-Up Table Address Register
I/O address = 1110b, Read/Write
Bank
Bit 1
Bank
Bit 0
ID Bit
(Read Only)
ID Bit
(Read Only)
Palette
Address
Bit 3
Palette
Address
Bit 2
Palette
Address
Bit 1
Palette
Address
Bit 0
AUX[0F] Look-Up Table Data Register
I/O address = 1111b, Read/Write.
n/a
n/a
n/a
n/a
Palette Data
Bit 3
Palette Data
Bit 2
Palette Data
Bit 1
Palette Data
Bit 0