Epson S1D13708 Camera Accessories User Manual


 
Page 50 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
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[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, the PIP
+
window can start at 9600h.
PIP
+
display start address
= desired byte address ÷ 4
= 9600h ÷ 4
= 2580h.
Program the PIP
+
Display Start Address registers.
REG[7Ch]=80h
REG[7Dh]=25h
REG[7Eh]=00h
4. Determine the PIP
+
line address offset.
number of dwords per line
= image width ÷ (32 ÷ bpp)
= 160 ÷ (32 ÷ 4)
= 20
= 14h
Program the PIP
+
Line Address Offset registers.
REG[80h]=14h
REG[81h]=00h.
5. Enable the PIP
+
window.
Program the PIP
+
Window Enable bit.
REG[71h] bit 4 is set to 1.