Skip to content

Conversation

@ckhardin
Copy link
Contributor

When using an stm32 in a bridge circuit with complementary outputs, the deadtime needs to be configurable to avoid shoot-thru current on the circuit. So, the HAL has the configuration in the BDTR init and use that api access to set the configuration.

Copy link
Contributor

@etienne-lms etienne-lms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments. Otherwise LGTM.

@mathieuchopstm mathieuchopstm added this to the future milestone Oct 27, 2025
@ckhardin ckhardin force-pushed the ckhardin/add-deadtime-for-stm32-pwm branch from c314aa5 to 01e84c1 Compare October 27, 2025 18:32
When using an stm32 in a bridge circuit with complementary outputs,
the deadtime needs to be configurable to avoid shoot-thru current
on the circuit. So, the HAL has the configuration in the BDTR init
and use that api access to set the configuration.

Signed-off-by: Charles Hardin <[email protected]>
@ckhardin ckhardin force-pushed the ckhardin/add-deadtime-for-stm32-pwm branch from 01e84c1 to 3a7cd82 Compare October 27, 2025 18:34
@sonarqubecloud
Copy link

type: int
default: 0
description: |
Sets the dead-time configuration the Break and Dead-Time register (BDTR)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo:

Suggested change
Sets the dead-time configuration the Break and Dead-Time register (BDTR)
Sets the dead-time configuration in the Break and Dead-Time register (BDTR)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants