<?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>Use ADC to wakeup on analog input over threshold</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/31029/use-adc-to-wakeup-on-analog-input-over-threshold</link><description>I&amp;#39;m hoping someone can tell me if I&amp;#39;m on the right track. Do I understand correctly that on an nrf51, the LPCOMP can be configured to wake the processor on an analog input, only if that input exceeds a user specified threshold, then continue sending interrupts</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Mar 2018 15:04:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/31029/use-adc-to-wakeup-on-analog-input-over-threshold" /><item><title>RE: Use ADC to wakeup on analog input over threshold</title><link>https://devzone.nordicsemi.com/thread/122867?ContentTypeID=1</link><pubDate>Mon, 05 Mar 2018 15:04:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e00d48d-a1a7-4b85-833b-5521fd7d92f7</guid><dc:creator>MattFL</dc:creator><description>&lt;p&gt;Thank you very much!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use ADC to wakeup on analog input over threshold</title><link>https://devzone.nordicsemi.com/thread/122769?ContentTypeID=1</link><pubDate>Mon, 05 Mar 2018 09:21:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71b891ec-a345-43ce-85ff-6a1966542ace</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]Am I on the right track with an nrf51 and expecting to be able to configure LPCOMP to wake the processor when an analog input exceeds a preset value, then starting processing analog input triggered interrupts as quickly as 0.1 sec after the signal that wakes it up?&amp;nbsp;[/quote]
&lt;p&gt;Yes, that is correct. You can set the LPCOMP to generate interrupt based on either an external reference, or scaling of VDD (from 1/8*VDD to 7/8*VDD), and you can generate an event on rising, falling, or both.&lt;/p&gt;
&lt;p&gt;100 ms is long enough to start processing. The 16M RC oscillator starts up in the matter of ~10 microseconds, and if you need more precise clock, you can start up the external 16M crystal (~1.5 ms).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>