Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complementary PWM output? #376

Open
alianse777 opened this issue Dec 4, 2021 · 5 comments
Open

Complementary PWM output? #376

alianse777 opened this issue Dec 4, 2021 · 5 comments

Comments

@alianse777
Copy link

alianse777 commented Dec 4, 2021

Is there any way to configure complementary CHxN outputs and deadtime, like CH1 CH1N?

@thomask77
Copy link

I also have the same question.

Without this feature, stm32f1xx-hal is not suited for motor control projects :/

@burrbull
Copy link
Contributor

You could port main part of code from https://github.com/stm32-rs/stm32f4xx-hal/blob/master/src/timer/pwm.rs
But I yet don't have good idea how to workaround pin remapping.

@thomask77
Copy link

I think I'll just go with low-level PAC access.
I also need to set up Center-Aligned-PWM and synchronize ADC, DMA channels and IRQs to the PWM.

I already have a working configuration generated by CubeMX. Only need to translate to Rust.

@thomask77
Copy link

P.S.: Is there a table to see which HW features are not/partially/fully supported by the HAL?

@hawav
Copy link

hawav commented May 7, 2024

I am also attempting to implement BLDC motor control using this library. Could you please support Complementary PWM output functionality? Thank you for your consideration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants