2016-06-19 11:28 PM
Hi,
I am pretty new to programming micro controllers, I try to learn it by myself and couldn't find any useful source for my task. I want to make a timer which can count the period of USER button between clicking and releasing it. And after that my led interrupt should be equal to that period. I would be grateful for any kind of help.Thank you. #training #beginner #newbie2016-06-20 02:23 AM
Hi coloba,
Welcome to our community. Since you are newbie, I recommend you to start by taking a look to our freehttp://www.st.com/content/st_com/en/support/learning/stm32l4-online-training.html
and check ourhttp://www.st.com/content/st_com/en/support/learning/mcu-training-courses.html
for further information about training sessions. For you programming start and goal, I recommend you to run the suitable example for you inside the package, which can be: -RCC_ClockConfig: to take idea on how to configure the system clock at this path: STM32Cube_FW_F0_V1.6.0\Projects\STM32F0308-Discovery\Examples\RCC\RCC_ClockConfig - TIM_InputCapture : (in your case you select user bottom pin as timer input) at this path: STM32Cube_FW_F0_V1.6.0\Projects\STM32F0308-Discovery\Examples\TIM\TIM_InputCapture -Hannibal-