High speed GPIO switching
Hi. Everyone.
I'm trying to control external MUX using a GPIO pin in the STM32WB55 microcontroller.
Because of a limited number of PWM pins, I'm trying to use a GPIO pin for continuous regular switching.
My question is that even though the company said a maximum of 45 MHz (or 9 ns) is possible for the GPIO pin my code does not work properly (mux doesn't switch well without a 1 ms delay).
The mux speed is a possible maximum of 100 MHz. So, I do not doubt it's performance but it may be due to the too fast swithing of GPIO pin.
I need at least 1 us (1 MHz) switching speed.
So, I wonder how can I give 1 us delay to the GPIO pin properly using IDE code?