SLAAEU1A August   2025  – September 2026 MSPM0L1306

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. Introduction
  5. LaunchPad Setup
  6. Hardware Connection
  7. 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. Software Structure
    1. 5.1 Touch Detection Example
    2. 5.2 Resistive Click and Drag Detection
    3. 5.3 Pin Mode Switching
  9. Steps for Execution
  10. Results
    1. 7.1 Touch Detection
    2. 7.2 Click and Drag Detection
  11. Summary
  12. References
  13. 10Revision History

Steps for Execution

This section discusses the steps to follow to run the example for resistive touch detection on the MSPM0L1306 Launchpad.

  1. Calculate the IOs (Resistance and Pins) needed by following the instructions in Section 4.1.
  2. Implement the Hardware Setup between MSPM0L1306 LaunchPad and the resistive touch screen following the instructions in Section 3.
  3. Install Code Composer Studio™ (CCS) on the computer.
  4. Import the example given in the link in the Introduction Section: load the resistive_touch_detection or resisitve_click_drag_detection example.
  5. The user should add the X and Y axis, Min and Max values for the touchscreen being used. This maintains that no noise is sent as a coordinate.
  6. User should also adjust the TOUCH_DETECTION_THD and detection frequency according to the sensitivity and noise of the panel.
  7. Build the example.
  8. Create a Target configuration for MSPM0 in CCS, MSPM0_XDS110.ccxml, select the XDS110 Debug Probe and the MSPM0L1306 Device type.
  9. Right-click on MSPM0_XDS110.ccxml in Target Configurations window
  10. Select Launch Selected Configuration
  11. Select Run, Connect Target
  12. Select Run, Load, Load Program
  13. Browse to the binary for the MSPM0 project, and click OK.
  14. This writes the flash with the binary.
  15. After touching the Resistive Touchscreen, the ADC values for the X and Y axis are found and the result is sent through the UART peripheral to the Command line as shown in the Results Section. The coordinates are only updated when there is touch detected on the panel.