STM32-MAT/TARGET

OP (Company: HIL) #5985885
Rate this post
• ▲ useful
▼ not useful
Hi, I am trying to generate sine modulated PWM on STM32F401-Disco board 
using MATLAB. The desired freq of a sine wave is 50Hz and of the carrier 
wave is 20kHz. But I am not getting 50Hz freq. Please suggest a 
solution.



I need sine modulated PWM during +ve half cycle of a sine wave and zero 
output during -ve cycle of a sine wave. Desired samples of sine are 200. 
I have attached the MATLAB simulation circuit snapshot. Problem is that 
I am getting 5Hz freq.
Attached files:

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.