Epson S1D13708 Camera Accessories User Manual


 
Page 56 Epson Research and Development
Vancouver Design Center
S1D13708 Programming Notes and Examples
X39A-G-003-01 Issue Date: 01/11/20
ADVANCE
D
IN
F
ORMATION
Subje
ct to C
ha
nge
Due to truncation, the dimensions of the PIP
+
window may have changed. Recalculate
the PIP
+
window width and height below:
PIP
+
Width
= ((REG[8Dh],REG[8Ch]) - (REG[85h],REG[84h]) + 1) × (32 ÷ bpp)
= (1Dh - 0Ah + 1) × (32 ÷ 4)
= 160 pixels
PIP Height
= (REG[91h],REG[90h]) - (REG[89h],REG[88h]) + 1
= B3h - 3Ch + 1
= 120 lines
3. Determine the PIP
+
display start address.
The main window image must take up 320 x 240 pixels × bpp ÷ 8 = 9600h bytes. If
the main window starts at address 0h, then the PIP
+
window can start at 9600h.
PIP
+
Stride
= image width × bpp ÷ 8
= 160 × 4 ÷ 8
= 80
= 50h
PIP
+
display start address
= ((desired byte address + (PIP
+
Stride × (PIP
+
height - 1))
+ (PIP
+
width × bpp ÷ 8) + ((4 - (PIP width × bpp ÷ 8)) & 03h)) ÷ 4) - 1
= ((9600h + (80 × (120 - 1)) + (160 × 4 ÷ 8) + ((4 - (160 × 4 ÷ 8))&03h)) ÷ 4) - 1
= 11999
= 2EDFh
Program the PIP
+
Display Start Address registers.
REG[7Ch]=DFh
REG[7Dh]=2Eh
REG[7Eh]=00h