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

Advertising and Fast ADC Sampling

Hi, I am a newbie. I understand that a similar question was asked earlier, but I couldn't get an answer specific to my questions. My goal is to sample an analog signal at 40 KHz with 8 bit resolution, do some processing and advertise one integer value as manufacturer specific data. I understand from S110_SoftDevice_Specification_2.0 that the CPU halts during BLE events and there is advertising latency. Without the SoftDevice, I can do this as the ADC of nrf51822 (Rev3) can sample at 50KHz with 8 bit resolution. With the SoftDevice however, I can only sample at 1KHz. Is it possible to actually sample at 40 KHz with the SoftDevice? If not, what's the maximum sampling rate that I can get? Will the Time Slot API help? Thanks in advance!

Parents
  • FormerMember
    0 FormerMember

    With the recent S110 softdevices I think the processor load is much less intensive. I've a setup working with sampling at around 1.5 kHz while having a fast connection. I use the timer event to send a PPI task to start ADC sampling and with high priority ADC IRQ get it before the next time it samples.

    If you are looking only for advertisements I would suggest going bare metal without Softdevice as this gives you much more control.

Reply
  • FormerMember
    0 FormerMember

    With the recent S110 softdevices I think the processor load is much less intensive. I've a setup working with sampling at around 1.5 kHz while having a fast connection. I use the timer event to send a PPI task to start ADC sampling and with high priority ADC IRQ get it before the next time it samples.

    If you are looking only for advertisements I would suggest going bare metal without Softdevice as this gives you much more control.

Children
No Data
Related