Skip to main content
Associate III
March 14, 2025
Question

STM32F4 TIMER AND INTERRUPT

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.

 

This topic has been closed for replies.

2 replies

mƎALLEm
ST Technical Moderator
March 14, 2025

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 "Best answer" on the reply which solved your issue or answered your question.
PSEBA.1Author
Associate III
March 14, 2025

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