cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 TIMER AND INTERRUPT

PSEBA.1
Associate II

Hello,

Can you help me configure cube mx?
I would like to make an interrupt on each rising edge of a signal on a gpio,
trigger the 16-bit timer on the rising edge and count the number of timer overflows
on the signal on another gpio, I don't know how to configure Cube Mx.
Thanks
Best regards.

 

2 REPLIES 2
mÆŽALLEm
ST Employee

Hello,

I don't know what you intend to do but I think at least you need this config:

mALLEm_1-1741949813338.png

 

mALLEm_0-1741949790384.png

 

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

Hello,

What I want is to count the number of overflows of timer
x on a GPIO input (10 Mhz) and interruption on 1 input (1Hz signal)
at each rising edge.

Thanks you