counting pulses using STM32F407G

Discussions concerning TrueSTUDIO for STM32 9.0.0 and later versions.

Moderators: Markus Girdland, Mattias Norlander

Posts: 1
Joined: Wed Aug 08, 2018 7:07 am

counting pulses using STM32F407G

Postby champ1 » Sat May 18, 2019 4:53 pm

I am new here so if I ask the wrong question, please forgive me. I have STM32F407G and I am using TrueSTUDIO for STM32F407G

I want to use of timer of STM32F407G for counting external pulses that are applied to the pin STM32F407G

Looking for sample code

Posts: 117
Joined: Wed Apr 05, 2017 5:08 pm
Location: USA

Re: counting pulses using STM32F407G

Postby frank_ee » Tue Jul 02, 2019 7:10 pm


Setup a timer for input capture with rising edge detection. In the timer interrupt service routine, increment a counter on every interrupt entry.

Return to “TrueSTUDIO for STM32 discussions”

Who is online

Users browsing this forum: No registered users and 3 guests