
Epson Research and Development
Page 35
Vancouver Design Center
Programming Notes and Examples
S1D13706
Issue Date: 01/02/23
X31B-G-003-03
Program the Main Window Line Address Offset register. REG[78h] is set to 1Eh, and
REG[79h] is set to 00h.
Example 3: In SwivelView 180
°
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 horizontal coordinates must be a multiple of 32
÷
bpp.
320
÷
(32
÷
4) = 40
Main window horizontal 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 display
address 0.
main window display start address register
= ((desired byte a (panel width
×
panel height
×
bpp
÷
8))
÷
4) - 1
= ((0 + (320
×
240
×
4
÷
8))
÷
4) - 1
= 9599
= 257Fh.
Program the Main Window Display Start Address registers. REG[74h] is set to 7Fh,
REG[75h] is set to 25h, 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 4: In SwivelView 270
°
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 coordinates are valid.