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

soft device interrupts

Hello,

I just have a basic query. I am using soft device S132. In the product specification, it's written that interrupts occur while advertising/scanning/connection. Is there any way possible for me to identify each and every interrupt that occur like radio timeslot prepare, Radio start, pre processing etc. Radio notification only helps me in notifying when the softDevice uses radio and not each and every interrupt. Also, I am using sd_app_evt_wait() which runs in WFE() and not WFI(). This was what's recommended in various posts in Devzone. Is it right now necessary for me to shift to WFI() if I need to know when each and every interrupt occurs and if yes, is there any consequences to it.

Second question is a bit different and not related to SoftDevice but the nrf52832 chip. I am using the SAADC and calibrate it just before initializing all the channels. Everything works fine but I need to know the algorithm in which calibration occurs. I read that the sampling voltage reference is GND, which makes me wonder whether or not the error rate will be high.

Thanks in advance

Parents
  • Hello,

     

    Is there any way possible for me to identify each and every interrupt that occur like radio timeslot prepare, Radio start, pre processing etc.

     You can use radio notifications to know up front before every radio event, but not in the detail like you describe, unfortunately. Is there a particular reason why you need this?

     

    Radio notification only helps me in notifying when the softDevice uses radio and not each and every interrupt

     What interrupts are you missing?

     

    Also, I am using sd_app_evt_wait() which runs in WFE() and not WFI(). This was what's recommended in various posts in Devzone. Is it right now necessary for me to shift to WFI() if I need to know when each and every interrupt occurs and if yes, is there any consequences to it.

     If you are using sd_app_wait() you don't need to use WFE or WFI. The softdevice does this for you.

     

    I read that the sampling voltage reference is GND, which makes me wonder whether or not the error rate will be high.

     Why would it? It may be that you are on to something, but I don't know why using GND as reference will cause a high error rate, so if you could enlighten me, that would be great. And what do you mean by error rate? Do you mean accuracy?

    Best regards,

    Edvin

Reply
  • Hello,

     

    Is there any way possible for me to identify each and every interrupt that occur like radio timeslot prepare, Radio start, pre processing etc.

     You can use radio notifications to know up front before every radio event, but not in the detail like you describe, unfortunately. Is there a particular reason why you need this?

     

    Radio notification only helps me in notifying when the softDevice uses radio and not each and every interrupt

     What interrupts are you missing?

     

    Also, I am using sd_app_evt_wait() which runs in WFE() and not WFI(). This was what's recommended in various posts in Devzone. Is it right now necessary for me to shift to WFI() if I need to know when each and every interrupt occurs and if yes, is there any consequences to it.

     If you are using sd_app_wait() you don't need to use WFE or WFI. The softdevice does this for you.

     

    I read that the sampling voltage reference is GND, which makes me wonder whether or not the error rate will be high.

     Why would it? It may be that you are on to something, but I don't know why using GND as reference will cause a high error rate, so if you could enlighten me, that would be great. And what do you mean by error rate? Do you mean accuracy?

    Best regards,

    Edvin

Children
No Data
Related