AnsweredAssumed Answered

Output a kHz range clock through a GPIO?

Question asked by Andre Luis Vilas Boas Employee on Jul 3, 2020
Latest reply on Jul 5, 2020 by Mark Butcher


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.


Thank you

Andre VB