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

SAADC task with RTC IRQ start sampling delayed

Hey people!

First of all, I am still kind of a noob. I am developing in Eclipse Mars (4.5.2) using the SDK version 13.0.0. I used the SAADC sampling example. My application performs a communication through SPI with a sensor and then samples a voltage using SAADC in low power mode (no burst, no over-sample,...). The SPI communications needs to happen at least 10 times every second while the SAADC task is enough at a rate of once every hour (battery level sampling). The whole data is then sent through BLE.

I did all the things needed for the timing. An RTC IRQ wakes up the SAADC every 60 minutes, but for some reason, when the device is switched on it does not perform the first sample until the time has passed, the first hour it sends zeros.

Is there any way to tell the RTC to make an IRQ once before starting counting? Any other idea?

If you need the code, simply look at the SAADC example. I just need to understand it.

Thank you all for your time!

Parents Reply Children
No Data
Related