2 years, 8 months ago.

Nucleo F401RE / PWM input mode / TIM2_CH3

Hi everyone,

I'm pretty new to STM32 platform and to forums in general.

I'm working on Nucleo F401RE board and the main goal is to read rising and falling edge of PWM signals. I'm reading the datasheet that you can find at the following link:


I'm having issues in configuring properly TIM2_CH3 to the PWM input mode. Specifically, I don't know how to configure the slave mode register TIM2_SMCR and its TS bit-field. This bit-field allows the user to select the trigger input to synchronize the counter. I would like to select the Filtered Timer input 3 (TI3FP3) but, so far, I wasn't able to find any reference in the datasheet (except figure 87).

In the picture, you can find part of the code where TIM2 configuration takes place:

Thanks in advance for any help! /media/uploads/SM_Mbed91/tim2_ch3_configuration.png

2 Answers

2 years, 8 months ago.


The PWM input mode is not supported on mbed. You should ask your question directly on STM32 forum:



2 years, 8 months ago.

While PWM input mode is not part of the mbed library, it is not like no one here does anything but using the standard mbed library and nothing else.

However based on the reference manual, and I might be wrong, but it seems like TI3FP3 does not exist. There is only FP1 and FP2. I see they are listed in that picture, but I suppose that might be a typo, and should be also FP1 and FP2.