AT32F421
Series Reference Manual
2022.11.11
Page 224
Rev 2.02
Figure 14-69 Complementary output with dead-time insertion
Delay
Delay
C1ORAW
C1OUT
C1COUT
Delay > positive pulse
C1OUT
C1COUT
C1ORAW
C1OUT
C1COUT
C1ORAW
Delay > negative pulse
14.4.3.5 TMR brake function
When the brake function is enabled (BRKEN=1), the CxOUT and CxCOUT are jointly controlled by OEN,
FCSODIS, FCSOEN, CxIOS and CxCIOS. But, CxOUT and CxCOUT cannot be set both to active level
at the same time. Please refer to
for more details.
The brake source can be the brake input pin or a clock failure event. The polarity is controlled by the
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.