Part Number: TMS320F28379D
good day engineers I perform a spwm modulation with a carrier frequency of 10 kHz for triangular signal and a sinusoidal 60 Hz reference when sampling the signal with sampling time 1/100000 for fixed passage. In the output, that is, in the gpios I get different frequencies (very low and unrelated) with the expected ones and seen from Simulink. the frequency changes at the time of building the model which I do directly from simulink the signal comes out the right way but it changes the frequency to the view in the simulink scope How could I correct this error or what am I doing wrong? the strange thing is that some signals if they come out with the expected frequency for example if I change the carrier of 10khz by 4khz and kill it with 1/16000 s the output in the gpio is correct in form and frequency I verify this with assycilloscope. but if I choose carrier frequency of 10khz in any way and managed to obtain that frequency in the gpio thus vary the sampling time all this for fixed step in configurations of parameters for tms320f28379d I thank you in advance for your attention.
Annex more detailed explanation with images of simulink and output in oscilloscope, I have no problem to build the model in the microcontroller is just changing the frequency.
(Please visit the site to view this file)