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.

ePWM and ADC timings in Delfino F28355

Other Parts Discussed in Thread: CONTROLSUITE

Hi,

i'm triggering the ADC conversion with the ePWM. the PWM period is 1us. however, when debugging in the CCS, the clock counts 1500 cycles = 10us between two ADC ISRs. i want it to happen every 1us. What is my problem? the TBPRD value of the pwm is 150.

br,

Israel

  • Israel,

    There is an adc_soc example project in controlSUITE that may help with your project. It can be found at controlSUITE\device_support\f2833x\v141\DSP2833x_examples_ccsv5\adc_soc

    If you haven’t already referred to it, I suggest comparing the code against your code for debugging.

    Elizabeth
  • Hi Israel,

    How many conversions do you have configured? Is the sequencer cascaded? Do you have the sequencer override bit set?

    Depending on the above, it may be possible that the ADC ISR is only coming one time every 10th trigger. Either way, a good debug strategy might be to enable the ePWM on a pin and observe on a 'scope while also having the ADC ISR toggle a GPIO. This will let you check if everything is happening at the expected relative frequency.