Skip to main content
Roshan
Associate III
August 11, 2022
Solved

how to use TIM3_ETR to remap TIM3_CHx

  • August 11, 2022
  • 1 reply
  • 1882 views

Hi all,

I haven't worked with ETRs earlier. I am currently working with stm32G491, I want to use TIM3_CHx, as an input capture. due to design problems, I am not available to use those pins. but I can use the TIM3_ETR pin. so is it possible to remap to one of TIM3_CHx and use it as normal input capture0693W00000QNT89QAH.jpgThank you

This topic has been closed for replies.
Best answer by waclawek.jan

Only through the slave-mode controller (i.e. TRC signal) - set TIMx_SMCR.TS = 0b111 for External trigger input, and then for given channel set TIMx_CCMRx.CCxS to 0b11 for capturing based on TRC.

(What you've drawn is not what you want, that figure is not very well described but the ETRF signal going to the capture/compare module acts on the compare part, as OCREF clear, if TIMx_SMCR.OCCS is set)

JW

1 reply

waclawek.jan
waclawek.janBest answer
Super User
August 11, 2022

Only through the slave-mode controller (i.e. TRC signal) - set TIMx_SMCR.TS = 0b111 for External trigger input, and then for given channel set TIMx_CCMRx.CCxS to 0b11 for capturing based on TRC.

(What you've drawn is not what you want, that figure is not very well described but the ETRF signal going to the capture/compare module acts on the compare part, as OCREF clear, if TIMx_SMCR.OCCS is set)

JW