Page 32
Epson Research and Development
Vancouver Design Center
S1D13704
Programming Notes and Examples
X26A-G-002-03
Issue Date: 01/02/12
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
5.3.2 Examples
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.
REG[0Fh] Screen 2 Display Start Address 0 (LSB)
Start Addr Bit
7
Start Addr Bit
6
Start Addr Bit
5
Start Addr Bit
4
Start Addr Bit
3
Start Addr Bit
2
Start Addr Bit
1
Start Addr Bit
0
REG[10h] Screen 2 Display Start Address 0 (LSB)
reserved
Start Addr Bit
14
Start Addr Bit
13
Start Addr Bit
12
Start Addr Bit
11
Start Addr Bit
10
Start Addr Bit
9
Start Addr Bit
8
*