MAX 10 Plus User
Manual
76
May 31, 2019
•
Nios II Eclipse project workspace: gsensor_lightsensor \software
◼
Demonstration Batch File
•
Demo Batch File Folder: gsensor_lightsensor \demo_batch
The demo batch file includes the following files:
•
Batch File: gsensor_lightsensor.bat, gsensor_lightsensor.sh
•
FPGA Configure File: gsensor_lightsensor.sof
•
Nios II Program: gsensor_lightsensor.elf
◼
Demonstration Setup
Please follow the procedures below to set up the demonstration:
•
Load the bit stream into the FPGA on the MAX 10 Plus board.
•
Run the Nios II Software under the workspace gsensor_lightsensor\software (Note*).
•
After the Nios II program is downloaded and executed successfully, a prompt message will be
displayed in Nios2-terminal: “its ADXL345’s ID = e5”.
•
Tilt the MAX 10 Plus to all directions, and you will find that the angle of the g-sensor and value
of light sensor will change.
shows the demonstration result.
Figure 6-28 Digital Accelerometer Demonstration
Note: Execute gsensor_lightsensor_\demo_batch\gsensor_lightsensor.bat to download .sof
and .elf files.