Currently working on an app which will utilize the ADC component of an NRF chip.
The app will use the full bluetooth stack SF132;6.0.0, adc, and will need to have ability to send uart.
First: I need to initialize the ADC for multiple channels and to not be triggered by a timer, but by the app.
Second: BLE will always be advertising/listening for a host device.
Third: UART will stream a small data packet ~10 Bytes, every second or so.
What do I need to do so that I can call the ADC read for all channels?
What would be the best way to get a 1msec tick, not a SysTick as I will need it to work even when the device is asleep.
How should the UART be initialized so that it will run even when the softdevice is handling btle packets?
Thanks.