2017-07-20 7:12 AM
I am working on a project to count the pulses of an external signal, I am using TIM2 to count every pulses of the signal and the TIM4 to set the duration of counting.
For example : I have an external signal with a Frequency of 10 kHz, and I want to count the pulses for a duration of 10 ms (rationnally it must be 100 pulses in 10ms).
The questions is : How do I configure my TIM4 in order to set the duration of counting for TIM2 ??
I developped the code shown below but it did not work (main.c)
#pulse-counter #stm32f4-discovery #stm32f4-timer2018-01-09 12:51 AM
Hi walid
Have you found some solution to your problem.?.i am interfacing tcs3200 color sensor with stm32f746zg
and i have to count pulses to determine the color of an object..i am having the same problem as you did..so if you have found some solution ,please share.thanks
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.