Input capture: How to determine APB clock frequency from the docs?

tobias.boesch
Posts: 6
Joined: Tue Apr 28, 2020 7:02 am

Input capture: How to determine APB clock frequency from the docs?

Postby tobias.boesch » Tue Feb 09, 2021 1:35 pm

I use the input capture module. I want to find out how much time passed since the last edge.

Code: Select all

mcpwm_capture_signal_get_value
will return the 32 bit counter value as noted in

https://docs.espressif.com/projects/esp ... l#capture

To convert it into a time one needs to know what the APB clock is because
The timer runs continuously driven by the APB clock.
It typically should be 80 MHz. That is what the docs state.

Code: Select all

rtc_clk_apb_freq_get
might tell this with more certainty.

Now I don't know what my APB clock is without calling

Code: Select all

rtc_clk_apb_freq_get
.
How can I find out what my APB clock is by just finding information in the docs?

I don't use power management and therefore no frequency scaling.

Who is online

Users browsing this forum: Bing [Bot] and 249 guests