<?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>Using LPCOMP with nRF Connect SDK (Zephyr)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94096/using-lpcomp-with-nrf-connect-sdk-zephyr</link><description>I&amp;#39;m trying to use the LPCOMP to wake up from system OFF in Zephyr. 
 I can see the device tree &amp;quot;comp&amp;quot; node definition in nrf52840.dtsi but that is about it. 
 1. How can I define the AIN input to the comp node in the device tree? 
 2. How to I setup the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Mar 2024 07:10:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94096/using-lpcomp-with-nrf-connect-sdk-zephyr" /><item><title>RE: Using LPCOMP with nRF Connect SDK (Zephyr)</title><link>https://devzone.nordicsemi.com/thread/472355?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2024 07:10:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15c05486-742f-4130-a396-a5106b806e6a</guid><dc:creator>QBSho</dc:creator><description>&lt;p&gt;Thank you,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However&amp;nbsp;my DK board is not working with the code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But in the .dts also the&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;comp&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;compatible&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;nordic,nrf-lpcomp&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;status&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;okay&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;information and it is still greyed out&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1709708897638v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR Sebastian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using LPCOMP with nRF Connect SDK (Zephyr)</title><link>https://devzone.nordicsemi.com/thread/397297?ContentTypeID=1</link><pubDate>Thu, 24 Nov 2022 03:16:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:998bc614-d9cf-4fae-b77d-404e7c46ec16</guid><dc:creator>FrancoisG</dc:creator><description>&lt;p&gt;Thank you, it looks a bit weird but it does work.&lt;/p&gt;
&lt;p&gt;If anyone else is interested, I distilled the example, changed every comp to lpcomp and added it to my simple project here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/fgervais/project-nrf-leak-detector/tree/20bef5062827cb92d8cb2c6136ccd1e757767391"&gt;github.com/.../20bef5062827cb92d8cb2c6136ccd1e757767391&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using LPCOMP with nRF Connect SDK (Zephyr)</title><link>https://devzone.nordicsemi.com/thread/397063?ContentTypeID=1</link><pubDate>Wed, 23 Nov 2022 07:52:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a753608-873b-4c05-a69b-e8fde5b98d31</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;There is no zephyr driver for that. You need to use nrfx driver (&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfx/drivers/comp/driver.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfx/drivers/comp/driver.html&lt;/a&gt;) directly instead. There is sample from previous case you can look at&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/78257/using-nrf_connect-zephyr-with-the-comparator-interrupt"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/78257/using-nrf_connect-zephyr-with-the-comparator-interrupt&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Kazi Afroza Sultana&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>