Page 1 of 1

ICU for several pins

Posted: Mon Dec 21, 2015 1:34 pm
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!

Re: ICU for several pins

Posted: Mon Dec 21, 2015 2:53 pm
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

Re: ICU for several pins

Posted: Mon Dec 21, 2015 8:16 pm
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...