SLAAEU1A August   2025  – September 2026 MSPM0L1306

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1 Introduction
  5. 2 LaunchPad Setup
  6. 3 Hardware Connection
  7. 4 Design Considerations
    1. 4.1 IO Selection Consideration
    2. 4.2 Measurement Method
      1. 4.2.1 Touch Detection Method
      2. 4.2.2 X-Axis and Y-Axis Measurement
  8. 5 Software Structure
    1. 5.1 Touch Detection Example
    2. 5.2 Resistive Click and Drag Detection
    3. 5.3 Pin Mode Switching
  9. 6 Steps for Execution
  10. 7 Results
    1. 7.1 Touch Detection
    2. 7.2 Click and Drag Detection
  11. 8 Summary
  12. 9 References
  13. 10Revision History

Introduction

Resistive touch screens are widely adopted in industrial, medical, and consumer applications due to their robustness, cost-effectiveness, and ability to function with any input medium (including gloved fingers). Unlike capacitive touch screens, resistive implementations do not require specialized conductive materials and offer superior performance in harsh environments.

The MSPM0L1306 microcontroller provides the necessary analog and digital interfaces to implement a complete resistive touch screen controller. This application note presents practical firmware implementations for touch detection and analysis using GPIO pins to drive the resistive layers and the integrated ADC to acquire coordinate measurements. Two example projects are provided: a basic touch detection system, and an advanced system capable of distinguishing between click events and drag/long-touch gestures through a timing based measurement using the Timer G peripheral.

A resistive touch screen works by applying a voltage across a resistor network and measuring the change in resistance at a given point on the matrix where a screen is touched by an input stylus, pen, or finger. This device consists of two transparent resistive layers made by ITO (Indium Tim Oxide) and separated by a thin air gap. When a user applies pressure with a stylus, pen, or finger, the top layer contacts the bottom layer, creating a closed circuit at that specific location. This method is used by the microcontroller to get the location of the touch.

The related software can be accessed at MSPM0L1306-RESISTIVE-TOUCH-APPSW.