Output a clock signal in the MHz range
Posted: Mon Aug 14, 2017 11:32 am
Hi guys!
How does one generate a stable clock signal above what the LED PWM provides?
I need a 2MHz square wave signal with 50:50 duty cycle.
Of cause the ESP32 is fast and I could use a RTOS thread, but there must be a more elegant way.
I see CLKout1, CLKout2, CLKout3 - #1 + #2 are on the USB pins - so what about CLKout3 (GPIO0)?
Or even better - because GPOI0 is connected to the boot sequence - have another pin do it - what about all those PWMs?
Any help would be awesome - I really don't feel like connecting a whole Arduino for the clock at this moment
How does one generate a stable clock signal above what the LED PWM provides?
I need a 2MHz square wave signal with 50:50 duty cycle.
Of cause the ESP32 is fast and I could use a RTOS thread, but there must be a more elegant way.
I see CLKout1, CLKout2, CLKout3 - #1 + #2 are on the USB pins - so what about CLKout3 (GPIO0)?
Or even better - because GPOI0 is connected to the boot sequence - have another pin do it - what about all those PWMs?
Any help would be awesome - I really don't feel like connecting a whole Arduino for the clock at this moment