Generate clock using GPIO pins

Hi guyz… i want a 2.4MHz clock in a GPIO pin. Any way to achieve this…

Regards YuvaRaja

PWM will give the most stable waveform. But how about buying a crystal? Or a DL40 with custom firmware? Or a $1-$5 micro dedicated to the job

Can I ask why, and why 2.4MHz?

i need to apply 2.4Mhz clock for the MP45DT02 Microphone in STM32F4 Discovery.

i don’t need exactly 2.4MHz…At least 1MHz clock is enough …
its is possible to produce clock in a normal pin…i mean without a PWM pin.

Regards YuvaRaja.

It’s possible to generate a waveform on a pin. If you simply toggle a pin in netmf you will not get a stable waveform, because the GC will kick in occasionally, as well as netmf not being realtime… but if you use RLP then it will be possible. But PWM is the way to do it reliably.
.

1 Like

Thank you Brett…

So finally, we need a stable clock means use the PWM or a External clock generator.
Am going to use the PWM.

Regards YuvaRaja

Am googled and Searched a lot about without success…
Any one can help me…?
i want to generate 1MHz clock using the PWM pins.
links and examples appreciated…

Regards YuvaRaja.

thank u andre.m…