Tool/software: Code Composer Studio
Hi TI experts,
I have a program with 50kHz PWM and 25kHz ADC sampling frequency. It works well. The logic flow is straightforward. The ePWM module is programmed to have a frequency of 50kHz, and it triggers the ADC SOC every other time when the ePWM counter reaches zero. Then the ADCISR, triggered by ADC EOC at a frequency of 25kHz, serves as the main ISR.
Now I need to increase the PWM frequency to 100kHz. However, the main ISR will not be able to finish in 20us (50kHz). So my question is how to get 100kHz PWM while keeping the main ISR frequency unchanged at 25kHz?
It seems ADC SOC can be triggered every, every second, and every third time the ePWM counter reaches zero, not every fourth. Any quick and easy way to work around it without getting into too much trouble like interrupt nesting?
Thank you for your help in advance.