This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

synchronous timers on central (nRF52840DK) and peripheral (nRF52832)

Hello,

in our project we have a nRF52840DK as central and a nRF52832 chip on a custom board as peripheral. The software on the nRF52840DK is based on the ble_app_uart_c example. The software on the nRF52832 ist based on the ble_app_uart example. This works well.

For our project we need a timer on the central device and a timer on the peripheral device. Both timers should contain the same value. For this we need that both timers start at the same time. We need this two synchronous timers, because we want to send data from the peripheral to the central with a time stamp. This time stamp is needed for further proccessing. The following picture shows a NUS-packet, which we want to transmit. timestamp (4 Bytes) should contain the actual timer value.

Concretely, we have three questions:

1. Is there a good starting point for this (e.g. examples)?

2. How can we achieve that both timers start at the same time?

3. Can you please provide us some information, how to implement this correctly?

Thank you very much in advance.

Related