This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LP-MSPM0G3507: Can we used ADC0 and ADC 1 at a time

Part Number: LP-MSPM0G3507
Other Parts Discussed in Thread: MSPM0G3507

Dear sir , 

1) I am using MSPM0G3507 launchpad .

2) I am using ADC sequence conversion example code . only ADC 0 is working with different memory location . if I initialize ADC1 in same code only ADC 0 is working . Can we use it simontanously or not .

3) Can we used same address  memory location for both ADC 0 and ADC 1. will it work with different location .

4) If you have any code having both ADC are using please refer is me . its is easy for me to understand my location.

  • Hi Aryan,

    I recommend looking at the example code adc12_simultaneous_trigger_event, this example code will initialize both ADCs and start them based on a single timer trigger event so they run simultaneously.

    1. What do you mean by same memory address? Are you referring to where you store the data?
      1. If so you can use the same array to store data but you would want to partition it so you aren't overwriting data.

    Regards,

    Luke

  • As per your feedback, I checked but the data is not continuous. I have to read the ADC value continuously.  As per my setup, I want to read both ADC0 and ADC 1 at a time and continuously.  If I am trying to initialize both ADC in sequence Conversion example code only ADC 0 is working. Please  Refer me a code having trigger source software and both ADC will read data at a time.

  • Hi Aryan,

    You will need to use the DMA and the ADC repeat mode in order to continuously sample and move data without CPU intervention.

    I recommend looking at the adc12_max_freq_dma example and the MSP Subsystem ADC DMA ping pong. 

    Default path for the ADC DMA Ping pong example - C:\ti\mspm0_sdk_1_30_00_03\examples\nortos\LP_MSPM0G3507\msp_subsystems\adc_dma_ping_pong

    You'll need to adjust these examples, but the DMA ping pong example can show how to shuffle data between 2 buffers. The simultaneous example I provided earlier to link make both ADCs run simultaneously and the adc12_max_freq_dma example for a simpler version of the DMA ping pong.

    Regards,

    Luke

  • Thankyou for the update sir . I will try let you know