Epson S1D13708 Camera Accessories User Manual


 
Page 60 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
Note that the values of REG[84h] through REG[91h] do not go into effect until
after REG[91h] is written.
Due to truncation, the dimensions of the PIP
+
window may have changed. Recalculate
the PIP
+
window width and height below:
PIP Width
= ((REG[91h],REG[90h]) - (REG[89h],REG[88h]) + 1) × (32 ÷ bpp)
= (16h - 07h + 1) × (32 ÷ 4)
= 128 pixels (note that this is different from the desired width)
PIP
+
Height
= (REG[8Dh],REG[8Ch]) - (REG[85h],REG[84h]) + 1
= EFh - 50h + 1
= 160 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
= 128 × 4 ÷ 8
= 64
= 40h
PIP
+
display start address
= (desired byte address + ((PIP
+
height - 1) × PIP
+
Stride)) ÷ 4
= (9600h + ((160 - 1) × 64)) ÷ 4
= 12144
= 2F70h
Program the PIP
+
Display Start Address registers.
REG[7Ch]=70h
REG[7Dh]=2Fh
REG[7Eh]=00h