I'm using an STM32L412 and would like to start and stop a PWM output through software. Is it possible to use TIM16 and control the break function through software?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-14 12:48 PM
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-14 1:03 PM
The timer EGR register has a BG (break generation) bit for that. See reference manual.
Alternatively you migth use the MOE bit to set the output to idle state.
hth
KnarfB
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-14 1:17 PM
Thank you! I'll give it a try
