High-resolution timer (HRTIM) RM0440
916/2126 RM0440 Rev 4
Section 27.3.17, while the Idle state can be entered when the burst mode or delayed
protections are active.
Figure 235. HRTIM output states and transitions
The FAULT and IDLE levels are defined as active or inactive. Active (or inactive) refers to
the level on the timer output that causes a power switch to be closed (or opened for an
inactive state).
The IDLE state has the highest priority: the transition FAULT → IDLE is possible even if the
FAULT condition is still valid, triggered by ODIS bit set.
The FAULT state has priority over the RUN state: if TxyOEN bit is set simultaneously with a
fault event, the FAULT state is entered. The condition is given on the transition IDLE →
FAULT, as in Figure 235: fault protection needs to be enabled (FAULTx[1:0] bits = 01, 10,
11) and the Txy OEN bit set with a fault active (or during a breakpoint if
DBG_HRTIM_STOP = 1).
The output polarity is programmed using POLx bits in HRTIM_OUTxR. When POLx = 0, the
polarity is positive (output active high), while it is active low in case of a negative polarity
(POLx = 1). Practically, the polarity is defined depending on the power switch to be driven
(PMOS versus NMOS) or on a gate driver polarity.
The output level in the FAULT state is configured using FAULTx[1:0] bits in HRTIM_OUTxR,
for each output, as follows:
• 00: output never enters the fault state and stays in RUN or IDLE state
• 01: output at active level when in FAULT
• 10: output at inactive level when in FAULT
• 11: output is tri-stated when in FAULT. The safe state must be forced externally with
pull-up or pull-down resistors, for instance.
Note: FAULTx[1:0] bits must not be changed as long as the outputs are in FAULT state.
MS32333V1
RUN State
ODIS
O EN = 1
O DS = X
ODIS
Fault (if FAULTx > 0)
OEN
OEN
(Fault or breakpoint*)
& (FAULTx[1:0] > 0)
or breakpoint*
Breakpoint*: this condition is valid only if DBG_HRTIM_STOP = 1
FAULT State
OEN = 0
ODS = 1
IDLE State
bit set
bit set
bit set
bit set
Txy prefix is omitted for clarity: (OEN = TxyOEN, ODIS = TxyODIS, ODS = TxyODS)
& OEN = 1
OEN = 0
ODS = 0