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:
- Initialize and clear TIMER3 (HFXO)
- Set the TIMER3 comparison value to the duration of my test, converted to counter values.
- Sample RTC1 and store it as the "before" time.
- Enable TIMER3 with an ISR event handler.
- Wait
- In my event handler, sample RTC1 again, store it as the "after" time.
- 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