Arrow DECA User Manual page 76

Table of Contents

Advertisement

transaction until it receives ACK. The section in green shows host sends I2C slave address
command repeatedly until CY8CMBR3102 responds with ACK. It indicates host wakes up
CY8CMBR3102 from standby mode (low-power state). Host will then send register address
command to CY8CMBR3102 until it responds with ACK and return the register data.
 Demonstration Source Code
 Project directory: Capsense_NIOS
 Bit stream: Capsense_NIOS.sof
 Nios II Eclipse: Capsense_NIOS\Software
 Demonstration Batch File
Demo Batch File Folder: Capsense_NIOS\demo_batch
The demo batch includes the following files.
Demo batch file folder: Capsense_NIOS\demo_batch
Batch file: test.bat, test.sh
FPGA configure file: Capsense_NIOS.sof
NIOS program: Capsense.elf
 Demonstration Setup
Please make sure Quartus II and USB-Blaster II driver are installed on the host PC.
Connect the USB cable to the USB-Blaster II connector (J10) between the DECA board and
the host PC.
Power on the DECA board.
Execute the demo batch file "test.bat" under the batch file folder Capsense_NIOS
\demo_batch.
Nios terminal will display the "Please touch the CapSense Button on DECA" message.
DECA User Manual
Figure 6-3 Read CapSense button state through I2C
75
www.terasic.com
May 22, 2015

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents