
Advanced-control timer (TIM1)
RM0453
766/1454
RM0453 Rev 2
Arming and re-arming break circuitry
The break circuitry (in input or bidirectional mode) is armed by default (peripheral reset
configuration).
The following procedure must be followed to re-arm the protection after a break (break2)
event:
•
The BKDSRM (BK2DSRM) bit must be set to release the output control
•
The software must wait until the system break condition disappears (if any) and clear
the SBIF status flag (or clear it systematically before re-arming)
•
The software must poll the BKDSRM (BK2DSRM) bit until it is cleared by hardware
(when the application break condition disappears)
From this point, the break circuitry is armed and active, and the MOE bit can be set to re-
enable the PWM outputs.
Figure 175. Output redirection (BRK2 request not represented)
Table 177. Break protection disarming conditions
MOE
BKDIR
(BK2DIR)
BKDSRM
(BK2DSRM)
Break protection state
0
0
X
Armed
0
1
0
Armed
0
1
1
Disarmed
1
X
X
Armed
MSv42028V2
BKIN inputs from
AF controller
BKF[3:0]
Filter
BKP
BKE
BRK
request
BIF flag
SBIF flag
System break request
Peripheral
break sources
AF
controller
mode control logic
MOE
BKBID
BKBDSRM
BRK request
System break request
Bidirectional
Break I/O
Other break inputs
Application break requests
Vss
Bidirectional
AF input
(active low)
AF output
(open drain)
Software break
requests: BG