1

this doesn't work:

 TIM1_CCMR2 = 0b01; //its default input channel
 TIM1_IER = 0b100; //channel 2 capture interrupt
 TIM1_CCER2 = 0b1; //channel 2 capture
 TIM1_CR1 = 0b1; //start counter

and yet this works with no problem (on channel 1)

 TIM1_CCMR1 = 0b10; //remap channel 1 on input 2 where ch2 is supposed to be by default
 TIM1_IER = 0b10; //capture channel 1 interrupt
 TIM1_CCER1 = 0b1; //enable channel 1 capture
 TIM1_CR1 = 0b1; //start counter

also, if I remap channel one on ti 1 (pin 16) it still works (on channel one pin) but if I remap channel 2 on ti 1 it won't.

asked Oct 25, 2023 at 16:41

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.