Epson S1D13708 Camera Accessories User Manual


 
Page 34 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
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.
Example 2: In SwivelView 90
°
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 display start address register
= ((desired byte address + (panel height × bpp ÷ 8)
+ ((4 - (panel height × bpp ÷ 8)) & 03h)) ÷ 4) - 1
= ((0 + (240 × 4 ÷ 8) + ((4 - (240 × 4 ÷ 8)) & 03h)) ÷ 4) - 1
= 29
= 1Dh
Program the Main Window Display Start Address registers.
REG[76h],REG[75h],REG[74h] are set to 00001Dh.
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.