How can I show PWM signal using c2000 F28379D?
12 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Cristina
el 2 de Mzo. de 2024
Comentada: Cristina
el 20 de Mzo. de 2024
Hi, I have tried to see a PWM signal but when simulating I get a 1 signal all the time.
I attach screenshots
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1633416/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1633421/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1633426/image.png)
I have connected pin 80 to pin 74 which are the GPIO0 and GPIO14 pins.
I know that the "ePWM" block is well configured because I have been able to see the output signal with an oscilloscope.
I hope you can help me, thank you in advance.
Cristina
0 comentarios
Respuesta aceptada
Sayan
el 13 de Mzo. de 2024
Hi Cristina,
If I am understanding it correctly, you are using a 4 kHz carrier frequency to generate the pwm. In this case, I can see you are using the GPIO digital input sample time of 0.1, which is very high for logging the PWM samples. Try to reduce the GPIO sample time to 1e-5 and log the signal in Simulink Data Inspector to visualize the signal. Ensure the GPIO block is configured correctly for the corresponding pin you are shorting.
You can find more information about GPIO in the following documentation.
Hope this helps to resolve the issue.
Más respuestas (0)
Ver también
Categorías
Más información sobre Spectral Measurements en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!