Dear Team,
what is the way to do it in Zephyr?
I have a signal up-to 10kHz, what is the best way to keep the counter in the background?
Thank you and best
Oleh
Dear Team,
what is the way to do it in Zephyr?
I have a signal up-to 10kHz, what is the best way to keep the counter in the background?
Thank you and best
Oleh
Hi.
You can use Zephyr's GPIO driver to configure interrupts.
Have a look at the documentation here.
Best regards,
Didrik
Hi Didrik,
thank you, I'm new to Zephyr so trying to map my nrf knowledge to zephyr
To complement and test the counter on gpio, I thought to put the second DevKit board into generation mode. Could you please point on the right track with how can the generation on-off be done in background on Zephyr?
thanks & best
Oleh
Hi.
A pull request for a sample demonstrating how to use the nrfx drivers in Zephyr was just opened.
Hopefully, it is able to help you.
https://github.com/zephyrproject-rtos/zephyr/pull/20089/files
Best regards,
Didrik
Hello and thank you!
short question: what is the best way to suspend / resume the ppi in this sample?
and how to safely reset counters?
Hi, and sorry for the late reply.
For resetting counters, I would use the nrfx_timer_clear function.
For suspending/resuming DPPI, you would have to either stop the events from being generated, not publish the events, or subscribe to them (or all at once).
Hi and thank you for your input.
I managed to update and make the code working! great! thank you!
Regarding the Suspend/Resume, just for info: I need it in order to save power, as the sensor is external and connected to a stepup convertor, so when not in use -- I would like to power it off. Thus also disable DPPI.
Best regards
Oleh
After digging some more through the nrfx drivers, I also found the nrfx_dppi_channel_disable (and _enable) functions, which should let you stop and start the specific DPPI channel.
After digging some more through the nrfx drivers, I also found the nrfx_dppi_channel_disable (and _enable) functions, which should let you stop and start the specific DPPI channel.
Hi Didrik,
you just rock! thank you for all your support!
Best
Oleh