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

SoftDevice and TIMER3

nRF52840, SDK16.0.0, S132v7.0.1

I'm checking the accuracy of an LFXO 32KHz oscillator for manufacturing test purposes.

My rough plan is:

  1. Initialize and clear TIMER3 (HFXO)
  2. Set the TIMER3 comparison value to the duration of my test, converted to counter values.
  3. Sample RTC1 and store it as the "before" time.
  4. Enable TIMER3 with an ISR event handler.
  5. Wait
  6. In my event handler, sample RTC1 again, store it as the "after" time.
  7. Back in my application, example "after - before" for accuracy based on the duration of my test.

The wrinkle here is that SoftDevice is actively advertising during this time, and possibly servicing BLE connections. Will SD defer or delay my TIMER3 event handler? My strategy requires very little latency around TIMER3.

Thanks,

Charles

Parents Reply Children
No Data
Related