cancel
Showing results for 
Search instead for 
Did you mean: 

Timer pin assignment with STM32CubeMX for BLDC motor control

Kmax18
Senior

0693W00000FDT1nQAH.pngI will use the STM32G491VC MCU, and the Timer input XOR function for interfacing with Hall sensors (Ref. Manual RM0440, page 1167). Figure 353 (page 1169) shows the six half-bridge control signals for the motor phases (tim_oc1, tim_oc1n, etc.).

Question: I'm new to the CubeMX tool for pin configurations. Assigning pins for timer channels CH1, CH2, CH3 is easy. However, the complementary outputs channels CH1N, CH2N, CH3N are not offered by the pull-down menu. See the screenshot. It seems that either CHx or CHxN is available, but not both? Please advise. Thank you.

5 REPLIES 5
Sara BEN HADJ YAHYA
ST Employee

Hello,

Could you please specify the STM32CubeMX version?

Best Regards,

Sara

DixonDon
Associate II

I have the same question as OP.  Using STM32CubeMX version 6.10.0.

MM..1
Chief II

Hmm Steve Wonder, one line under your marking is activation CH4 + CH4N on your image

and why you ask CH1N ... in CH4 pull down menu ?

Solved!.  Thank you!  

My brain was locked into the idea that one line=one pin=one function, but if you click that one line  CH1 + CH1N, it assigns BOTH pins for you.  

Stevie

Dont worry , im too Stevie, i reply 2021 as actual...