Open main menu

DAVE Developer's Wiki β

Changes

BELK-TN-012: Using XADC signal module

536 bytes added, 10:38, 26 January 2022
History
!Notes
|-
|{{oldid|15689|1.0.0}}
|Dec 2021
|[[BELK/BXELK software components#BELK 4.1.0|4.1.0]]
|First release |-|1.1.0|Dec 2021|[[BELK/BXELK software components#BELK 4.1.0|4.1.0]]|Add "Electrical notes" section
|}
* the [https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842132/XADC Xilinx Atlassian's XADC Linux drivers] illustrating how to access the XADC module from a software perspective
== Reference Voltage Input Electrical notes ==From an electrical perspective, in regard to the XADC module [[BORA SOM |BORA]], [[BORA Xpress SOM |BORA Xpress]], and [[BORA Lite SOM |BORA Lite]] SoMs implement the same scheme, which is depicted in the following image. [[File:Zynq-7000-XADC-reference.png|center|thumb|519x519px]] 
As suggested in the [https://www.xilinx.com/support/documentation/user_guides/ug480_7Series_XADC.pdf#page=16 UG480 page 16]:
</pre>
the VREFP pad is internally connected to a 10ppm/°C 1.25V voltage reference .  For what concerns the input range, it is worth to remember that it is independent of the I/O voltage of bank 35 as illustrated in the Xilinx documentation: [[BORA SOM File:Zynq-7000-XADC-input-range.png|BORA]], [[BORA Xpress SOM center|BORA Xpress]] and [[BORA Lite SOM thumb|BORA Lite600x600px]] SoMs
== Pins usage==
</pre>
then, the related ADC channel can be read - from <code>sysfs</code> with the analog value reported in the form raw/scale:
<pre>
root@bora:~# cat /sys/devices/soc0/amba.1/f8007100.adc/iio\:device0/in_voltage0_vccint_raw
1348
root@bora:~# cat /sys/devices/soc0/amba.1/f8007100.adc/iio\:device0/in_voltage0_vccint_scale
0.732421875
root@bora:~#
<pre>
root@bora:~# cat /sys/devices/soc0/amba.1/f8007100.adc/iio\:device0/in_temp0_raw
2660
root@bora:~# cat /sys/devices/soc0/amba.1/f8007100.adc/iio\:device0/in_temp0_offset
-2219
root@bora:~# cat /sys/devices/soc0/amba.1/f8007100.adc/iio\:device0/in_temp0_scale
123.040771484
root@bora:~#
4,650
edits