cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F334 TIM3 input compare

Manu Abraham
Senior
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
1 ACCEPTED SOLUTION

Accepted Solutions
Manu Abraham
Senior
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

View solution in original post

1 REPLY 1
Manu Abraham
Senior
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