SLAAEJ0A November   2023  – April 2026 AM625 , AM62L , MSPM0C1105 , MSPM0C1106 , MSPM0L1306

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
    1. 1.1 SPI Transaction Dataflow
    2. 1.2 AM62x and AM62L Processors
    3. 1.3 MSPM0L130x Microcontroller
  5. 2Hardware Setup
    1. 2.1 AM62x
      1. 2.1.1 A53 Core Hardware Setup
      2. 2.1.2 M4F Core Hardware Setup
    2. 2.2 AM62L
      1. 2.2.1 A53 Core Hardware Setup
  6. 3Software Setup
    1. 3.1 Cloning the Beyond SDK GitHub Repository
    2. 3.2 SK-AM62x Software Setup
      1. 3.2.1 A53 Core
      2. 3.2.2 M4F Core
    3. 3.3 AM62L Software Setup
      1. 3.3.1 A53 Core
    4. 3.4 LP-MSPM0L130x Software Setup
  7. 4Steps for Execution
    1. 4.1 Run Project on LP-MSPM0L130x
    2. 4.2 Run Project on SK-AM62x/AM62L EVM
      1. 4.2.1 A53 Core
      2. 4.2.2 M4F Core
  8. 5Results
    1. 5.1 Single Byte Single Channel
    2. 5.2 Single Byte Multi Channel
    3. 5.3 Multi Byte Single Channel
    4. 5.4 Multi Byte Multi Channel
  9. 6Summary
  10. 7References
  11. 8Revision History

Summary

The AM62x and AM62L is an ideal option for a wide range of embedded applications. Most of the embedded applications require to collect real world analog signals from sensors. This document presents steps followed to integrate a 8-bit and a 12-bit ADC using the MSM0 to the AM62x and AM62L processors. The integration addresses a critical limitation where the AM62x processor lacks any onboard ADC capability, while the AM62L processor has a ~10 ENOB ADC that may require higher 12-bit resolution for certain applications.

The solution architecture positions the AM62x/AM62L processors as the SPI controller (using either A53 or M4F cores) and the MSPM0L130x microcontroller as the peripheral device. Communication occurs via full-duplex SPI at speeds up to 50 MHz for the controller but limited to 16Mbits/s for the MSPM0L Peripheral. The system supports multiple operating modes including single-byte or multi-byte transfers combined with single-channel or multi-channel configurations, allowing monitoring of multiple analog inputs simultaneously. ADC sampling is timer-triggered with continuous data updates to maintain real-time performance.

The hardware setup requires either an SK-AM62x starter kit or AM62L EVM connected to an LP-MSPM0L1306 LaunchPad via SPI connections through expansion headers, along with analog signal sources for testing. Software implementation involves Linux kernel modifications for SPI driver support, device tree configuration for proper pin-muxing, CCS projects for both the MSPM0 peripheral and AM62x M4F core, and compiled executables for A53 core Linux userspace execution. The solution was successfully validated using sinusoidal and square wave test inputs (3.3Vpp at 2Hz frequency) for both the Controllers - SK-AM62x and AM62L, demonstrating accurate ADC data capture across all configuration modes with reliable performance at the maximum supported SPI speed.