Skip to main content
Visitor II
March 14, 2025
Question

STM32F4 TIMER AND INTERRUPT

  • March 14, 2025
  • 1 reply
  • 468 views

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.

    1 reply

    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

     

     

    PSEBA.1Author
    Visitor II
    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