Page 1 of 1

TIM2_CH3 ICU on STM32F4

Posted: Fri May 01, 2015 5:13 pm
by kchandrashekar
I have a custom board that has the STM32F407VET6 MCU, and I'm trying to setup an ICU on PB10/TIM2_CH3.

Is it possible to configure the TIM2_CH3 as an ICU? The ICU driver doesn't seem to provide a ICU_CHANNEL_3 option. Is this a limitation of the MCU or of the driver or both?

Re: TIM2_CH3 ICU on STM32F4

Posted: Fri May 01, 2015 5:17 pm
by Giovanni
Hi,

The ICU driver on the STM32 supports only channels 1 and 2, there is a specific reason for this in the timer architecture, we discussed it on the forum a while ago.

Giovanni

Re: TIM2_CH3 ICU on STM32F4

Posted: Mon May 04, 2015 8:37 am
by barthess
@kchandrashekar
You can use code from this project
https://github.com/ChibiOS/ChibiOS-Drivers
Or EICU driver from community submodule.

Re: TIM2_CH3 ICU on STM32F4

Posted: Thu May 21, 2015 1:49 am
by kchandrashekar
What precisely was the reason, I'm unable to find the said post in the forum. I''m attempting to bring it up using a mish-mash of the ChibiOS code and the Peripheral Driver Code from STM. And it doesn't seem to be working, it was however working on a different pin which also had the same function(TIM2_CH3) attached to it.