Skip to content

mdreyercw/nRF5-ble-timesync-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nRF5-ble-timesync-demo

nRF52 clock synchronization demo code

SDK version

Use the latest SDK version in this repo for the latest version of this demo. Older SDKs are included as legacy reference.

Demo setup

Two example applications are included, BLE central and BLE peripheral UART. Use two nRF52-DK/nRF52840-DK and program one example onto each DK.

Note that the timing demo functionality is independent of the BLE role, and more than two DKs can be used. In this system there is one time sync transmitter, but no limit to the number of receivers. The same example can also be programmed to the DKs with the same time sync functionality.

Demo usage

By default, the examples are configured to be in receiver mode, and no GPIO will be toggling. Press Button 1 on one of the DKs to switch from receiver to transmitter mode. The transmitter will begin toggling a GPIO immediately, and all 4 LEDs should light up. When the receiver DK(s) receives the first sync packet, it will start toggling a GPIO as well.

The GPIO assignment is as follows:

DK GPIO
nRF52-DK P0.24
nRF52840-DK P1.14

Measure performance

Connect an oscilloscope or logic analyzer to the toggling GPIO and observe the delay between each GPIO edge.

Oscilloscope measurement

About

nRF52 clock synchronization demo code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 98.5%
  • Assembly 1.3%
  • Makefile 0.2%
  • CSS 0.0%
  • HTML 0.0%
  • Batchfile 0.0%