This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

PPI Timer2 weird behavior on Bluetooth connect

Hello!

We're using PPI to connect one pin to clear and capture events on Timer2. On pin low-to-high we're clearing the timer and on pin high-to-low, we're capturing the timer. We have S110 enables and inited on PCA10001 board.

The application works great until we connect the PCA10001 to the PCA10000 (via master control panel) at which moment the values from the timer become erratic and random. It stays the same after Bluetooth disconnect.

  • softdevice configures PPI channel 14 and 15, but like you said every channel below this should and must be untouched by softdevice. PPI channels fixed in hardware that are not configurable

    20 TIMER0->EVENTS_COMPARE[0] RADIO->TASKS_TXEN
    21 TIMER0->EVENTS_COMPARE[0] RADIO->TASKS_RXEN
    22 TIMER0->EVENTS_COMPARE[1] RADIO->TASKS_DISABLE
    23 RADIO->EVENTS_BCMATCH AAR->TASKS_START
    24 RADIO->EVENTS_READY CCM->TASKS_KSGEN
    25 RADIO->EVENTS_ADDRESS CCM->TASKS_CRYPT
    26 RADIO->EVENTS_ADDRESS TIMER0->TASKS_CAPTURE[1]
    27 RADIO->EVENTS_END TIMER0->TASKS_CAPTURE[2]
    28 RTC0->EVENTS_COMPARE[0] RADIO->TASKS_TXEN
    29 RTC0->EVENTS_COMPARE[0] RADIO->TASKS_RXEN
    30 RTC0->EVENTS_COMPARE[0] TIMER0->TASKS_CLEAR
    31 RTC0->EVENTS_COMPARE[0] TIMER0->TASKS_START
    
Related