STM32 Advanced Timer Features Explained
In the previous article, STM32 Timer DMA Explained, a timer event requested a DMA transfer that changed a PWM duty cycle without any work from the CPU. The PWM signals in that article drove an LED, where a wrong value or an unexpected output level has no serious consequences. A PWM signal that drives a motor or a power converter is different, because the timer output controls power switches that can be destroyed when the signal is wrong for even a very short time.
Some STM32 timers include extra hardware for exactly this kind of work. The hardware produces paired output signals, keeps them from overlapping, and switches them off when a fault signal arrives. All of this happens inside the timer without any help from the CPU. These features are the reason why motor-control and power-conversion projects usually start with an advanced-control timer and not with a general-purpose one.
In this article, we will first look at what separates an advanced-control timer from a general-purpose timer. After that, we will see complementary outputs, dead time, and the break input in the order in which a power stage uses them. Then we will look at the off-state settings, the automatic output enable, and the repetition counter. The article stays conceptual and does not document every bit field, because the exact registers and limits depend on the MCU. The examples need only a logic analyzer, and we do not build a power stage. This article is part of the STM32 timer tutorial series.
Table of contents
What Makes an Advanced Timer Different
A general-purpose timer, as described in STM32 Timer Types Explained, has a counter, a prescaler, an auto-reload register, and several capture/compare channels. Each PWM channel drives one pin, and the channels do not know anything about each other. This structure is enough for LED dimming, servo pulses, and many other tasks. The same counter and compare logic is also the base of an advanced-control timer, so everything from STM32 PWM Mode Explained still applies.
An advanced-control timer adds hardware around this core that was designed for motor control and power conversion. The most important additions are complementary outputs, a dead-time generator, a break input, and a repetition counter. Many of these timers also provide a commutation event for brushless motor control, which we will not cover in this article.
The exact feature set depends on the MCU. For example, on many STM32F4 devices, the advanced-control timers are TIM1 and TIM8, while other families use different instances. A feature that exists on one device may be missing or may work differently on another, so the timer chapter of the reference manual and the datasheet of the selected MCU are the reliable sources.

The figure above shows the main idea of the whole article. The compare logic still produces a reference signal, and the new hardware between this signal and the pins decides what the two outputs of the channel will look like.
Test Setup for the Examples
The examples in the following sections use TIM1 on the NUCLEO-F446RE, which is an advanced-control timer on the STM32F446. Every example is checked with a logic analyzer that is connected to the timer pins. The system clock is set to 180 MHz in the Clock Configuration tab, which gives TIM1 a timer clock of 180 MHz. You should confirm this value in your own clock tree. The signals and the pins are listed in the table below.
| Signal | Pin | Used in |
|---|---|---|
| TIM1_CH1 | PA8 | All examples |
| TIM1_CH1N | PA7 | All examples |
| TIM1_BKIN | PA6 | Break and off-state examples |
| Debug output | PB0 | Repetition counter example |
| User button B1 | PC13 | Break restart example |
Complementary PWM Outputs
An advanced-control timer channel can drive two pins instead of one. The first pin is the main output, which is called CH1 for channel 1, and the second pin is the complementary output, which is called CH1N. Both outputs are created from the same internal reference signal, and the complementary output is the inverse of the main output. When CH1 is active, CH1N is inactive, and when CH1 becomes inactive, CH1N becomes active. This is the pattern that a half-bridge needs, because one output drives the high-side switch and the other output drives the low-side switch of the same phase.

