cancel
Showing results for 
Search instead for 
Did you mean: 

How many PWMs on STM32MP151x MCU

HBouc.1
Associate

Hello,

We are considering the STM32MP151x MPU for a new project. However we need at least 20 independent PWM outputs (at the same frequency but different duty cycle). After reading the datasheet, it is still not clear to me how many PWMs STM32MP151x has.

TIM1, TIM8 ==> 2 x 6 independent channels (at the same frequency) ?

TIM2, TIM3, TIM4, TIM5 ==> 4 independent channels ?

TIM13, TIM14, TIM16, TIM17 ==> 4 independent channels ?

TIM12, TIM15 ==> 4 independent channels ?

Total 24, am I right ?

Thanks

Hugo

1 REPLY 1
PatrickF
ST Employee

Hello,

according to Datasheet table "Timer feature comparison", here is my slightly different count:

TIM1 and TIM8 = 4 channels each

TIM2, TIM3, TIM4 and TIM5 = 4 channels each

TIM12 and TIM15 = 2 channels each

TIM13, TIM14, TIM16 and TIM17 = 1 channel each

LPTIM1, LPTIM2, LPTIM3, LPTIM4 and LPTIM5, although not having capture channel, get a compare, so can do PWM too.

Total: 37 channels

BUT, you should check using CubeMX that all those pins (TIMx_CHy or LPTIM_OUT) could be output on distinct pins according to your specific application constrains (e.g. at least the required boot Flash interface).

Note that if some TIMx_CHy are not available, TIMx_CHyN could be used instead (complementary channel not available on all channels).

Regards.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.