EmbDev.net

Forum: µC & Digital Electronics STM32-MAT/TARGET


Author: Vicky S. (Company: HIL) (vck)
Posted on:
Attached files:

Rate this post
0 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.

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig