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.

TMS320F28P659DK-Q1: ADC Oversampling using Trigger repeater block and PPB block

Part Number: TMS320F28P659DK-Q1

Tool/software:

Hi,

I have tried the Example codes to oversample an ADC input channel using the trigger repeater block to generate repeated pulses using EPWM1 SOCA  as the trigger source, and PPB block to accumulate the sum and average it.
As mentioned in the TRM there is only 4 PPB block per ADC module to calculate the average of accumulated result.
Now, I have to use more than 10 ADC channels per module. In that case, are there any other provisions to use oversampling. 

I have also gone through Software oversampling, where multiple SOCs are configured to trigger the same ADC input channels. But that also wont be applicable in my case as i am already configuring 10 SOCs for  the 10 input ADC channels.
Thanks in Advance,

Regards,

Rupa

  • Hello Rupa,

    How many SOCs do you want to perform oversampling on? As you rightly noted, each ADC module has 2 repeater blocks and 4 PPBs. Repeater blocks can be used to trigger multiple SOCs, but a PPB can only accumulate one SOC at a time.

    If you really need to perform oversampling on more than 4 SOCs, one option might be to collect the ADC results into a small buffer using DMA, and then sum up the results in your DMA ISR.

    Best regards,
    Ibukun