Skip to main content
ANARA.1
Associate
September 30, 2020
Solved

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

  • September 30, 2020
  • 3 replies
  • 922 views

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.

This topic has been closed for replies.
Best answer by Imen.D

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

3 replies

Imen.DBest answer
ST Technical Moderator
September 30, 2020

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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
waclawek.jan
Super User
September 30, 2020

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

JW

ANARA.1
ANARA.1Author
Associate
October 1, 2020

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.