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

ADC sampling after wireless timer syncronization

Hi all,

I have tested successfully the wireless timer syncronization proposed by:

https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/wireless-timer-synchronization-among-nrf5-devices

Now I want to add a new feature, that is the ADC sampling together with the PIN toggling.

I think I have to merge in someway the project with:

https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v13.0.0%2Fnrf_dev_saadc_example.html

but I have some issues to find the right part where I have to place the PPI assignement between the internal syncronized TIMER and the ADC sample task.

Any idea to start with?

Thanks,
Alessio

  • Hi,

    What have you tested and have you been stuck at a error? 

    The SAADC example show how PPI can be used to link a event to a task, and you should be able to mix and tricks the events and tasks as you like. So if you are using a synchronized timer and you are using it to generate a event, then using that event to triggers a SAMPLE from the SAADC could be done. 

    NOTE: make sure you are not re-using the same timer TIMER0 as the SAADC peripheral example and softdevice uses that timer. The same goes for PPI channels, the Sync code uses hard coded, but SAADC example use the driver witch is dynamically allocating.

    Regards,
    Jonathan

Related