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!
ICU for several pins
Moderator: RoccoMarco
- 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
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
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
Thanks for you reply!
Seems, that EXTI and 1 shared timer is only one way, if i don't want to use 2 timers...
Seems, that EXTI and 1 shared timer is only one way, if i don't want to use 2 timers...