0
$\begingroup$

I want to sample an ADC channel multiple times in one PWM cycle.

I can trig any ADC channel in anywhere in my PWM timer counter now. But I want to trig and sample same channel in many times within a pwm period.

I tried to explain by drawing below. lt

Is there any solution for this?

Thanks and best regards

$\endgroup$
  • $\begingroup$ Have you tried the TI forums? That's the best place $\endgroup$ – Ben Jul 23 at 20:48
0
$\begingroup$

Assuming your PWM above is ePWM1.

1 - Configure ePWM2 to be synchronized to ePWM1. 2 - Adjust ePWM2 period to be N times smaller. 3 - Now trigger the ADC sampling to ePWM2. Assuming you sample on the bottom and top of ePWM2 triangle, you will sample twice per ePWM2 period and 2*N times per ePWM1 period.

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.