Skip to main content
Robert Ritchey
Senior
June 4, 2021
Solved

How to setup TIM14 in capture mode but disable TI1 input

  • June 4, 2021
  • 5 replies
  • 1344 views

I'd like to use TIM14 to time some events but only using software capture triggering. I'd like to setup TIM14 to count continuously through its whole range and use the CC1G bit in the TIM14_EGR to capture the timer. I'd like it to ignore TI1 or disable TI1 but I don't see any option to do this. Thanks,

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

If you don't set any TIM14_CH1 in the GPIO AF matrix, there will be no TI1 edge.

JW

5 replies

TDK
June 4, 2021

Please include the STM32 part number, or at the very least the family.

"If you feel a post has answered your question, please click ""Accept as Solution""."
waclawek.jan
waclawek.janBest answer
Super User
June 5, 2021

If you don't set any TIM14_CH1 in the GPIO AF matrix, there will be no TI1 edge.

JW

Robert Ritchey
Senior
June 5, 2021

Hi TDK, the specific part is STM32G030C6 but from all the families I have used so far the TIM is identical so I did not think this made a difference.

Robert Ritchey
Senior
June 5, 2021

Hi waclawek.jan, I kind of figured this but did not know if this would ground the TI1 input or not. It would have been helpful if ST had a basic schematic of the input macro cell in the data sheet like TI does. Thanks

waclawek.jan
Super User
June 5, 2021

Yes, this is a piece of information ST never cared to clarify, treat it as such.

JW