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.

TIDC-CC3200SMARTPLUG: What is the udma channel for ADC channel 2: 16 or 15 ?

Part Number: TIDC-CC3200SMARTPLUG
Other Parts Discussed in Thread: CC3200

Hello:

I am building a data logger on a CC3200 LAUNCHPAD and looking at the Smartplug files for a guideline. On the metrology.c file, lines 103 and 104, assign to the voltage measurement AdcChannelNum = ADC_CH2 and DmaChannelNum = UDMA_CH16_ADC_CH2 respectively. The current measurments uses adc channel 0 and dma channel 14 (lines 107 and 108).

However, the Technical Reference Manual SWRU367D, revision May 2018, on page 99, section 4.2.1, Figure 4-1 DMA Channel Assignment, indicates Channel 14 for ADC 0 and Channel 15 for ADC 2.

In summary, the smartplug code agrees with the technical reference manual for ADC channel 0, but not for ADC channel 2. Which one is correct?

Thanks,

Ramon

  • Hi Ramon,

    If you take a look at the ADC Register Mapping section of the TRM (table 13-1), you'll see that the register map actually uses ADC channels 0, 2, 4, and 6, which correspond to the 0-3 channels used in the software APIs.

    If you have configured pin 59 as ADC channel 2, this should use DMA channel 16.

    Best regards,

    Sarah

  • Sarah,

    Thanks again for your quick and accurate reply. All this channel numbering changes on pin mux aliases and register descriptions is quite confusing. I recall now that I had remarked that when reading the documentation, but I stumbled on it anyway.

    Happy Thanksgiving!

    Ramon