Sample at 500us #37936
Unanswered
joaodullius
asked this question in
Q&A
Sample at 500us
#37936
Replies: 1 comment
-
Considering the above scenario, what would be needed to change Zephyr tick from 1ms to 500 us? |
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.
-
What would be the best way to guarantee that a procedure is execec is started at every 500us with high accuracy?
I'm using a nRF5340DK board and tried this both approaches. I'm toggling the leds and looking at an osciloscope the results.
Approach 1 - k_usleep and k_thread_define:
By this method I'm getting tooglings around 500 to 700us, with different sizes on the high and low periods.
Approach 2 - timer with K_USEC
By this approach I'm getting better results, closer to 500us, but with high variance on the value.
What would be the best way to achieve such fixed 500us results?
Beta Was this translation helpful? Give feedback.
All reactions