
DECA User Manual
73
www.terasic.com
May 22, 2015
Chapter 6
NIOS Based Example Codes
Can’t wait to get started with the DECA board? We provide several NIOS based examples for you
to try them on the DECA board. All of the NIOS based examples can be found in the System CD
under the folder Demonstrations. You are free to use them or modify these examples in your future
design!
6
6
.
.
1
1
C
C
a
a
p
p
S
S
e
e
n
n
s
s
e
e
B
B
u
u
t
t
t
t
o
o
n
n
There is a special capacitive touch sensor called CapSense on DECA board. Capacitive touch
sensors are user-interface device that use the capacitance of the human body to detect the presence
of a finger on, or near, a sensor.
Figure 6-1
s
hows the system block diagram of this reference design. The capacitive touch sensor
chip CY8CMBR3102 is controlled through I2C interface. In this design, an I2C OpenCore
controller is used to communicate with the CY8CMBR3102. The NIOS program controlls the IC2
OpenCore based on a specified I2C OpenCore c-code library. The NIOS program use polling
method the monitor the touch sensor status.