
Page 18
Epson Research and Development
Vancouver Design Center
SED1352
Programming Notes and Examples
X16-BG-007-04
Issue Date: 98/10/08
Example 4:
Initialize an Inverted Look-Up Table
This example shows how to invert an image by changing only the LUT. Inverting means that pixels formally shown as light
gray shades are now shown as dark gray shades, and vise versa. It does not matter whether the SED1352 is in 4 gray shade
or 16 gray shade mode.
1.
Read LUT entry:
Write LUT index to Look-Up Table Address Register AUX[0Eh]
Read “Old LUT Entry” from Look-Up Table Data Register AUX[0Fh]
2.
Calculate “New LUT Entry” according to the following formula:
3.
Write LUT entry back:
Write LUT index to Look-Up Table Address Register AUX[0Eh]
Write “New LUT Entry” to Look-Up Table Data Register AUX[0Fh]
4.
Repeat steps 1 to 3 until all 16 LUT entries have been changed.
If Table 3-1 was previously programmed into the SED1352, the new inverted LUT would be the following:
Table 3-2: SED1352F0B Inverted Look-Up Table (White-To-Black)
Index
(hex)
Look-Up
Table
(hex)
Index
(hex)
Look-Up
Table
(hex)
0
F
8
7
1
E
9
6
2
D
A
5
3
C
B
4
4
B
C
3
5
A
D
2
6
9
E
1
7
8
F
0
New LUT Entry
15
Old LUT Entry
–
=