cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F030CC Pin output Reaction time

AB.19
Associate II

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.

1 REPLY 1

Enable compiler optimization.

Don't use Cube/HAL.

Run the ISR from RAM.

JW