ePWM-triggered ADC interrupt frequency incorrect in C2000 Simulink model (worked earlier)

20 vues (au cours des 30 derniers jours)
Pratyush
Pratyush le 27 Déc 2025 à 8:25
I am using a TI C280x/C2833x target in MATLAB/Simulink 2024b.
My system timing is driven as follows:
  • ePWM (hardware module ePWM1) generates SOCA
  • SOCA triggers ADC start of conversion
  • ADC end-of-conversion interrupt is used as the main ISR via C28x Hardware Interrupt block
  • This ISR runs the control algorithm
The configuration details are:
  • SYSCLK = 150 MHz (PLL enabled, auto-configured)
  • HSPCLK = SYSCLK / 2
  • ePWM:
  • Up-count mode
  • TBPRD = 2083
  • TBCLKDIV = 4
  • HSPCLKDIV = 1
  • SOCA enabled at CTR = ZERO, first event
  • ADC:
  • Sequential mode
  • Start of conversion = ePWMxA
  • Interrupt posted at end of conversion
Issue:
The actual interrupt execution frequency is incorrect, regardless of the frequency I compute or expect from TBPRD and clock settings. The model runs stably, but the ISR rate does not match the configured PWM frequency.
This same model previously worked correctly (older MATLAB version / earlier project), and there are no math or algorithm changes.

Réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by