Page 1 of 1

Where to get peripheral input clocks

Posted: Tue Jan 17, 2017 11:13 am
by ThomasB
Hi,

are there symbols or similiar to get the input clock frequency for peripherals?
Im especially curious about the CAN clock.
Maybe its derived from the peripheral bus frequency. How to get it? Is it fixed?

Re: Where to get peripheral input clocks

Posted: Tue Jan 17, 2017 12:00 pm
by WiFive
https://github.com/espressif/esp-idf/bl ... soc.h#L131

Also see section 3.2 in technical reference manual

No mention of can yet but probably APB clock

Re: Where to get peripheral input clocks

Posted: Tue Jan 17, 2017 12:08 pm
by ThomasB
Thanks!

Yes, it looks like CAN runs with APB speed/gets the clock from it.

Re: Where to get peripheral input clocks

Posted: Tue Jan 17, 2017 3:17 pm
by erhardd
I also search an easy way to get the input clock frequency for peripherals.
Need the XCLK for OV7670 without the LEDC-module.
Free running (with start/stop) at a GPIO-Pin(frequ. 10 to 48 Mhz)..