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

Non blocking sd_temp_get (using value captured for crystal derived LF tuning)

According to the doc;

 * This function will block until the temperature measurement is done.
 * It takes around 50 us from call to return.

Instead I'd like to return the value that was attained by the periodic LF tuning code inside the softdevice code. How to do it?

Parents Reply
  • Hi Jared,

    No, you didn't :)

    There are two scenarios;

    1. the softdevice is using TEMP for LF tuning, in which case it is already sampling the TEMP peripheral.
    2. TEMP isn't being used and calling it via softdevice will need to take a sample (50us).

    What I'm asking is to avoid the latency of (2), I would have thought the value of (1) could be returned instead. I think it polls every 4 seconds or something, more than enough for my needs.

    Regards,

    Andrew




Children
Related