AT32F435/437
Series Reference Manual
2022.11.11
Page 315
Rev 2.03
BRKV bit.
When a brake event occurs, there are the following actions:
The OEN bit is cleared asynchronously, and the channel output state is selected by setting the
FCSODIS bit. This function works even if the MCU oscillator is off.
Once OEN=0, the channel output level is defined by the CxIOS bit. If FCSODIS=0, the timer
output is disabled, otherwise, the output enable remains high.
When complementary outputs are used:
―
The outputs are first put in reset state, that is, inactive state (depending on the polarity). This
is done asynchronously so that it works even if no clock is provided to the timer.
―
If the timer clock is still active, then the dead-time generator is activated. The CxIOS and
CxCIOS bits are used to program the level after dead-time. Even in this case, the CxIOS and
CxCIOS cannot be driven to their active level at the same time. It should be note that because
of synchronization on OEN, the dead-time duration is usually longer than usual (around 2
clk_tmr clock cycles)
―
If FCSODIS=0, the timer releases the enable output, otherwise, it keeps the enable output; the
enable output becomes high as soon as one of the CxEN and CxCEN bits becomes high.
If the brake interrupt or DMA request is enabled, the brake statue flag is set, and a brake
interrupt or DMA request can be generated.
If AOEN=1, the OEN bit is automatically set again at the next overflow event.
Note: When the brake input is active, the OEN cannot be set, nor the status flag, BRKIF can be
cleared.
Figure 14-6 TMR output control
CxOUT(to GPIO)
holistic-out
enable state
CxEN
run state
frozen state
disable CxOUT
FCSOEN
0
1
1
0
holistic-out
disable state
active state
inactive state
state select
1
0
XOR
XOR
AND
CxIOS
CxP
CxCOUT(to GPIO)
1
0
holistic-out
enable state
CxCEN
frozen state
run state
1
0
holistic-out
disable state
state select
0
1
active state
CxCP
inactive state
CxCIOS
disable CxCOUT
FCSOEN
0
1
BRK
Clock failure event
From clock control CSS(Clock Security System)
OR
BRKV
polarity selection
BRKEN
break
trigger
break enable
OEN
break
event
AND
overflow event
AOEN
auto enable
CxCP
polarity select
CxP
polarity select
DTC(
dead time
)
CxORAW
OR
BRKEN
break
trigger
break enable
OEN
break
event
AND
overflow event
AOEN
auto enable
BRK
TMRx_BRK
BRKV
polarity selection
Clock failure event
From clock control CSS(Clock Security System)
1
0
GPIO output enable
TMRx_BRK
1
0
OR
AND
0
1
AND
OR
FCSODIS
CxCEN
CxEN
OR
AND
FCSOEN
FCSOEN
CxCE
GPIO output enable
TMR_CHx
TMR_CHxC
BKF
filter
BKF
filter