# Introduction to XADC
Xilinx 7 series FPGAs have a built-in ADC, called
**
XADC
**
. The Artix-7 series FPGA contains two 12-bit, 1MSPS XADC, which can be configured to sample two external analog channels at the same time, and can also be used as a normal User I/O port. XADC has a variety of operation modes to choose from. For example, the external step trigger synchronous sampling mode can receive different types of analog input signals. XADC can also directly obtain the temperature and power supply voltage of the FPGA chip to monitor the internal conditions of the FPGA. These measurements The received data will be stored in the internal status register, which can be accessed through DRP (Dynamic Reconfigura TIon Port) or through JTAG TAP. XADC in defult mode is dedicated to monitor the power supply voltage and chip temperature on the chip, and
no special configuration is required.
![](././../../images_dir/1618887636/1.png)
XADC register interface
# XADC system design - **
Project name:
**
XADC use;
- **
Specific requirements:
**
Realize the ip core of xadc to collect input data and output sampling results;
- **
System design:
**
Perf-V development board is equipped with Artix-7 series FPGA. In this project, the XADC is configured to perform a simple voltage measurement on the A5 pin of Perf-V. The 1.25V inside the FPGA is used as the reference voltage. The P1 high-speed socket contains 2 pairs of high-speed differential input AD sampling; P2 is compatible with Arduino, and contains 6 single-ended inputs or 6 pairs of differential input AD sampling.
![](././../../images_dir/1618888001/2.png)
XADC system design diagram
# Perf-V development board **
Perf-V development board uses Xilinx Artix-7 FPGA chip
**
. Provides a wealth of peripheral interfaces, including PMOD, Arduino, JTAG, UART interfaces, and high-speed interfaces that can be extended to HDMI, VGA, USB2.0/3.0, camera, Bluetooth, SD card, expansion board, etc, with strong flexibility.
![](././../../images_dir/1618888203/3.png)
# Practical application of XADC
![](././../../images_dir/1618888275/4.png)
![](././../../images_dir/1703141148/4.png)