<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>soft device interrupts</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71621/soft-device-interrupts</link><description>Hello, 
 
 I just have a basic query. I am using soft device S132. In the product specification, it&amp;#39;s written that interrupts occur while advertising/scanning/connection. Is there any way possible for me to identify each and every interrupt that occur</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Feb 2021 08:12:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71621/soft-device-interrupts" /><item><title>RE: soft device interrupts</title><link>https://devzone.nordicsemi.com/thread/294544?ContentTypeID=1</link><pubDate>Tue, 16 Feb 2021 08:12:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70feaf6d-56b7-4de0-9bd4-0803c3a3c62e</guid><dc:creator>Charan</dc:creator><description>&lt;p&gt;Thanks Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: soft device interrupts</title><link>https://devzone.nordicsemi.com/thread/294543?ContentTypeID=1</link><pubDate>Tue, 16 Feb 2021 08:08:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a23dc053-885d-46cb-97e1-777c7f2964c1</guid><dc:creator>Edvin</dc:creator><description>[quote user="Havig"]Can the SAADC read negative voltage?[/quote]
&lt;p&gt;&amp;nbsp;Yes. But only small values (not intended for reading negative voltages using the ADC. Only intended for calibration).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Havig"]I want to implement a watchdog timer for every ISR routine/event handler. For example, during scanning, around 60us is spent while preparing the radio.&amp;nbsp;If I had the notification before and after this, it would be easer for me to know when to kick the dog.&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;Ok. As I said, you can use radio notifications to know&amp;nbsp;up front any radio events that will occur. Unfortunately, these events doesn&amp;#39;t say whether it is a scan window or something else that is about to happen, and you don&amp;#39;t get an event when the scan window is complete. I guess you must rely on other events to feed the watchdog.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: soft device interrupts</title><link>https://devzone.nordicsemi.com/thread/294430?ContentTypeID=1</link><pubDate>Mon, 15 Feb 2021 15:07:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f968ee2-7cf0-423d-9539-82e75676921a</guid><dc:creator>Charan</dc:creator><description>&lt;p&gt;Thanks Edvin for your quick response.&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/71621/soft-device-interrupts/294415#294415"]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?[/quote]
&lt;p&gt;I want to implement a watchdog timer for every ISR routine/event handler. For example, during scanning, around 60us is spent while preparing the radio.&amp;nbsp;If I had the notification before and after this, it would be easer for me to know when to kick the dog.&amp;nbsp;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/71621/soft-device-interrupts/294415#294415"]so if you could enlighten me, that would be great. And what do you mean by error rate? Do you mean accuracy?[/quote]
&lt;p&gt;For example, consider my sampling reference is 1V. Now, my ADC can have read&amp;nbsp;0.98 and 1.02V and adjust it&amp;#39;s offset accordingly but if my reference is 0V,&amp;nbsp;the SAADC can&amp;#39;t read&amp;nbsp;-0.02V. Or will the ADC value read be in 2&amp;#39;s complement or am I missing some basic concept here. Can the SAADC read negative voltage?&lt;/p&gt;
&lt;p&gt;And yes, by error rate, I mean accuracy. Sorry for not being clear the last time around.&lt;/p&gt;
&lt;p&gt;Thanks a Lot and Cheers&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: soft device interrupts</title><link>https://devzone.nordicsemi.com/thread/294415?ContentTypeID=1</link><pubDate>Mon, 15 Feb 2021 14:19:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95e43488-daf6-44b2-bf6d-61e65b87eeb3</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Is there any way possible for me to identify each and every interrupt that occur like radio timeslot prepare, Radio start, pre processing etc.[/quote]
&lt;p&gt;&amp;nbsp;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?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Radio notification only helps me in notifying when the softDevice uses radio and not each and every interrupt[/quote]
&lt;p&gt;&amp;nbsp;What interrupts are you missing?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]&lt;p&gt;Also, I am using sd_app_evt_wait() which runs in WFE() and not WFI(). This was what&amp;#39;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.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;&amp;nbsp;If you are using sd_app_wait() you don&amp;#39;t need to use WFE or WFI. The softdevice does this for you.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]I read that the sampling voltage reference is GND, which makes me wonder whether or not the error rate will be high.[/quote]
&lt;p&gt;&amp;nbsp;Why would it? It may be that you are on to something, but I don&amp;#39;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?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>