It is important to understand that complementary outputs are not simply two PWM channels that happen to be set to opposite values. Two independent channels, such as CH1 and CH2, would each have their own compare register, their own polarity, and their own start and stop behavior, and the firmware would have to keep them consistent by hand. A single mistake or a single late register write could then produce a moment where both outputs are active. In a complementary pair, the duty cycle is defined once, the second signal follows from the first one in hardware, and the dead-time generator that is described in the next section acts on exactly this pair. The polarity and the enable bit of the main and the complementary output are still separate, which lets the firmware adapt the signals to gate drivers with different input logic.
The complementary pins are alternate functions of specific GPIO pins, and not every channel has one. On many devices the complementary output exists only for the first few channels. The article STM32 GPIO Alternate Function Pins explains how to read the alternate function table, and this table should be checked before the schematic is drawn. In HAL, the function HAL_TIM_PWM_Start() starts the main output, and the function HAL_TIMEx_PWMN_Start() starts the complementary output of the same channel.
Configure Complementary Outputs
The first practical test uses TIM1 with complementary outputs and no dead time, so that the relation between the two signals is visible without any other feature. In STM32CubeMX, set the Clock Source of TIM1 to Internal Clock, set Channel1 to PWM Generation CH1 CH1N, and assign the pins PA8 and PA7 to CH1 and CH1N. The parameters in the table below give a PWM frequency of 20 kHz at a duty cycle of 30 percent.
| Parameter | Value | Result |
|---|---|---|
| Prescaler | 0 | The counter runs at 180 MHz |
| Counter Mode | Up | Edge-aligned PWM |
| Counter Period | 8999 | 180 MHz divided by 9000 counts gives 20 kHz |
| Pulse | 2700 | 2700 divided by 9000 gives 30 percent |
| Dead Time | 0 | No gap between the outputs yet |

Both outputs keep their default high polarity, so CH1 is high while the counter is below the pulse value, and CH1N is high during the remaining time. The outputs are started with the two HAL functions below.
|
1 2 |
HAL_TIM_PWM_Start(&htim1, TIM_CHANNEL_1); HAL_TIMEx_PWMN_Start(&htim1, TIM_CHANNEL_1); |
Check the Outputs on a Logic Analyzer
Connect one analyzer channel to PA8 and another to PA7. Connect the ground wire and start a capture with a trigger on the rising edge of CH1. A capture of about 200 ยตs shows four PWM periods, which is enough for the first measurements. The period of CH1 should measure 50 ยตs, CH1 should stay high for about 15 ยตs, and CH1N should stay high for the remaining 35 ยตs. The rising edge of one signal and the falling edge of the other fall on the same sample, which shows that CH1N is the exact inverse of CH1.

Two further checks show how the pair behaves. When the capture is zoomed into one edge, the two signals change at the same instant, which is exactly the condition that a power stage must never see. This is the reason why the next section adds dead time. If we change the compare value at run time with __HAL_TIM_SET_COMPARE(&htim1, TIM_CHANNEL_1, 4500);, both signals will change together, and each of them will be high for 25 ยตs. This is because one compare value controls the whole pair and that the complementary output is not a second independent channel.
Dead Time Insertion
Why Dead Time Is Needed
A half-bridge consists of two power switches in series between the supply voltage and ground. The load is connected to the point between the switches, and the high-side and the low-side switch are turned on alternately to give this point either the supply voltage or ground. If both switches conduct at the same time, the supply is connected directly to ground through two low-resistance devices. This condition is called shoot-through, and it can destroy a switch within microseconds.

A timer that outputs perfectly opposite signals still does not keep the two switches apart. When the gate signal of a MOSFET falls, the gate has to discharge before the channel stops conducting. This can take anywhere from tens to hundreds of nanoseconds, depending on the gate resistor and the gate charge. On top of that, the gate driver adds a delay of its own. If the second switch is turned on at the same moment the first one is turned off, there is a short window in which both are partly conducting, and the supply sees almost a short circuit through them. The fix is simple in principle, because the timer only has to wait a little between turning one switch off and turning the other one on.
How Dead Time Works
The dead-time generator sits between the reference signal and the output pins, as the block diagram earlier in this article shows. It does not delay the moment an output turns off, only the moment an output turns on, so the switch that is leaving always gets a head start. When the reference signal changes direction, the active output turns off immediately, the timer waits for the configured dead time, and only then does the other output turn on.

Dead time has a side effect that every motor-control design has to live with. The time in which both switches are off is lost for the active pulse, so the real output pulse is shorter than the compare value describes. If the dead time is longer than the requested pulse, the pulse is not generated at all. Motor control algorithms often compensate for this loss, because it shows up as a small voltage error and as distortion in the phase current.
Configure Dead Time
The dead-time generator is configured in the break and dead-time register of the timer (BDTR), which also holds the break and output-enable settings described later. The dead time itself is stored in a small field of this register. On several families the field is not linear, because it uses different step sizes for different ranges, so a short field can cover both very small and very large delays. The time a value produces depends on the dead-time clock, which comes from the timer clock through the clock division setting, and some families add more options or a different range. For this reason we do not give a formula here, and you should take the encoding for your MCU from its reference manual.
STM32CubeMX collects these settings in one place. The steps below are a typical walkthrough for a first test.
- Select the advanced timer (TIM1), set the Clock Source to Internal Clock, and choose PWM Generation CH1 CH1N for Channel1, which enables both outputs of the channel.
- Keep the Prescaler, Counter Mode, Counter Period, and Pulse values from the previous section, and set the Clock Division to No Division.
- Open Break And Dead Time management and enter 90 as the Dead Time, and leave the break and off-state settings at their defaults for now.

