Registers - Epson S1D13505 Technical Manual

Embedded ramdac lcd/crt controller
Table of Contents

Advertisement

Page 30

5.1.1 Registers

REG[16h] Memory Address Offset Register 0
Memory
Memory
Address
Address
Offset
Offset
Bit 7
Bit 6
REG[17h] Memory Address Offset Register 1
n/a
n/a
S1D13505
X23A-G-003-07
Seldom are the maximum sizes used. Figure 5-1: "Viewport Inside a Virtual Display,"
depicts a more typical use of a virtual display. The display panel is 320x240 pixels, an
image of 640x480 pixels can be viewed by navigating a 320x240 pixel viewport around the
image using panning and scrolling.
320x240
Viewport
Figure 5-1: Viewport Inside a Virtual Display
Memory
Memory
Address
Address
Offset
Offset
Bit 5
n/a
Figure 5-2: Memory Address Offset Registers
Registers [16h] and [17h] form an 11-bit value called the memory address offset. This
offset is the number of words from the beginning of one line of the display to the beginning
of the next line of the display.
Note that this value does not necessarily represent the number of words to be shown on the
display. The display width is set in the Horizontal Display Width register. If the offset is set
to the same as the display width then there is no virtual width.
To maintain a constant virtual width as color depth changes, the memory address offset
must also change. At 1 bpp each word contains 16 pixels, at 16 bpp each word contains one
pixel. The formula to determine the value for these registers is:
offset = pixels_per_line / pixels_per_word
640x480
"Virtual" Display
Memory
Address
Offset
Bit 4
Bit 3
n/a
n/a
Epson Research and Development
Vancouver Design Center
Memory
Memory
Address
Address
Offset
Offset
Bit 2
Bit 1
Memory
Memory
Address
Address
Offset
Offset
Bit 10
Bit 9
Programming Notes and Examples
Memory
Address
Offset
Bit 0
Memory
Address
Offset
Bit 8
Issue Date: 01/02/05

Advertisement

Table of Contents
loading

Table of Contents