Nucleo-G474RE: No PWM is shown generated on TIM_Complementary_Signals example
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-09-30 10:14 AM
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.
Solved! Go to Solution.
- Labels:
-
STM32G4 Series
-
TIM
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-09-30 11:10 AM
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
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-09-30 11:10 AM
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
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-09-30 11:31 AM
Read out and check/post content of TIM and relevant GPIO registers.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-09-30 11:10 PM
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.
