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.

CCS/TMS570LS1227: adc pin

Part Number: TMS570LS1227


Tool/software: Code Composer Studio

hello

I want to run and check each pin in the adc pin map.

So I found out that ad1evt works. (adcREG1->EVTOUT = 1U; ,adcREG1->EVTOUT = 0U) (on,off)

What should I do for the rest of the ad1in [1 ~ 23]/ad2in[0~15] pins? 

I want to operate it one by one and see if it works.

Thanks.

  • example) i want to operate AD1IN[23]/AD2IN[7] pin num 84. 

    How can I turn on / off in sys_main.c? (i want to use adc1GROUP1 and adc2GROUP2 all channel(0~23,0~15)

    i already check adcGROUP1 channel 23 and adcGROUP2 channel 7.

    and is it right AD2IN = adc2 group 1?

    or adc1 group2?

  • Hello,

    I am sorry for late response. 

    AD1IN[[23] and AD2IN[7] share the ADC channel at pin 84. The input signal at pin 84 goes to bot ADC1 module and ADC2 module. This signal can be sampled with both ADC1 and ADC2.

    ADCxIN[x] is used as input, you can not control this signal for example to pull-up or pull-down this pin.

    The ADC module supports three conversion groups for this purpose – Group1, Group2 and the Event Group. Any of the available analog input channels can be assigned to any of the conversion groups. This also allows a particular channel to be repeatedly sampled by selecting it in multiple groups.

    There is an inherent priority scheme used when multiple conversion groups are triggered at once. The Event Group is the highest-priority, followed by the Group1 and then the Group2.

    So you can sample AD1IN[23] using ADC1 group1, or group2, or event group, and sample ADC2IN[7] using any ADC2 group.