cancel
Showing results for 
Search instead for 
Did you mean: 

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?

DamageG
Associate II
 
2 REPLIES 2
KnarfB
Principal III

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

DamageG
Associate II

Thank you! I'll give it a try