Figure 232. Hrtim Output States And Transitions - ST STM32G4 Series Reference Manual

Advanced arm-based 32-bit mcus
Hide thumbs Also See for STM32G4 Series:
Table of Contents

Advertisement

RM0440
Section
26.3.17, while the Idle state can be entered when the burst mode or delayed
protections are active.
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
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.

Figure 232. HRTIM output states and transitions

ODIS
bit set
RUN State
O EN = 1
O DS = X
Breakpoint*: this condition is valid only if DBG_HRTIM_STOP = 1
Txy prefix is omitted for clarity: (OEN = TxyOEN, ODIS = TxyODIS, ODS = TxyODS)
Figure
232: fault protection needs to be enabled (FAULTx[1:0] bits = 01, 10,
IDLE State
OEN = 0
ODS = 0
ODIS
OEN
bit set
bit set
OEN
bit set
Fault (if FAULTx > 0)
or breakpoint*
RM0440 Rev 1
High-resolution timer (HRTIM)
(Fault or breakpoint*)
& (FAULTx[1:0] > 0)
& OEN = 1
FAULT State
OEN = 0
ODS = 1
MS32333V1
873/2083
1040

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32G4 Series and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF