STM32F411E Disco Board - PWM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-01 8:21 PM
I have been trying to get a PWM output from PE9 by following some example online. However no PWM output at PE9 pin. The desires PWM frequency is 20kHz and duty cycle is 50%. Any suggestion what is the problem ?. Thanks.
Solved! Go to Solution.
- Labels:
-
STM32F4 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-02 12:55 AM
Are you sure that PE9 is not used by anything else on the Disco board?
Check the User Manual and Schematics.
Can you toggle it using just a simple GPIO write?
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-01 11:50 PM
The period is 50 and TIM1->CCR1 = 50; This won't work. For 50% PWM set period to 50-1 and TIM1->CCR1 = 25;
hth
KnarfB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-02 12:55 AM
Are you sure that PE9 is not used by anything else on the Disco board?
Check the User Manual and Schematics.
Can you toggle it using just a simple GPIO write?
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-02 1:13 AM
Yes .. you are right. I overlooked this value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-02 1:18 AM
I had checked the schematic, PE9 is free and it is not used for other things. As mentioned by KnarfB, i had set the pulse width to 100%. Hence i only see a straight line instead of a PWM signal. I did though to toggle using simple GPIO write but i need to vary the pulse width.
