-
Hi, I'm trying to get delta value between irqs using k_cycle_get_32(). Then convert to microseconds using k_cyc_to_us_floor32(). i'm using internal LF 32khz rc oscillator, but I dont know is this clock source is in use in time measure? Is there somekind of clock calibration value or something to related to this problem? Does anyone have idea what could cause this? br |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@carlescufi Any ideas? |
Beta Was this translation helpful? Give feedback.
-
Hello, I have found solution this issue. Seem that k_cycle_get_32() is inaccurate for this purpose. Proper way to do this is to use nrf52840 GPIOTE IN, PPI, and hw timers. But current problem is that zephyr general gpios and nrfx gpiote libraries cant use together. Maybe i have to change all gpios to use nrfx libraries |
Beta Was this translation helpful? Give feedback.
Hello, I have found solution this issue. Seem that k_cycle_get_32() is inaccurate for this purpose. Proper way to do this is to use nrf52840 GPIOTE IN, PPI, and hw timers. But current problem is that zephyr general gpios and nrfx gpiote libraries cant use together. Maybe i have to change all gpios to use nrfx libraries