Hi guys,
I'm using following setup NRF51822, SD130, SDK 12.3.0. I control one transistor with PWM output via timer 1. Before enabling PWM I start 8bit ADC task to measure voltage on AN1 and I also start LPCOMP which triggers interrupt when AN1 cross the VDD/8
I read SD specs and see that during advertising and established connection in peripheral mode we have approx. 2% of dead time for triggering LPCOMP interrupt.
BLE connection and all SoftDevice related stuff is not important in case of LPCOMP interrupt. Minimal latency of triggering LPCOMP interrupt is the most important because it protects transistor from overcurrent, therefore I’m wondering two things… What ADC sample rate can I expect in described configuration and how to get the highest priority for LPCOMP interrupt – higher than SoftDevice.
Thank you for info.
Best regards,
Matej