MLT2 User Manual
21
www.terasic.com
April 12, 2016
Figure 4-2 Zoom-in using Zoom-in Gesture
4
4
.
.
2
2
B
B
l
l
o
o
c
c
k
k
D
D
i
i
a
a
g
g
r
r
a
a
m
m
o
o
f
f
t
t
h
h
e
e
e
e
P
P
h
h
o
o
t
t
o
o
D
D
e
e
s
s
i
i
g
g
n
n
This section describes the block diagram of the ePhoto demonstration to give users a better
understanding of the code provided.
Figure 4-3
shows the block diagram of the ePhoto demonstration. When the demonstration starts up,
the system will control the
Flash Controller
to read the RGB data of three photos stored in the
FLASH, and write the data into SDRAM by using the writing port of the
SDRAM
. The
SDRAM
Controller
provides two reading ports and two writing ports. In this demonstration, only one
reading port and one write porting are used. To display the selected photo on the 800x480 LCD, the
VGA Controller
will retrieve the photo data via reading the port of the
SDRAM
, and drive the LCD
display with the retrieved photo data. The
VGA Controller
retrieves the photo data at a rate of 60
photos per second.
Zoom
handles the photo zooming process. The displayed photo is zoomed
before being sent to the LCD display.
When users touch the MTL2 screen,
I2C Touch Config
will receive an interrupt signal from the
touch screen. When an interrupt is detected,
I2C Touch Config
will read touch information from the
touch panel and assert the oREADY signal. When
Touch Controller
detects a rising signal of
oREADY, it will read touch information and determine the input, which may be a gesture or a
single-point touch. If a west or east gesture is detected, it will change the reading port address of the
desired active photo in the
SDRAM Controller
. If a zoom-in or zoom-out gesture is detected, it will
change the zooming factor in
Zoom
.
For multi-touch gesture processing, a Terasic Memory-Mapped IP
I2C_Touch_Config
is used to
retrieve the touch information. For IP-usage details, please refer to the Chapter 3 in this document.
Note: the IP is encrypted, so the license should be installed before compiling the Quartus II project.
Summary of Contents for MTL2
Page 1: ...p ...