-
I set PWM for PB14 and PC9 of STM32G070RBT6, but only one of them can work.
|
Beta Was this translation helpful? Give feedback.
Answered by fpistm Dec 18, 2023
Replies: 1 comment
-
Hi @sunnyguhz Both pin used TIM1 by default.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by fpistm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Hi @sunnyguhz
This is normal:
https://github.com/stm32duino/Arduino_Core_STM32/blob/63d30964d41809b3f704f0cab8c5b64870fdcc0d/variants/STM32G0xx/G070RBT/PeripheralPins.c#L123C4-L124
https://github.com/stm32duino/Arduino_Core_STM32/blob/63d30964d41809b3f704f0cab8c5b64870fdcc0d/variants/STM32G0xx/G070RBT/PeripheralPins.c#L134C5-L135
Both pin used TIM1 by default.
Simply suffix one by
_ALT1
to not use the same TIM instance