Epson S1D13506 Technical Manual page 283

Color lcd/crt/tv controller
Table of Contents

Advertisement

Epson Research and Development
Vancouver Design Center
Note
Register
[070h]
[071h]
[076h]
[077h]
[078h]
[07Ah]
[07Bh]
[07Ch]
[07Eh]
Programming Notes and Examples
Issue Date: 02/03/21
Example 6: Initializing the Ink Layer
The following example places an Ink Layer at the end of a 2M byte display buffer.
SwivelView™ modes require software rotation of the Ink Layer. Color 0 is set to black, and
color 1 is set to white.
For a system with a 640x480 LCD display, the ink layer size is calculated as follows.
InkLayerSize
The Ink Layer must be allocated in 8K byte blocks. The value of the LCD Ink/Cursor Start
Address register is determined from the following table and calculation.
Table 8-4: Ink Layer Start Address Encoding
Ink/Cursor Start Address Bits [7:0]
0
1 - FFh
n
Fractional values cannot be programmed, therefore round up to an address of 10 (0Ah).
This reserves 10 x 8192 = 81,920 bytes for the Ink Layer from the end of display buffer.
Always round up the Ink/Cursor Start Address when calculating, otherwise insufficient
memory will be allocated for the Ink Layer.
Table 8-5: LCD Ink Layer Initialization Sequence
Value
0000 0010
Enable LCD ink layer
0000 1010
Set cursor start address to 0Ah (Memory Size - (8192 x 10))
0000 0000
0000 0000
Set Color 0 to black
0000 0000
0001 1111
0011 1111
Set Color 1 to white
0001 1111
0000 0000
Set FIFO High Threshold to default
= (PanelWidth x PanelHeight) ÷ 4
= (640 x 480) ÷ 4
= 76,800 bytes
Start Address (Bytes)
Display Buffer Size - 1024
Display Buffer Size - (n x 8192)
= InkLayerSize ÷ RequiredBlockSize
= 76,800 ÷ 8192
= 9.375
Notes
Page 49
S1D13506
X25B-G-003-04

Advertisement

Table of Contents
loading

Table of Contents