Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

get RTC count via PPI gpio (shared with app_timer)

Hello,

I using the "nRF5_SDK_17.1.0_ddde560" and want to capture the current RTC count though a gpio (low_to_high event) via PPI. I want to use the RTC2 (used by app_timer in the project) because RTC0 and RTC1 used by softdevice and freertos. I need the app_timer because is used by ble. What I figured out is that only CC[0] and CC[1] is used by the app_timer of the RTC2. Is that true? Now my question: Could be there a problem of using the CC[2] or CC[3] by my own. I want only to capture the RTC count on an interrupt event to use the count value so set some timings with the app_timer. I don't want to get the count value inside an interrupt because some other stuff (isr etc.) could process while this happens when i want to capture the RTC counter value. I'm using the nRF52832, nRF52833 and nRF52840 (I think there is no big difference to the RTC between this devices right?). 

Thx and best regards

Julian

Parents Reply Children
Related