How to Output the ESP32's "Raw" Clock
Posted: Tue Feb 27, 2024 1:57 am
Hi, I have a question regarding the 30-pin DIP Arduino-like ESP32 device. I want it to operate together with another high-speed device, and I would like the two devices to operate synchronously, so I can keep them generally in step with one another. The other device (a "UPduino" from TinyVision.ai) runs at 12-48 MHz, and can accept an external clock. I also can manipulate the clock with an internal phase-locked loop (PLL). However, the fastest "clock" I can find a way to extract from the ESP32 in C is through the "tone" command, and it can only output up to 32767 KHz (because the frequency is specified via a signed int); 30 KHz would multiply up to 12 MHz with a factor of 400, which is too high to be stable. Is there any way to output a higher frequency -- something at or close to the ESP32's raw clock frequency?