CubeMX passes the dead-time entry to HAL, and in many HAL versions this number is written to the register field without conversion, so it is the encoded register value and not a time in nanoseconds. On the STM32F446 with a clock division of 1, the dead-time clock period equals the timer clock period. It is about 5.56 ns at 180 MHz, and the values from 0 to 127 count in single steps of this period.
The value 90 therefore gives about 500 ns. This holds only for this device and this range of the field, because larger values use coarser steps, so confirm the encoding in RM0390 and do not copy it to other families. The code below shows how the settings appear in the generated code.
|
1 2 3 4 5 6 7 8 9 10 11 12 |
TIM_BreakDeadTimeConfigTypeDef sBreakDeadTimeConfig = {0}; sBreakDeadTimeConfig.OffStateRunMode = TIM_OSSR_DISABLE; sBreakDeadTimeConfig.OffStateIDLEMode = TIM_OSSI_DISABLE; sBreakDeadTimeConfig.LockLevel = TIM_LOCKLEVEL_OFF; sBreakDeadTimeConfig.DeadTime = 90; sBreakDeadTimeConfig.BreakState = TIM_BREAK_DISABLE; sBreakDeadTimeConfig.BreakPolarity = TIM_BREAKPOLARITY_HIGH; sBreakDeadTimeConfig.AutomaticOutput = TIM_AUTOMATICOUTPUT_DISABLE; if (HAL_TIMEx_ConfigBreakDeadTime(&htim1, &sBreakDeadTimeConfig) != HAL_OK) { Error_Handler(); } |
The value 90 is used only for the logic analyzer test on this device. The polarity, the break settings, and the off-state options have to be decided from your schematic and the gate driver documents.
The code inside the main function will remain the same as the previous section. We will start the TIM1 output with the two HAL functions.
|
1 2 |
HAL_TIM_PWM_Start(&htim1, TIM_CHANNEL_1); HAL_TIMEx_PWMN_Start(&htim1, TIM_CHANNEL_1); |
Check Dead Time on a Logic Analyzer
Repeat the capture with the same probes on PA8 and PA7, but use the highest sample rate the analyzer offers. Trigger on the falling edge of CH1 and zoom in until you can see single samples.

The falling edge of CH1 is now followed by a gap, and CH1N rises about 500 ns later. At the opposite transition, CH1N falls first and CH1 rises about 500 ns later.
Three small changes show how the dead-time field behaves.
- Changing the value from 90 to 45 should halve the gap to about 250 ns.
- Changing it to 180 does not give 1 ยตs on this device, as a linear scale would suggest. It is because this part of the field uses coarser steps, and the result is roughly 1.3 ยตs according to the encoding in the reference manual. This is why you should never treat the register value as a plain multiplier.
- Setting the Pulse value to 50, which is a pulse of about 280 ns and shorter than the dead time, keeps CH1 low completely and leaves only a short low notch on CH1N. This matches the rule that a pulse shorter than the dead time is not generated.

