Epson S1D13708 Camera Accessories User Manual


 
Page 36 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
Example 4: In SwivelView 270
°
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 dis-
play address 0.
Main Window Stride
= image width × bpp ÷ 8
= 240 × 4 ÷ 8
= 120
= 78h
main window display start address register
= (desired byte address + ((panel width - 1) × Main Window Stride)) ÷ 4
= (0 + ((320 - 1) × 120)) ÷ 4
= 9570
= 2562h
Program the Main Window Display Start Address registers.
REG[76h],REG[75h],REG[74h] are set to 002562h.
2. Determine the main window line address offset.
number of dwords per line
= image width ÷ (32 ÷ bpp)
= 240 ÷ (32 ÷ 4)
= 30
= 1Eh
Program the Main Window Line Address Offset registers. REG[79h],REG[78h] are
set to 001Eh.