PWM on STM8L15
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-18 9:40 AM
Hello, I have a problem with setting up PWM on the general purpose timer. I tried setting PWM on timers 2 and 3 using different channels, but I didn't see a PWM signal at the output. I also tried setting up PWM from timer 1 and it worked, but I only need PWM from timer 3. I am using STM8L151K4. I attach the code below.
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-02 1:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-02 1:01 PM
You also need TIM2_CtrlPWMOutputs(ENABLE);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-03 6:01 AM
Thank you! It's now works