Choosing a Safe Dead-Time Value
The right dead time depends on the power stage and not on the timer. It has to be longer than the time the switch needs to turn off completely, plus the difference in gate driver propagation delay between the turn-on and the turn-off path. It also has to cover how these times change with temperature and load current. The gate resistor, the gate driver, the layout, and the type of switch all change these numbers. So a value that works for one MOSFET and driver combination can be dangerous with a slower one.
Start with the datasheets of the power switch and the gate driver, which list the turn-off delay, the fall time, and the propagation delays with their worst-case values. Choose a dead time with a margin above the sum of these values and then confirm it by measurement, which means watching the gate-source voltages of both switches on an oscilloscope and checking that they never overlap. A dead time that is too short risks shoot-through, and one that is too long wastes output voltage and adds distortion and losses in the body diodes. Some gate drivers contain their own shoot-through protection or a fixed minimum dead time.
Break Input and Fault Handling
The break input is the emergency stop of the advanced timer. It is a pin, or on some devices an internal source such as a comparator, that tells the timer about a fault. When the signal becomes active at the configured level, the timer forces its outputs into a configured safe state. The timer hardware does this on its own, without waiting for the CPU or an interrupt handler, which is the main difference between a break input and a fault check in firmware.
Typical break sources are an overcurrent comparator watching a shunt resistor, the fault pin of a gate driver, an overtemperature switch, or an overvoltage detector on the supply. The timer can also raise a break interrupt, so the firmware can log the event and decide how to continue, but by then the outputs have already been switched off.

The details of the break input depend strongly on the MCU. The active polarity is configurable, and an input filter can ignore very short glitches at the price of a slightly slower reaction. Some devices offer a second break input, extra internal sources, and lock levels, which let you write the break settings once and protect them against later changes until the next reset. The polarity needs more attention, because a fault signal that is active when the wire is disconnected or the pin is floating is safer than one that needs a working connection to trigger. Whatever you choose, the pin should always have a defined level, either through a pull resistor or through the driving circuit.
After a break event the timer does not restart the outputs on its own unless we configure it to. The firmware has to clear the break flag, check that the fault is gone, and enable the outputs again on purpose.
Configure the Break Input
This example builds on the same TIM1 project and adds the break pin. The steps below show the settings.
- Assign PA6 to TIM1_BKIN and set its GPIO Pull-up/Pull-down to Pull-down, so that the pin stays inactive until a jumper wire connects it to 3.3 V.
- In Break And Dead Time management, set BRK State to Enable, BRK Polarity to High.
- Set Off State Selection for Idle Mode (OSSI) to Enable and Automatic Output State to Disable, and keep the dead time at 90.
- In the settings of Channel 1, set CH Idle State and CHN Idle State to Reset, so that both outputs go low when the break is active.
- In the NVIC Settings, enable the TIM1 break interrupt and TIM9 global interrupt.

The changed fields appear in the generated code as shown below.
|
1 2 3 4 5 6 7 8 9 10 11 |
sBreakDeadTimeConfig.OffStateRunMode = TIM_OSSR_DISABLE; sBreakDeadTimeConfig.OffStateIDLEMode = TIM_OSSI_ENABLE; sBreakDeadTimeConfig.LockLevel = TIM_LOCKLEVEL_OFF; sBreakDeadTimeConfig.DeadTime = 90; sBreakDeadTimeConfig.BreakState = TIM_BREAK_ENABLE; sBreakDeadTimeConfig.BreakPolarity = TIM_BREAKPOLARITY_HIGH; sBreakDeadTimeConfig.AutomaticOutput = TIM_AUTOMATICOUTPUT_DISABLE; if (HAL_TIMEx_ConfigBreakDeadTime(&htim1, &sBreakDeadTimeConfig) != HAL_OK) { Error_Handler(); } |
The firmware enables the break interrupt of the timer, records the event in the break callback, and restarts the outputs only when the break pin is low again and the user button is pressed. The NVIC checkbox in CubeMX only enables the interrupt in the processor, and the interrupt enable bit of the timer itself has to be set in code. This models the deliberate decision a real design should make after a fault.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
/* USER CODE BEGIN 0 */ volatile uint8_t break_seen = 0; void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim) { if (htim->Instance == TIM1) { break_seen = 1; } } /* USER CODE END 0 */ int main() { .... /* USER CODE BEGIN 2 */ HAL_TIM_PWM_Start(&htim1, TIM_CHANNEL_1); HAL_TIMEx_PWMN_Start(&htim1, TIM_CHANNEL_1); __HAL_TIM_ENABLE_IT(&htim1, TIM_IT_BREAK); /* USER CODE END 2 */ /* USER CODE BEGIN WHILE */ while (1) { /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ if (break_seen && HAL_GPIO_ReadPin(GPIOA, GPIO_PIN_6) == GPIO_PIN_RESET && HAL_GPIO_ReadPin(B1_GPIO_Port, B1_Pin) == GPIO_PIN_RESET) { break_seen = 0; __HAL_TIM_MOE_ENABLE(&htim1); } } /* USER CODE END 3 */ } |
Depending on the device, the break flag can be set again while the input is still active, so keep the callback short. If you set the polarity to Low while the pull-down is in place, the break is active from the start and the outputs never run, which is a common mistake in a first test.
Trigger a Break on the Logic Analyzer
Add PA6 as a third analyzer channel and start the capture. Touch the jumper wire from 3.3 V to PA6.
Before the trigger, CH1 and CH1N run as a complementary pair with the 500 ns gaps. When PA6 rises, both outputs go low at once, even in the middle of a pulse, and they do not wait for the end of the PWM period. This shows that the timer hardware carries out the reaction.

