cancel
Showing results for 
Search instead for 
Did you mean: 

Nucleo-G474RE: No PWM is shown generated on TIM_Complementary_Signals example

ANARA.1
Associate II

Using Nucleo-G474RE. Am trying the TIM_Complementary_Signals example. This uses TIM1. No PWM is shown generated on any of the 6 channels. Tried setting MOE bit in TIM1->BDTR as also CC1E, CC1NE,...CC3E, CC3NE in TIM1->CCER before the PWM_Start calls. No luck.

1 ACCEPTED SOLUTION

Accepted Solutions
Imen.D
ST Employee

Hello @ANARA.1​ ,

Make sure that the NUCLEO-G474RE is properly configured as descibed in the readme.txt file:

  • Connect the TIM1 pins to an oscilloscope to monitor the different waveforms:
    • TIM1_CH1 pin (PA8)  
    • TIM1_CH1N pin (PB13)  
    • TIM1_CH2 pin (PA9)  
    • TIM1_CH2N pin (PA12)  
    • TIM1_CH3 pin (PA10)  
    • TIM1_CH3N pin (PB15)
  • Connect the TIM1 break pin TIM1_BKIN pin (PB12) to the GND. To generate a break event, switch this pin level from 0V to 3.3V.  

Hope this helps you.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

View solution in original post

3 REPLIES 3
Imen.D
ST Employee

Hello @ANARA.1​ ,

Make sure that the NUCLEO-G474RE is properly configured as descibed in the readme.txt file:

  • Connect the TIM1 pins to an oscilloscope to monitor the different waveforms:
    • TIM1_CH1 pin (PA8)  
    • TIM1_CH1N pin (PB13)  
    • TIM1_CH2 pin (PA9)  
    • TIM1_CH2N pin (PA12)  
    • TIM1_CH3 pin (PA10)  
    • TIM1_CH3N pin (PB15)
  • Connect the TIM1 break pin TIM1_BKIN pin (PB12) to the GND. To generate a break event, switch this pin level from 0V to 3.3V.  

Hope this helps you.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

Read out and check/post content of TIM and relevant GPIO registers.

JW

ANARA.1
Associate II

Thanks! Was missing the TIM1_BKIN pin (PB12) to GND connection. Connected Pin 16 (PB12) to Pin 20 (GND) on CN10. Now I get CH1, CH1N, CH2N and CH3N. Still dont get CH2 and CH3. Am using my USB Logic Analyzer for monitoring. Logic Analyzer GND is connected to PIN 9 (GND) on CN10.