Epson S1D13708 Camera Accessories User Manual


 
Epson Research and Development Page 35
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
Example 3: In SwivelView 180
°
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 display
address 0.
Main Window Stride
= image width × bpp ÷ 8
= 320 × 4 ÷ 8
= 160
= A0h
main window display start address register
= ((desired byte address + (Main Window Stride × (panel height − 1))
+ (panel width × bpp ÷ 8) + ((4 - (panel width × bpp ÷ 8)) & 03h)) ÷ 4) - 1
= ((0+(160 × (240 − 1)) + (320 × 4 ÷ 8) + ((4 - (320 × 4 ÷ 8))& 03h)) ÷ 4) - 1
= 9599
= 257Fh
Program the Main Window Display Start Address registers.
REG[76h],REG[75h],REG[74h] are set to 00257Fh.
2. Determine the main window line address offset.
number of dwords per line
= image width ÷ (32 ÷ bpp)
= 320 ÷ (32 ÷ 4)
= 40
= 28h
Program the Main Window Line Address Offset registers. REG[79h],REG[78h] are
set to 0028h.