ICU for several pins

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
kab
Posts: 70
Joined: Sun Sep 16, 2012 6:18 pm

ICU for several pins

Post by kab »

Hi!

This question may be not ChibiOS, but stm32 related.
I would like to capture via ICU two signals on same timer. For example, if i use ICUD4 and would like to capture CHANNEL 1 and CHANNEL 2 (PB6 and PB7 pins) - is that possible?
If so, how to understand what pin cause an interrupt? And what happen if interrupt happen on both pins same time?

Thanks!
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: ICU for several pins

Post by Giovanni »

Hi,

The STM32 timers do not allow to measure 2 distinct signals at same time. The counter would be shared and each channel would reset it messing up the other channel measurement.

Giovanni
kab
Posts: 70
Joined: Sun Sep 16, 2012 6:18 pm

Re: ICU for several pins

Post by kab »

Thanks for you reply!

Seems, that EXTI and 1 shared timer is only one way, if i don't want to use 2 timers...
Post Reply