MCPWM understanding
Posted: Fri Sep 25, 2020 10:28 am
Hello everyone,
i am new to this forum and to the esp-idf. I am trying to understand the MCPWM basic config example.
The capturing with the demo is working on my ESP Board, but i can't find out how to set the APB clock speed.
And this leeds me to question what the magic behind this formula is:
current_cap_value[0] = (current_cap_value[0] / 10000) * (10000000000 / rtc_clk_apb_freq_get());
What i want to do is printing the values in ns and also capture signals which might be in 100ns distance.
Can someone give me a hint, where to search ? Might also be, that the problem is sitting in front of the PC.
best regards
Lars
i am new to this forum and to the esp-idf. I am trying to understand the MCPWM basic config example.
The capturing with the demo is working on my ESP Board, but i can't find out how to set the APB clock speed.
And this leeds me to question what the magic behind this formula is:
current_cap_value[0] = (current_cap_value[0] / 10000) * (10000000000 / rtc_clk_apb_freq_get());
What i want to do is printing the values in ns and also capture signals which might be in 100ns distance.
Can someone give me a hint, where to search ? Might also be, that the problem is sitting in front of the PC.
best regards
Lars