For a project that uses the CC2540, I need to perform ADC conversions periodically (every 4ms). It doesn't matter if there is some jitter in the time between conversions as long as it averages out to 4ms (+/- 10us).
I could use one of the available timers to generate a periodic interrupt to achieve this but that would prevent me from entering a low power mode between conversions so ideally I would like to use the OSAL ( which users the 32.768kHz sleep timer) to schedule a periodic task (every 4ms) but am not sure if it is possible to get the accuracy I require using this method as the BLE stack obviously has highest priority.
Can anyone tell me if what I want to do is feasible using the OSAL to schedule the task?