Examples - Epson S1D13704 Technical Manual

Embedded memory color lcd controller
Table of Contents

Advertisement

Page 32
REG[0Fh] Screen 2 Display Start Address 0 (LSB)
Start Addr Bit
Start Addr Bit
7
6
REG[10h] Screen 2 Display Start Address 0 (LSB)
Start Addr Bit
reserved
14

5.3.2 Examples

S1D13704
X26A-G-002-03
Start Addr Bit
Start Addr Bit
5
Start Addr Bit
Start Addr Bit
13
Figure 5-6: Screen 2 Start Address Registers
In landscape mode these two registers form the offset to the word in display memory to be
displayed immediately after the screen 1 area of display memory. Changing these registers
by one will shift the display 2 to 16 pixels, depending on the current color depth.
Split screen operation is not supported in SwivelView mode, leaving this register un-used.
Refer to Table 5-1:, "Number of Pixels Panned Using Start Address," on page 28 to see the
minimum number of pixels affected by a change of one to these registers
Example 5: Display 200 scanlines of image 1 and 40 scanlines of image 2. Image 2 is
located first (offset 0) in the display buffer followed immediately by im-
age 1. Assume a 320x240 display and a color depth of 4 bpp.
1. Calculate the Screen 1Vertical Size register values.
vertical_size = 200 = C8h
Write the Vertical Size LSB, REG[13h], with C8h and Vertical Size MSB, REG[14h],
with a 00h.
2. Calculate the Screen 1 Start Word Address register values.
Screen 2 is located first in display memory, therefore we must calculate the number of
bytes taken up by the screen 2 data.
bytes_per_line = pixels_per_line / pixels_per_byte = 320 / 2 = 160
total bytes = bytes_per_line x lines = 160 x 40 = 6400.
Screen 2 requires 6400 bytes (0 to 6399) therefore the start address offset for screen 1
must be 6400 bytes. (6400 bytes = 3200 words = C80h words)
Set the Screen 1 Start Word Address MSB, REG[0Dh], to 0Ch and the Screen 1 Start
Word Address LSB, REG[0Ch], to 80h.
Start Addr Bit
Start Addr Bit
4
3
Start Addr Bit
Start Addr Bit
12
11
*
Epson Research and Development
Vancouver Design Center
Start Addr Bit
Start Addr Bit
2
1
Start Addr Bit
Start Addr Bit
10
9
Programming Notes and Examples
Issue Date: 01/02/12
0
8

Advertisement

Table of Contents
loading

Table of Contents