When we remove the jumper, PA6 goes back to low. But the outputs stay low until we press the user button, because the automatic output enable is off. When the button is pressed, the output starts again.
Off-State and Automatic Output Enable
An advanced timer has a master output enable bit (MOE), which works like a main switch for all outputs of the timer. When this bit is cleared, as it is after a break event and before the timer is started, the compare logic does not drive the outputs. The off-state selection bits then decide what the pins do. Depending on the settings, the outputs are forced to a configured idle level, or they are released from the timer. In the latter case, the pin level depends on the GPIO configuration and on any external pull resistors. A separate setting for run mode controls what a channel does when its own output is disabled while the master enable is still set.
The idle level of each output is configured separately, and we have to choose it so that the power switches are off, taking the signal polarity and any inversion in the gate driver into account. A level that looks harmless in the timer settings can turn a switch on if the driver inverts the signal. For this reason the startup and shutdown states belong to the hardware design and not only to the timer configuration.
The automatic output enable lets the timer set the master enable again by itself. When it is enabled, the master enable is set automatically at the next update event as long as the break input is no longer active. HAL sets the master enable inside its start functions, so this setting matters for what happens after a break event. Automatic re-enabling can be convenient, but it also means the bridge restarts without any decision from the firmware. Many power designs keep it disabled so the restart happens only after someone has looked at the fault.
Test Automatic Output Enable
For this test, set Automatic Output State to Enable and repeat the break test without pressing the button.

When we remove the jumper and PA6 returns to low, the PWM restarts by itself at the next update event, which is within one PWM period of 50 ยตs, and no firmware is involved.

The capture shows a short interval with both outputs low, followed by the normal complementary pattern. This is convenient in a small test, but it also shows why many power designs keep the setting disabled, because the bridge starts switching again the moment the fault signal disappears, without any check from the firmware.
The timer and a complete safety system are not the same thing. The timer controls only its own pins, and it can do so only while the MCU is powered, clocked, and out of reset. It cannot protect against a failed gate driver, a damaged switch, a short circuit on the board, or a pin that is released while the MCU is in reset. Hardware has to cover those cases, such as pull-down resistors on the gate-driver inputs, undervoltage lockout, and overcurrent protection.
Repetition Counter
The repetition counter is a small extra counter that changes how often the timer generates its update event. Without it, the update event happens once per counter period. With it, the timer counts a configured number of periods first and generates the update event only after that. This way, the update event can be much less frequent than the PWM cycle.

A simple example shows the idea. A timer generates a PWM signal at 20 kHz, and a control loop needs new values only 10000 times per second. With the repetition counter set to 1, the update event happens after every second PWM period. Therefore, the update interrupt, any DMA request, and any ADC trigger derived from the update event arrive at 10 kHz, while the PWM keeps running at 20 kHz. The same mechanism decides when preloaded values such as the auto-reload value and the compare values become active, because they are transferred at the update event. New duty cycles therefore take effect only every few PWM periods, which helps when several changes have to arrive together.
Configure the Repetition Counter
The update event is internal, so the test needs a way to make it visible. We configure PB0 as a GPIO output and a very high speed. The update interrupt of TIM1 will toggle this pin. In CubeMX, enable the TIM1 update interrupt in the NVIC Settings, and set the Repetition Counter in the Parameter Settings of TIM1 to 0 for the first run and to 1 for the second run. The dead time can stay at 90, and the firmware enables the update interrupt after the PWM start.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
HAL_TIM_PWM_Start(&htim1, TIM_CHANNEL_1); HAL_TIMEx_PWMN_Start(&htim1, TIM_CHANNEL_1); __HAL_TIM_ENABLE_IT(&htim1, TIM_IT_UPDATE); void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) { if (htim->Instance == TIM1) { HAL_GPIO_TogglePin(GPIOB, GPIO_PIN_0); } } |
The callback only toggles a pin, so it stays short even at 20 kHz.
Observe Update Events on a Logic Analyzer
With a repetition counter of 0, the update event happens in every PWM period, so the output pin toggles at every rising edge of CH1 and produces a 10 kHz square wave with a period of 100 ยตs.

