2017-04-30 11:49 PM
Hello.
I use stm32a4 and timer2 (channel 3 and channel 4) in capture mode.How to determine from which channel the capture took place?2017-05-01 03:06 AM
Have a look at the reference manual to find out in the status register the flag for each capture register which is set by hardware. Usually in a control register, there is an interrupt enable to trigger an ISR to process all captures/compares associated to a timer. Don t forget to clear the status flag quickly before the next event...
2017-05-01 09:13 AM
https://community.st.com/0D50X00009XkdeKSAR