This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
resources:fpga:xilinx:pmod:ad7091r [01 Oct 2013 09:23] – [FPGA Configuration for ZedBoard] Alexandru.Tofan | resources:fpga:xilinx:pmod:ad7091r [20 Nov 2015 13:43] – hide linux, it is not supported at the moment Lars-Peter Clausen | ||
---|---|---|---|
Line 117: | Line 117: | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
- | * [[https:// | + | * [[https:// |
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
| | ||
</ | </ | ||
+ | <wrap hide> | ||
+ | ====== Linux Device Driver - Custom HDL PCore ====== | ||
+ | Connect PmodAD6 to the JD1 connector of the ZedBoard (upper row of pins). | ||
+ | |||
+ | ===== Preparing the SD Card ===== | ||
+ | |||
+ | In order to prepare the SD Card for booting Linux on the ZedBoard: | ||
+ | * Download the device tree: [[https:// | ||
+ | * Download the Xilinx XPS project: [[https:// | ||
+ | * Download the AD7091R IPcore: [[https:// | ||
+ | * Download the project libraries: [[https:// | ||
+ | * Follow the instructions on the following wiki page, but use the device tree and project downloaded on the previous step | ||
+ | * [[http:// | ||
+ | |||
+ | Make sure you have an HDMI monitor connected to the ZedBoard, plug in the SD Card and power on the board. | ||
+ | If everything is correct, the system should boot up. If you don't have an HDMI monitor, connect to the board via UART, Baud Rate 115200. | ||
+ | |||
+ | There are 2 ways to test the driver. | ||
+ | * Using the terminal window | ||
+ | * Using the ADI IIO Oscilloscope | ||
+ | |||
+ | ===== Using the terminal window ===== | ||
+ | |||
+ | Open a new terminal window by pressing **Ctrl+Alt+T**. | ||
+ | |||
+ | Navigate to the location of the device and identify it using the following commands: | ||
+ | < | ||
+ | cd / | ||
+ | ls | ||
+ | iio:device0 iio:device1 trigger0 | ||
+ | cd iio\: | ||
+ | cat name | ||
+ | AD7091R | ||
+ | </ | ||
+ | |||
+ | If the **cat name** command doesn' | ||
+ | < | ||
+ | cd .. | ||
+ | cd iio\: | ||
+ | cat name | ||
+ | </ | ||
+ | |||
+ | To see the list of options that the AD7980 driver provides, type: | ||
+ | < | ||
+ | ls | ||
+ | buffer | ||
+ | </ | ||
+ | |||
+ | To read the raw input voltage, type: | ||
+ | < | ||
+ | cd buffer | ||
+ | echo 128 > length | ||
+ | echo 1 > enable | ||
+ | hexdump -x / | ||
+ | 0000000 | ||
+ | 0000010 | ||
+ | 0000020 | ||
+ | 0000030 | ||
+ | 0000040 | ||
+ | 0000050 | ||
+ | 0000060 | ||
+ | 0000070 | ||
+ | </ | ||
+ | |||
+ | {{: | ||
+ | |||
+ | The commands written above can also be used if not using an HDMI monitor and a wireless keyboard, by using a serial terminal, and typing the commands after the system boot-up is complete. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ===== Using the ADI IIO Oscilloscope ===== | ||
+ | |||
+ | Install the ADI IIO Oscilloscope using the instructions from the following wiki page: | ||
+ | * [[http:// | ||
+ | |||
+ | Launch the ADI IIO Oscilloscope. | ||
+ | |||
+ | Select **AD7091R** from the **Device** drop-down menu. Set the desired number of samples in the **Sample Count** tab. Click the **Green Play Button** in order to start capturing and displaying data. Click **Stop** to stop the process. | ||
+ | |||
+ | {{: | ||
+ | </ | ||
===== More information ===== | ===== More information ===== | ||
* [[ez> | * [[ez> | ||
* Example questions: {{rss> | * Example questions: {{rss> |