Displaying XADC Temperature and voltage data on TFT using EDGE Zynq SoC FPGA kit

In this Demo, external temperature sensor, LDR output and FPGA IC temperature, voltages are read via XADC and send to SPI TFT through ZYNQ processing system.

XADC Temperature and Voltage Sensor output on SPI TFT Display - EDGE ZYNQ SoC FPGA Kit

The ST7735 TFT display is a 1.8″ display with a resolution of 128×160 pixels and can display a wide range of colors (full 18-bit color, 262,144 shades!). The display uses the SPI protocol for communication and has its own pixel-addressable frame buffer. Edge ztnq board is having the on-chip ADC.
The sensor outputs are shown on the TFT display.

We have added XADC IP which is used to convert the data from analog to digital. We have connected two ADC channel VAUX2 and VAUX10. One is connected the external temperature sensor and another one to the LDR. XADC working with the clock frequency of 25MHz.

TFT display communicates with FPGA via SPI interface. So we have selected AXI quad SPI IP block. There are three SPI pins such as MOSI, CS and SCLK connected. MISO pin is not required in this application.

AXI GPIO block is connected with AD and reset pin of TFT display.

SDK Application development

Open the SDK, In TFT_XADC application project, added delay.c, delay.h,font12.c font16.c, font20.c,font24.c,font8.c,fonts.h,LCD_Driver.c, LCD_Driver.h,LCD_GUI.c, LCD_GUI.h and main.c

On-board verification
Connect the board, TFT as shown Below.Click on the program FPGA symbol to download the bit file.
Now, the done LED will be ON

Click on the TFT_XADC application project ->Run us ->
Launch on hardware ( system debugger) as shown below.



Chat with us for queries on the EDGE FPGA kit