• Menu
  • Product
  • Email
  • PDF
  • Order now
  • ADC to SPI

    • SLAAEB2A December   2023  – August 2025 MSPM0C1106 , MSPM0G1105 , MSPM0G1106 , MSPM0G1107 , MSPM0G1505 , MSPM0G1506 , MSPM0G1507 , MSPM0G1518 , MSPM0G1519 , MSPM0G3105 , MSPM0G3105-Q1 , MSPM0G3106 , MSPM0G3106-Q1 , MSPM0G3107 , MSPM0G3107-Q1 , MSPM0G3505 , MSPM0G3505-Q1 , MSPM0G3506 , MSPM0G3506-Q1 , MSPM0G3507 , MSPM0G3507-Q1 , MSPM0G3518 , MSPM0G3518-Q1 , MSPM0G3519 , MSPM0G3519-Q1 , MSPM0L1105 , MSPM0L1106 , MSPM0L1303 , MSPM0L1304 , MSPM0L1305 , MSPM0L1306 , MSPM0L1343 , MSPM0L1344 , MSPM0L1345 , MSPM0L1346

       

  • CONTENTS
  • SEARCH
  • ADC to SPI
  1.   1
  2.   2
  3.   Revision History
  4.   Trademarks
  5. IMPORTANT NOTICE
search No matches found.
  • Full reading width
    • Full reading width
    • Comfortable reading width
    • Expanded reading width
  • Card for each section
  • Card with all content

 

Subsystem Design

ADC to SPI

Description

The ADC to SPI subsystem example demonstrates how to use the internal ADC to convert an analog signal into a digital representation and transfer the result through SPI. The example configures the MCU to act as an external ADC, receive SPI commands from a SPI controller, and execute the received command accordingly. With simple example commands provided, users can utilize the framework to implement their own commands. Optionally, the MCU can also process the ADC data before transmitting the data through SPI, which is especially useful in applications that need to process the raw data into meaningful values. Download the code for the ADC to SPI example.

The following figure shows a block diagram of the system.

 Subsystem Functional Block Diagram Figure 1-1 Subsystem Functional Block Diagram

Required Peripherals

The application requires the internal ADC and 1 instance of the SPI.

Sub-block Functionality Peripheral Used Notes
Analog signal capture ADC Called ADC12_0_INST in code
Sending ADC data SPI Device is the peripheral for this example

Design Steps

  1. Determine the configuration for the ADC including reference source, reference value, and sampling rate based on the expected analog input and design requirements.
  2. Configure the ADC in SysConfig based on requirements in the previous step.
  3. Configure the SPI peripheral in SysConfig, setting the SPI in peripheral mode.
  4. Write Application Code to transfer the ADC data from the memory registers to transmit through SPI. Optionally add commands to perform different tasks. See the Software Flowchart for an overview or view the code directly.

Software Flowchart

 Application Software Flowchart Figure 1-2 Application Software Flowchart

Additional Resources

  • Download the MSPM0 SDK
  • Learn more about SysConfig
  • MSPM0L1306
  • MSPM0G3507
  • MSPM0 ADC Academy
  • MSPM0 SPI Academy

Revision History

Changes from Revision * (December 2023) to Revision A (August 2025)

  • Removed Compatible Devices sectionGo

 

Texas Instruments

© Copyright 1995-2025 Texas Instruments Incorporated. All rights reserved.
Submit documentation feedback | IMPORTANT NOTICE | Trademarks | Privacy policy | Cookie policy | Terms of use | Terms of sale