• Menu
  • Product
  • Email
  • PDF
  • Order now
  • Simultaneous Sampling of ADCs

    • SSDA007 June   2025 MSPM0G1505 , MSPM0G1506 , MSPM0G1507 , MSPM0G1518 , MSPM0G1519 , MSPM0G3505 , MSPM0G3506 , MSPM0G3507 , MSPM0G3518 , MSPM0G3519

       

  • CONTENTS
  • SEARCH
  • Simultaneous Sampling of ADCs
  1.   1
  2. 1Description
  3. 2Required Peripherals
  4. 3Design Steps
  5. 4Design Considerations
  6. 5Software Flowchart
  7. 6Application Code
  8. 7Additional Resources
  9. 8E2E
  10. 9Trademarks
  11. 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

Simultaneous Sampling of ADCs

1 Description

This subsystem demonstrates how to simultaneously sample signals across 2 ADC instances by utilizing the event fabric of the MSPM0. This process reduces time skew and keeps the signals in phase, simplifying calculations for applications such as E-metering, motor control, or medical signal processing.

MSPM0G3519 Simultaneous Sampling
                    Functional Block Diagram Figure 1-1 Simultaneous Sampling Functional Block Diagram

2 Required Peripherals

This application requires two integrated ADCs, a DMA module with at least two channels, and a TIM module.

Table 2-1 Required Peripherals
Sub-block FunctionalityPeripheral UseNotes
Analog Signal Capture(2×) ADCShown as ADC12_0_INST and ADC12_1_INST in code
Memory

Transfer

(1×) DMAShown as DMA in code
Event Timer(1x) TIMShown as TIMER_0_INST in code

3 Design Steps

  1. Determine the configuration for the ADCs including reference source, reference value, resolution, and sampling rate based on the given analog input and design requirements.
  2. Determine the period of the timer that triggers the ADCs based on design requirements.
  3. Generate two array buffers with sizes matching those of the DMA transfer size to store all of the ADC conversion results.
  4. In SysConfig, configure the timer as an event publisher to a 1:2 channel and have each ADC configured as a subscriber to the same channel.
  5. Write Application Code to start the timer and process the simultaneously sampled data.

4 Design Considerations

  1. Maximum Sampling Speed: The sampling speed of the ADC is based on input signal frequency, analog front end, filters, or any other design parameters that affect sampling.
  2. ADC Reference: Choose the reference to align with the expected maximum input to utilize the full scale range of the ADC.
  3. Clock Settings: The clock source determines the total time for the conversion. The clock divider in tandem with the SCOMP setting determines the total sampling time. SysConfig sets the appropriate SCOMP depending on the sampling time setting.
  4. Timer Period: The timer period is based on how frequently the system needs to sample the input signals. Different combinations of Timer Clock Divider and Timer Clock Prescaler in SysConfig can provide the desired resolution.

 

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