Epson Research and Development
Page 25
Vancouver Design Center
Programming Notes and Examples
S1D13503
Issue Date: 01/01/30
X18A-G-002-06
Example 5:
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 S1D13503 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-6 was previously programmed into the S1D13503, the new inverted LUT would be the following:
3.2.3 Black-and-White (One Bit/Pixel)
When the S1D13503 is configured for one bit pixels, the monochrome (green) LUT is not used. Instead, a pixel value of 0
represents black and a pixel value of 1 represents white.
Note
One bit/pixel is only available in monochrome mode.
Table 3-7: S1D13503 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
–
=
electronic components distributor