-
I set PWM for PB14 and PC9 of STM32G070RBT6, but only one of them can work.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @sunnyguhz Both pin used TIM1 by default.
|
Beta Was this translation helpful? Give feedback.
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