Skip to main content
Visitor II
September 9, 2024
Question

STM32F030CC Pin output Reaction time

  • September 9, 2024
  • 1 reply
  • 510 views

Hi!

A PWM signal with a frequency of 100 kHz comes to the input of the microcontroller. Then, when the pulse falls, an interruption is triggered, which should change the state of one of the output PINs. And now I am observing a situation where the signal has arrived, but the reaction to the change in state takes about 3 µs, which is quite a lot for a frequency of 100 kHz.

AB19_0-1725914262937.png

There is nothing else in the code itself, only a response to interruptions, which takes about 3 µs from the moment of the interruption itself.

    This topic has been closed for replies.

    1 reply

    Super User
    September 10, 2024

    Enable compiler optimization.

    Don't use Cube/HAL.

    Run the ISR from RAM.

    JW