cancel
Showing results for 
Search instead for 
Did you mean: 

COMP4 to TIM2 capture to TIM3 slave

CyberNerd
Associate III

My configuration is that I use TIM2 CH1 to capture the time between COMP4 edges. This works ok. Now I would like to use TIM3 to generate some ISRs on several channels, I would like to let TIM3 to reset based on TIM2 capture ch1. I set TIM2 TRGO to "update event, TIM3 is in slave mode, using ITR1.

Now the problem is that it seems to work, but TIM3 only gets reset when it's own period has elapsed? I would like to have TIM3 responding immediately on TIM2 capture event. What can be the issue here?

1 ACCEPTED SOLUTION

Accepted Solutions
CyberNerd
Associate III

ok, just found solution, I had to set TIM2 in slave reset mode, with trigger source "ETR1 through remap". Now it's working ok.

View solution in original post

1 REPLY 1
CyberNerd
Associate III

ok, just found solution, I had to set TIM2 in slave reset mode, with trigger source "ETR1 through remap". Now it's working ok.