
Page 34
Epson Research and Development
Vancouver Design Center
S1D13706
Programming Notes and Examples
X31B-G-003-03
Issue Date: 01/02/23
2. Determine the main window display start address.
The main window is typically placed at the start of display memory which is at display
address 0.
main window display start address register = desired byte address
÷
4
= 0
Program the Main Window Display Start Address registers. REG[74h] is set to 00h,
REG[75h] is set to 00h, and REG[76h] is set to 00h.
3. Determine the main window line address offset.
number of dwords per line
= image width
÷
(32
÷
bpp)
= 320
÷
(32
÷
4)
= 40
= 28h
Program the Main Window Line Address Offset registers. REG[78h] is set to 28h, and
REG[79h] is set to 00h.
Example 2: In SwivelView 90
°
mode, program the main window registers for a
320x240 panel at a color depth of 4 bpp.
1. Confirm the main window coordinates are valid.
The vertical coordinates must be a multiple of 32
÷
bpp.
240
÷
(32
÷
4) = 30
Main window vertical coordinate is valid.
2. Determine the main window display start address.
The main window is typically placed at the start of display memory, which is at dis-
play address 0.
main window display start address register
= ((desired byte a (panel height
×
bpp
÷
8))
÷
4) - 1
= ((0 + (240
×
4
÷
8)
÷
4) - 1
= 29
= 1Dh
Program the Main Window Display Start Address registers. REG[74h] is set to 1Dh,
REG[75h] is set to 00h, and REG[76h] is set to 00h.
3. Determine the main window line address offset.
number of dwords per line
= image width
÷
(32
÷
bpp)
= 240
÷
(32
÷
4)
= 30
= 1Eh