Why Output PWM Frequency in TMS320F28379D Controller dropping after deploying code ?
Mostra commenti meno recenti
I am using the GPIO DO Block, and the PWM Frequency is 4 kHz. After generating code from Simulink, deploying the Code to the TMS320F28379D Controller, and then observing the PWM frequency on the Oscilloscope, which shows around 1.3 kHz. Why is the PWM frequency dropping?
Risposte (1)
Kothuri
il 8 Mag 2025
0 voti
The GPIO DO Block which you are using is a Digital Output Block.
- If you are toggling the GPIO in software, the maximum frequency is limited by your model's step size and CPU speed.
- For accurate PWM, you should use dedicated PWM peripheral blocks provided in Simulink for the F28379D i.e, F2837xD ePWM block.
- These blocks configure the on-chip PWM peripherals, which can generate high-frequency PWM signals independent of the CPU and Simulink step size.
Please refer the below documentation for more info on ePWM block:
Categorie
Scopri di più su C2000 Microcontroller Blockset in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!