I'm trying to output a 4 kHz 50% duty cycle square waveform through a GPIO. What is the simplest way of doing that?
It doesn't need to be exactly 4 kHz. I accept some tolerance around the target.
I was considering to use FAST_IRCLK as time base, divide the clock by 1024 and output it. Is it possible?
I'm using MCUXpresso with KL02 SDK.