Build ramp in Simulink for DSP implementation

I am using a counter limited block to make the angle signal for PWM generation. I use fixed point 32 bit signals, When I run the simulation in simulink the signal frequency is 60 Hz but when I run the DSP the signal output is 50 Hz. Do you know what I am missing here?

1 Commento

Hi Marzieh,
What is the number of bits by which you shift the signal coming into the Shift Arithmetic block?
Thanks!
Jag

Accedi per commentare.

Risposte (0)

Richiesto:

il 17 Dic 2019

Commentato:

Jag
il 9 Dic 2020

Community Treasure Hunt

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

Start Hunting!

Translated by