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

GPIO ADC and S210

Hi, I am developing an application to capture data on a PC over ANT+ using the ANTUSB-m as slave and the nRF51 DK as master.

In order to test my program I want to be able to measure a GPIO input on the DK and send the value over ANT+ to the USB device.

My problem is that I'm not really a coder and I am really just looking for a quick and dirty solution for the testing. Is it possible to combine the speed and cadence example from the Keil library with the 'adc sampling' example in Github and then send the result of the adc instead of the speed and cadence that the Keil demo creates? (does that make sense?)

I have noticed that the examples in GitHub are all for the nRF51822 so won't support the S210 softdevice for ANT.

My problem is similar to this post but for S210.

Thanks in advance,

Darren.

Parents
  • Hi

    The nRF51422 and nRF51822 are actually the same chip with only one exception, see this thread. It should be fairly easy to port the ADC examples on Github to the S210. Just copy the code in one of the non BLE examples into your ANT project. Just make sure you set the priority of the ADC interrupt in a similar way as done in the BLE examples, i.e. with sd_nvic_setPriority function instead of calling NVIC directly.

Reply
  • Hi

    The nRF51422 and nRF51822 are actually the same chip with only one exception, see this thread. It should be fairly easy to port the ADC examples on Github to the S210. Just copy the code in one of the non BLE examples into your ANT project. Just make sure you set the priority of the ADC interrupt in a similar way as done in the BLE examples, i.e. with sd_nvic_setPriority function instead of calling NVIC directly.

Children
Related