Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 1 month ago.
How to Setup a Timer in Capture Mode on An STM Nucleo F767ZI
Greetings , Is there anyone who has successfully managed to use the input Capture Mode on STM32 . I'm looking for a place to start and can only find support in other IDE's.
1 Answer
7 years, 1 month ago.
I have seen a few examples out in the user libraries but unfortunately can not find a link to them right now. There is no "simple" way to implement input capture on STM without using the ST HAL calls. ST has a high-level app note that summarizes their firmware examples which includes how to set up the input capture. That doc is here: http://www.st.com/content/ccc/resource/technical/document/application_note/83/72/1e/52/2b/de/4c/7e/DM00210367.pdf/files/DM00210367.pdf/jcr:content/translations/en.DM00210367.pdf In that guide, there is a reference to the "TIM_InputCapture" example which is what you would need.
From within the MBED sources, the "how-to" for input capture is at the top the following file. If you follow *exactly* what ST shows to do for input capture it will work within the MBED framework. https://github.com/ARMmbed/mbed-os/blob/master/targets/TARGET_STM/TARGET_STM32F7/device/stm32f7xx_hal_tim.c