2015-08-12 10:26 PM
2015-08-13 06:15 AM
Hi w.a,
I think that the counting has to be done in the call back of the timer's IRQ handler.You may refer to the example STM32Cube_FW_F4_V1.7.0\Projects\STM324xG_EVAL\Examples\TIM\TIM_InputCapture to get some insight.-Mayla-To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2015-08-13 08:56 AM
He's NOT asking about Input Capture, which btw has some grave math issues.
What's missing are External Clock Source examples for the TIM, using HAL2015-08-13 06:57 PM
Thanks Mayla and Clive for the replies:
Mayla, I have gone through the inputcapture program, in fact I am using that for frequency counting by using internal clock on the interrupt generated by the external signals, but this project is some what different, I want to have just counts of the external rising pulses but unable to configure by using HAL libraries. I am just a starter to board things, so need step by step guidance/examples to understand and implement things. Clive is right, HAL's examples and guidance is some what limited, while there are lot many examples/forums/posts of Firmware available.