How to configure complementary PWM channels on STM32F4? #37655
              
                Unanswered
              
          
                  
                    
                      gabopushups
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment
-
| pwm1: pwm_1 { https://docs.zephyrproject.org/latest/build/dts/api/bindings/pwm/st%2Cstm32-pwm.html | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to configure complementary PWM channels on the STM32F4 using zephyr?
How do I declare, for instance, TIM1_CH1N (PE9)? So far, I've tried the following:
But then, when I need to use the pwm bindings to declare them, I don't know how to tell that a channel should be negated.
How should I modify
pwms = <&pwm1 1 0 PWM_POLARITY_NORMAL>;to use the complementary channel? Since the parameters only include the timer module that I declared earlier, the channel, period and flags, and that declaration would run the PWM on PE9Beta Was this translation helpful? Give feedback.
All reactions