Page 52
Epson Research and Development
Vancouver Design Center
S1D13503
Programming Notes and Examples
X18A-G-002-06
Issue Date: 01/01/30
7.
Program the Screen 2 Display Start Address Register to point to the beginning of the second half of the image.
The second half of the image is placed right after the first half, as shown below:
AUX[08h] = 00h
AUX[09h] = 4Bh
8.
Write both the first and second halves of the image to their respective locations in display memory.
5.5 Panning and Scrolling
Panning and scrolling are typically used to show an image which is too large to be shown completely on an LCD panel.
Although the image is stored entirely in display memory, only a small portion is actually visible on the LCD panel. This
visible portion is called the viewport; the user moves this viewport over different portions of the image by panning and
scrolling. Panning moves the viewport right or left. Scrolling moves the viewport up or down.
5.5.1 Initialization
To pan and scroll over a large image, the S1D13503 registers must first be initialized and the image written to display
memory. To do so, initialize the registers as described in Section 2, “INITIALIZING THE S1D13503” on page 10, but with
the following exception: the Address Pitch Adjustment Register in the S1D13503 must be set to create a virtual display;
see Section 5.1, “Virtual Displays” on page 40 for more information.
5.5.2 Panning Right and Left
To pan to the right, increase the value in the Screen 1 Display Start Address Register. To pan to the left, decrease the value
in the Screen 1 Display Start Address Register.
Note that the S1D13503 can pan right or left by either 1, 2, 4, 8, or 16 pixels. This is because the Screen 1 Display Start
Address Register refers to either bytes or words (see Section 4.2.1, “S5U13503B00C Evaluation Board Display Memory”
on page 36), and a byte can represent 1, 2, 4, or 8 pixels, and so a word can represent 2, 4, 8, or 16 pixels; see Table 5-1
below:
Table 5-1: Smallest Number Of Pixels For Panning
Memory
Interface
Colors/
Gray Levels
Pixels per Byte
Smallest Number of Pixels
for Panning
8 bits
2
8
8
4
4
4
16
2
2
256
1
1
16 bits
2
8
16
4
4
8
16
2
4
256
1
2
Screen 2 Display Start Address Register
Screen 1 Display Start Address Register
size of first half of image in bytes
2 bytes per word
--------------------------------------------------------------------------------
+
=
0000h
9600h
2
---------------
+
4B00h
=
=
electronic components distributor