Epson S1D13708 Camera Accessories User Manual


 
Epson Research and Development Page 53
Vancouver Design Center
Programming Notes and Examples S1D13708
Issue Date: 01/11/20 X39A-G-003-01
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
+
display start address
= ((desired byte address + (PIP
+
width × bpp ÷ 8)
+ ((4 - (PIP
+
width × bpp ÷ 8)) & 03h)) ÷ 4) - 1
= ((9600h + (128 × 4 ÷ 8) + ((4 - (128 × 4 ÷ 8)) & 03h)) ÷ 4) - 1
= 9615
= 258Fh
Program the PIP
+
Display Start Address registers.
REG[7Ch]=8Fh
REG[7Dh]=25h
REG[7Eh]=00h
4. Determine the PIP
+
line address offset.
number of dwords per line
= image width ÷ (32 ÷ bpp)
= 128 ÷ (32 ÷ 4)
= 16
= 10h
Program the PIP
+
Line Address Offset registers.
REG[80h]=10h
REG[81h]=00h.
5. Enable the PIP
+
window.
Program the PIP
+
Window Enable bit.
REG[71h] bit 4 is set to 1.