With a repetition counter of 1, the update event happens in every second period, and the output pin produces a 5 kHz square wave with a period of 200 ยตs, while CH1 keeps its 20 kHz signal.
Advanced Timers for Motor Control
Advanced-control timer features are meant for applications where a timer output controls power switches, either directly or through a gate driver. The best-known case is motor control. A three-phase inverter for a brushless motor uses three complementary pairs, one for each phase, and a brushed motor in an H-bridge uses two pairs. The same hardware also serves synchronous buck and boost converters, half-bridge and full-bridge power supplies, and any design in which several switches must change state in a coordinated way. In these cases complementary outputs, dead time, and the break input replace a lot of risky firmware logic with a few hardware settings.
Many projects need none of this. Dimming an LED, driving a servo, generating a tone for a buzzer, or switching a small load through a single low-side transistor works well with the ordinary PWM mode from STM32 PWM Mode Explained. A good rule is that the advanced features become relevant when two switches share a supply path, when a fault could damage the hardware within a short time, or when the control loop has to run in step with the PWM cycle.
Mapping the Example to a Motor Drive
The configuration we tested in this article corresponds to one leg of an inverter. A three-phase inverter for a brushless motor repeats the same setup on CH2 and CH2N and on CH3 and CH3N, with one compare value for each phase, while the dead time, the break input, and the off-state settings are shared by the whole timer. A brushed motor in an H-bridge uses two such legs. The logic analyzer tests from the previous sections carry over directly, because every leg has to show the same dead-time gaps and the break test has to switch all outputs together. You still have to validate the dead time and the idle levels against the real power stage before you connect any motor.
Safety and Common Mistakes
Do Not Rely on Software Alone
Never let a power stage depend on firmware alone for its protection. Firmware can hang, a debugger can stop it, and it can be in the middle of a reset, and in none of these cases can a fault check in software act in time. The break input of the timer is much faster, but it is still only one layer, and a complete design adds protection in the gate driver and in the power stage as well. When a debugger halts the core, the timer can freeze with its outputs in the state they had at that moment, depending on the debug freeze settings, so disable the power stage before you use any breakpoint.
Check Pins and Timer Capabilities
Before you start a design, verify in the datasheet and the reference manual that your MCU has an advanced timer with the number of complementary channels you need. Also, the CHxN signals are available as alternate functions on pins of your package, and that the break input has a usable pin or source. A timer instance with the same name can have different capabilities on two devices, and a missing complementary pin is much easier to find on paper than on a finished board.
Read the Right Documents
The reference manual of your MCU describes the timer registers and the exact break and dead-time behavior. Also, the datasheets of the power switch and the gate driver give the timing that the dead time has to cover. A tutorial like this one can explain the concepts, but only these documents contain the numbers that are valid for your design.
Conclusion
An advanced-control timer extends the normal PWM hardware with the features a power stage needs. Complementary outputs create the paired signals for a half-bridge from a single compare value, the dead-time generator keeps the two switches from conducting at the same time, and the break input switches the outputs off in hardware when a fault appears. The off-state settings and the automatic output enable decide what the pins do in the idle and fault states, and the repetition counter lets the update event run slower than the PWM cycle.
None of these settings is universal. The dead time depends on the switches and the gate driver, the break polarity depends on the fault circuit, and the register encoding depends on the MCU. Therefore, every value has to come from the documents and from measurements. With that approach these features give a reliable base for motor control and power conversion, and we can combine them with timer synchronization and timer DMA to build complete control loops.
Download the Project Here
Download the CubeMX project files and HAL source code. The project is meant for logic analyzer tests on the NUCLEO-F446RE. Do not connect the timer outputs directly to a power bridge
If you find this useful, you can support us with a Donation as well.