XPT2046

Getting Started ›› Hardware ›› Touch Drivers ›› Resistive ››
Parent Previous Next

XPT2046




The required touch screen interface pins are:


    • T_DIN/MOSI – Touch data input / SPI Master Out, Slave In
    • T_DO/MISO – Touch data output / SPI Master In, Slave Out
    • T_CLK/SCLK – Touch serial clock / SPI serial clock
    • T_CS – Touch chip select
    • T_IRQ/PEN – Touch interrupt request (touch detected microcontroller input)


The touch controller’s ADC is driven by the SPI clock line. As a result, reading touch data requires a modified, slower, software-based SPI implementation. TFT Graphic Library 2 handles this automatically, switching between normal hardware SPI and the software SPI used for touch input as needed.


However, for optimal performance and simpler configuration, it is recommended to use separate SPI pins for the touch controller, rather than sharing the main SPI lines used by the TFT or other peripherals.


Currently the only available communication mode for touch screens is Software SPI:


$define TOUCH_COM            SPI_SW


Created with the Personal Edition of HelpNDoc: Streamline Your CHM Help File Creation with HelpNDoc