This document provides the reference code for the operation of the STMPE811 touchscreen controller. The first part describes how to initialize the STMPE811 device, while the second part provides two practical methods to handle the data coming from the device.
This document serves as a reference guide for developers using the STMPE811 touchscreen controller. It details the specific register initialization sequence required to configure the device for touchscreen operation, covering settings for interrupts, ADC control, GPIO functions, and FIFO management.
The note further explains two practical methods for handling data from the device: group point reading and single point reading. It includes flowcharts and C code examples demonstrating how to implement these interrupt service routines (ISR) to efficiently process touch events.
For screens less than 6 inches, a 1-2 nF capacitor is recommended, while bigger screens can use 5-10 nF capacitors.
A 500 uS settling time and 500uS touch detect delay are recommended for 1-2 nF capacitors.
A 1 mS settling time and touch detect delay are recommended for 5-10 nF capacitors.