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

How trigger sampling through PPI on an RTC event?

Hi,

I am using nRF52832 and softdevice is S132 adk13.1. My application is read 3 ADC channel one by one and send this value to android app using NUS. For this i have use This Time drive Adc exmple but for this is very high power consumption and also not able to achive 4096Hz sampling frequency. This my code is replace to RTC it is low power consumption. But now problem facing is not able to trigger sample though PPI on RTC for 3 ADC channel. Can you provide me dome useful function or reference e.g. i am already use This saadc_low_power. When i send command for start saadc adc is start but saadc call back function is not call and that's why data is not sent to android apps.

Thanks in advanced...

Parents
  • Basically anything that has a hardware register for an task/event can be tied to a PPI channel. So, in your application you would need to tie the RTC event compare or event overflow to the SAADC TASKS_START or TASKS_SAMPLE event via PPI. You will still need to have inited the saadc elsewhere and the result will still hit the callback handler. But this way the execution is all in PPI.

Reply
  • Basically anything that has a hardware register for an task/event can be tied to a PPI channel. So, in your application you would need to tie the RTC event compare or event overflow to the SAADC TASKS_START or TASKS_SAMPLE event via PPI. You will still need to have inited the saadc elsewhere and the result will still hit the callback handler. But this way the execution is all in PPI.

Children
No Data
Related