Epson S1D13708 Manuel D’Utilisation

Page de 574
Epson Research and Development
Page 33
Vancouver Design Center
Programming Notes and Examples
S1D13708
Issue Date: 01/11/20 
X39A-G-003-01
ADVANCE
D
 IN
FOR
MAT
ION
Subje
ct to C
ha
nge
Main Window Line Address Offset
The Main Window Line Address Offset register indicates the number of dwords per line in 
the main window image.
For SwivelView 0° and 180°, the image width must be at least the panel width. For 
SwivelView 90° and 270°, the image width must be at least the panel height. In addition, 
the image width must be a multiple of 32 
÷
 bpp. If the image width is not such a multiple, 
a slightly larger width must be chosen (see Section 7.3, “Limitations” ).
Panel width and panel height refer to the physical panel dimensions in pixels. Stride is the 
number of bytes required for one line of the image; the offset register represents the stride 
in DWORD steps.
Main Window Stride = image width 
×
 bpp 
÷
 8
Note
Image width can be larger than panel width (or panel height, for SwivelView 90° or 
270°).
number of dwords per line = image width 
÷
 (32 
÷
 bpp)
7.2  Examples
Example 1: In SwivelView 0° (normal) mode, program the main window registers for 
a 320x240 panel at a color depth of 4 bpp.
1. 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[76h],REG[75h],REG[74h] are set to 000000h.
Main Window Line Address Offset Register 0
REG[78h]
Read/Write
Main window Line Address Offset Bits 7-0
7
6
5
4
3
2
1
0
Main Window Line Address Offset Register 1
REG[79h]
Read/Write
n/a
Main window Line Address 
Offset Bits 9-8
7
6
5
4
3
2
1
0