cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F0 DISCOVERY USER BUTTON READ

cemkalayc
Associate
Posted on June 20, 2016 at 08:28

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 #newbie
1 REPLY 1
Walid FTITI_O
Senior II
Posted on June 20, 2016 at 11:23

Hi coloba,

Welcome to our community. Since you are newbie, I recommend you to start by taking a look to our free 

http://www.st.com/content/st_com/en/support/learning/stm32l4-online-training.html

and check our 

http://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

http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-embedded-software/stm32cubef0.html

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-