Hi, I am using STM32f401 DISCO board and trying to generate sine modulated PWM through MATLAB. I am getting sine modulated PWM but the issue is of frequency.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-09-24 12:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-09-24 1:18 AM
Then you are doing it wrong.
The more detailed you describe your problem, the better chances are to get useful answers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-09-24 1:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-09-24 2:03 AM
Please refer 1st simulation picture.I need sine modulated pwm for 10ms and zero output for remaining 10ms. But it is giving me pwm for 100ms and off time is 100ms. when I am changing the sampling time of sine source to 1ms then it is providing desired pwm.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-09-27 6:08 AM
​Hi @VSira​ ,
Could you also take a look at setting the solver step size in the configuration of your Simulink model.
Regards.
Cyril
