Page 1 of 1

How to generate a 12MHz clock?

Posted: Fri Jun 21, 2019 4:47 pm
by grstephany
Hello everyone,
I need to source a continuous clock between 4MHz and 12 MHz from the ESP32-WROOM-32 module and get it out to one of the pins to drive some external circuitry. Any ideas?

The LEDC and other PWM examples can't seem to handle anything that fast.
I can generate the clock with the SPI peripheral, but that is gated with the actual transfer.
I could send a continuous stream of 0x55 out a UART, but even if the peripheral can handle that high of a baud rate there will always be excessive jitter on the output clock.

Is there any way to map a timer or simple divided clock out to one of the pins (preferably via IO_MUX)?

Thanks in advance for your assistance!
Gary

Re: How to generate a 12MHz clock?

Posted: Sat Jun 22, 2019 5:55 am
by WiFive