This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

High Sample Rate with ADC and SoftDevice

I am trying to sample the ADC every 2ms. I notice lots of slowness with BLE advertising and typically can't connect to device over BLE when sampling. I am using PPI, configuring, and starting before the softdevice is enabled.

  1. Should nRF51822 be capable of reading ADC every 1ms to 2ms reliably?

  2. Should I move all the PPI configuration to after the softdevice is enabled and be using the sd_ppi functions?

Thanks!

Edit: Headline, format, added tags.

Parents
  • Ok,

    I don't have any experience developing code for nrf51822, but I want to buy a evaluation kit and start developing. Currently I'm working with atmega328, but I want to try making my app work on a nrf51822.

    I have a pulse sensor that triggers an interrupt every 2ms reading a value on ADC, so as far as I read that can't be done on the nrf?

    Thanks!

Reply
  • Ok,

    I don't have any experience developing code for nrf51822, but I want to buy a evaluation kit and start developing. Currently I'm working with atmega328, but I want to try making my app work on a nrf51822.

    I have a pulse sensor that triggers an interrupt every 2ms reading a value on ADC, so as far as I read that can't be done on the nrf?

    Thanks!

Children
  • Hi Vlad

    Well, as mentioned previously, this depends on the amount of data you want to send in each connection interval. If you only need to send 1 or two packets per connection interval then you should be able to read the ADC every 2 milliseconds. So if you need to send ~20 kbps or less in one direction, then you should be able to sample every 2 ms (500 Hz).

Related