Skip to main content
Manu Abraham
Senior
February 8, 2017
Solved

STM32F334 TIM3 input compare

  • February 8, 2017
  • 1 reply
  • 662 views
Posted on February 08, 2017 at 10:22

Hi,

I am trying to capture external events on a GPIO pin PC.9 using TIM3 CH4 input capture. I cant understand why I am not getting TIM3 CC4 events with the TIM3 interrupt. Spent a bit time pulling my hair over the issue, but unable to find the problem. Interesting to note was that I was able to get it working with TIM1. But for my understanding purpose, I would like to have it working with TIM3.

Attached code of what I am doing.

Any idea, what could be wrong ?

Thanks,

#tim3-input-capture
This topic has been closed for replies.
Best answer by Manu Abraham
Posted on February 08, 2017 at 14:43

Replying to my own question.

The problem's been fixed. The culprit was in the incorrect clock setup for the TIM3 peripheral

1 reply

Manu Abraham
Manu AbrahamAuthorBest answer
Senior
February 8, 2017
Posted on February 08, 2017 at 14:43

Replying to my own question.

The problem's been fixed. The culprit was in the incorrect clock setup for the TIM3 peripheral