<?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>NRF52 COMPARATOR SAMPLE CODE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/100966/nrf52-comparator-sample-code</link><description>Hello, 
 Good Afternoon. 
 i want to use comparator of nrf52832 . 
 is any sample code for this??</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Jun 2023 13:18:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/100966/nrf52-comparator-sample-code" /><item><title>RE: NRF52 COMPARATOR SAMPLE CODE</title><link>https://devzone.nordicsemi.com/thread/432033?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2023 13:18:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f521e505-1e25-41c1-8063-80d5b3259e90</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you able to run the unmodified example and get the results that is described in the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lpcomp_example.html?cp=9_1_4_6_19"&gt;documentation&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Note that&amp;nbsp;LPCOMP_CONFIG_DETECTION has to be set correctly for the application interrupt to enabled. For example in the unmodified example,&amp;nbsp;LPCOMP_CONFIG_DETECTION is set to DOWN, meaning that only DOWN events will result in a application interrupt.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 COMPARATOR SAMPLE CODE</title><link>https://devzone.nordicsemi.com/thread/432002?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2023 12:08:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7121d3fd-57bb-411f-9788-f52a5a6d8141</guid><dc:creator>Embel_Tech</dc:creator><description>&lt;p&gt;I have applied vcc to AN2 (input) and taken internal reference vdd/16 so its expecting RESULT should 1(above) .&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;is it necessary to add&amp;nbsp;&amp;nbsp;NRF_LPCOMP-&amp;gt;TASKS_SAMPLE=1; in while loop???&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 COMPARATOR SAMPLE CODE</title><link>https://devzone.nordicsemi.com/thread/431950?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2023 10:46:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2aa46969-2e99-47c8-a72c-5005b6e7a740</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;What are you measuring and what do you expect the RESULT register to show?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 COMPARATOR SAMPLE CODE</title><link>https://devzone.nordicsemi.com/thread/431870?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2023 06:08:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c90fd3c5-eae6-41ae-9a45-2f6a905168f0</guid><dc:creator>Embel_Tech</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have gone through lpcomp example from sdk .&lt;/p&gt;
&lt;p&gt;getting UP event but RESULT resistor of lpcomp from debug window showing 0 below .&lt;/p&gt;
&lt;p&gt;what is wrong here???&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 COMPARATOR SAMPLE CODE</title><link>https://devzone.nordicsemi.com/thread/431811?ContentTypeID=1</link><pubDate>Mon, 19 Jun 2023 14:26:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b694784b-fcf2-436a-8120-c4421de4412b</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We don&amp;#39;t have a sample for it in Zephyr yet, it has been discuss in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/77741/using-comparator-functions-in-zephyr-and-nrf-connect/321291"&gt;this&lt;/a&gt; case. For nRF5SDK see &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lpcomp_example.html?cp=9_1_4_6_19"&gt;this &lt;/a&gt;sample,&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>