Download Print this page

Using Terasic Multi-Touch Ip - Terasic P0158 User Manual

Capacitive multi-touch lcd with camera module

Advertisement

3
.
5
U
s
i
n
g
T
e
3
.
5
U
s
i
n
g
T
e
Terasic Multi-Touch IP is provided for developers to retrieve user inputs, including multi-touch
gestures and single-touch. The file name of this IP is i2c_touch_config and it is encrypted. To
compile projects with the IP, users need to install the IP license first. For license installation,
please refer to section
license file is located at:
MTLC System CD\License\license_multi_touch.dat
The IP decodes I2C information and outputs coordinate and gesture information. The IP
interface is shown below:
The signal purpose of the IP is described in
reference clock to the iCLK pin and system reset signal to iRSTN. iTRIG, I2C_SCLK, and
IC2_SDAT pins should be connected of the TOUCH_INT_n, TOUCH_I2C_SCL, and
TOUCH_I2C_SDA signals in the 2x20 GPIO header respectively. When oREADY rises, it
means there is touch activity, and associated information is given in the oREG_X1, oREG_Y1,
oREG_X2, oREG_Y2, oREG_TOUCH_COUNT, and oREG_GESTURE pins.
For the control application, when touch activity occurs, it should check whether the value of
oREG_GESTURE matched a pre-defined gesture ID defined in
it means a single-touch has occurred and the relative X/Y coordinates can be derived from
oREG_X1 and oREG_Y1.
Table 3-6 Interface Definitions of Terasic Multi-touch IP
Pin Name
iCLK
iRSTN
iTRIG
oREADY
oREG_X1
oREG_Y1
MTLC User Manual
r
a
s
i
c
M
u
l
t
i
-
T
r
a
s
i
c
M
u
l
t
i
-
T
1.2 Setup License for Terasic Multi-Touch IP
Direction
Input
Input
Input
Output
Output
Output
o
u
c
h
I
P
o
u
c
h
I
P
Table 3-6.
The IP requires a 50MHz signal as a
Description
Connect to 50MHz Clock
Connect to system reset signal
Connect to Interrupt Pin of Touch
IC
Rising Trigger when following six
output data is valid
10-bits X coordinate of first touch
point
9-bits Y coordinate of first touch
point
18
in this document. The
Table 3-7.
If it is not a gesture,
www.terasic.com
May 22, 2014

Advertisement

loading

This manual is also suitable for:

Altera mtlc