2024-09-09 01:40 PM
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.
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.
2024-09-10 01:11 AM
Enable compiler optimization.
Don't use Cube/HAL.
Run the ISR from RAM.
JW