137
Quartus II project. The other components are standard SOPC Builder components.
KEY
The KEY button is driven by PIO Controller with interrupt enabled. It is design to generate an
interrupt event when users click KEY0 or KEY1. The interrupt event is used to terminate
accelerometer and analog to digital conversion process in this demo.
For default, the interrupt is disabled in the PIO Controller. Users can enable it with the parameter
setting as shown in below
Figure 8-7
.
Figure 8-7 PIO Controller
Accelerometer Control
The accelerometer controller is a custom SOPC component developed by Terasic. The source code
is available under the folder \DE0_NANO_SOPC_DEMO\ip\TARASIC_SPI_3WIRE.
In this demo, the accelerometer is controlled through a 3-wire SPI. Before reading any data from the
accelerometer, master should set 1 on the SPI bit in the Register 0x31 – DATA_FORMAT register,
as shown in below
Figure 8-8
, to set the device to 3-wire SPI mode.
Summary of Contents for De0-Nano
Page 1: ...1 ...
Page 4: ...4 9 3 Revision History 155 9 4 Copyright Statement 155 ...
Page 44: ...44 Figure 6 5 Browse to find the location Figure 6 6 There is no need to test the driver ...
Page 90: ...90 Figure 7 14 Add NIOS II Processor ...
Page 93: ...93 Figure 7 17 Rename the CPU 1 Figure 7 18 Rename the CPU 2 ...
Page 98: ...98 Figure 7 23 Add On Chip Memory ...
Page 100: ...100 Figure 7 25 Update Total memory size ...
Page 102: ...102 Figure 7 28 Update CPU settings ...
Page 104: ...104 Figure 7 30 Add PIO ...
Page 106: ...106 Figure 7 32 PIO 21 Rename pio_0 to pio_led as shown in Figure 7 33 Figure 7 33 Rename PIO ...
Page 113: ...113 Figure 7 43 Input verilog Text Figure 7 44 Open DE0_NANO_SOPC v ...
Page 146: ...146 Figure 8 16 Display Progress and Result Information for the SDRAM Demonstration ...
Page 150: ...150 Figure 9 3 Select Devices Page ...
Page 151: ...151 Figure 9 4 Convert Programming Files Page ...