Where to get peripheral input clocks

ThomasB
Posts: 38
Joined: Sun Dec 25, 2016 12:11 am

Where to get peripheral input clocks

Postby ThomasB » Tue Jan 17, 2017 11:13 am

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?

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Where to get peripheral input clocks

Postby WiFive » Tue Jan 17, 2017 12:00 pm

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

ThomasB
Posts: 38
Joined: Sun Dec 25, 2016 12:11 am

Re: Where to get peripheral input clocks

Postby ThomasB » Tue Jan 17, 2017 12:08 pm

Thanks!

Yes, it looks like CAN runs with APB speed/gets the clock from it.
Last edited by ThomasB on Tue Jan 17, 2017 5:09 pm, edited 1 time in total.

erhardd
Posts: 17
Joined: Mon Dec 05, 2016 9:16 am

Re: Where to get peripheral input clocks

Postby erhardd » Tue Jan 17, 2017 3:17 pm

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)..

Who is online

Users browsing this forum: No registered users and 96 guests