This application note describes how to implement capacitive touch sensing using the ADC input of the NXP LPC11xx microcontroller with demonstration code.
This document explains how to implement a simple capacitive touch sensing function using the Analog-to-Digital Converter (ADC) input of the NXP LPC11xx microcontroller. It details the working mode of the system, which involves charging an external capacitor via an IO pin configured as an output, followed by discharging it while configured as an ADC input to detect changes in capacitance caused by a finger touch. The process includes configuring the pin, starting the ADC conversion, sampling the result, and debouncing the signal.
The demonstration uses the PCF8883 evaluation kit with a MicroCore48 board.
The application note covers the LPC11xx series microcontrollers.
The code is written in C and compiled using KEIL uVision (MDK-ARM V4.14).