Replies: 1 comment
-
Since CPU toggles the gpio and not the hardware there will always be a jitter because there are other interrupts, cache, etc. As you mentioned, your application also runs BT so you have interrupts from radio. You can try to increase interrupt priority as it's likely that by default all interrupts have the same priority. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I use
counter_set_channel_alarm
to set counter alarm value and change GPIO output level in callback function.But I found that the interval between the output level changes have a slightly different (around 0 - 15us) everytime, which is supposed to be exactaly the same everytime.
Is it because the kernel is doing something before callback function runs resaulting different time gap? How can I do to make the output interval run as exactly the same as the value is set?
The counter is 1Mhz (1us). The sys clk is 160Mhz. This is part of how I setup the output.
Information may help:
OS: zephyr 3.4.0
Toolchain: zephyr-sdk-0.16.0
Board: esp32c3_devkitm
Beta Was this translation helpful? Give feedback.
All reactions