<?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>LPCOMP/COMP problem of NRF52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22570/lpcomp-comp-problem-of-nrf52832</link><description>Hi
I&amp;#39;m working on detecting voltage change direction(up or down) by using LPCOMP or COMP.
LPCOMP initiates as following settings:
detection: NRF_LPCOMP_DETECT_UP.
reference: NRF_LPCOMP_REF_SUPPLY_11_16. 
 Toggle the detection direction in the LPCOMP</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 09 Jun 2017 05:52:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22570/lpcomp-comp-problem-of-nrf52832" /><item><title>RE: LPCOMP/COMP problem of NRF52832</title><link>https://devzone.nordicsemi.com/thread/88796?ContentTypeID=1</link><pubDate>Fri, 09 Jun 2017 05:52:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b893109c-2c5b-427b-aad0-b9c2d3e46575</guid><dc:creator>bing</dc:creator><description>&lt;p&gt;Yes. I tested using SDK13. It is OK. The problem is nrf_lpcomp_ref_t is wrongly defined in SDK11.
NRF_LPCOMP_REF_SUPPLY_1_16 to NRF_LPCOMP_REF_SUPPLY_15_16, they are all the same( LPCOMP_REFSEL_REFSEL_Ref1_16Vdd).&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPCOMP/COMP problem of NRF52832</title><link>https://devzone.nordicsemi.com/thread/88795?ContentTypeID=1</link><pubDate>Thu, 08 Jun 2017 12:39:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94620ff6-4c96-4fd4-a8af-36c2ae0c14a5</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Do you see the same problem if you test the bare lpcomp example in SDK 11 and SDK 13? (without using the softdevice)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPCOMP/COMP problem of NRF52832</title><link>https://devzone.nordicsemi.com/thread/88794?ContentTypeID=1</link><pubDate>Thu, 08 Jun 2017 10:30:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6ec5d42-e2f3-4b61-994c-cb680aff070f</guid><dc:creator>bing</dc:creator><description>&lt;p&gt;Sorry. I add the comment to a wrong position.&lt;/p&gt;
&lt;p&gt;Case 2, my init settings for LPCOMP : direction is NRF_LPCOMP_DETECT_UP and reference is NRF_LPCOMP_REF_SUPPLY_11_16. And in the LPCOMP irq handler, the direction will be changed to an opposite side by doing uninit and re-init. By the way, I am using SDK11 and softdevice is 2.0.0 (S132). Is there any problem? Please correct me if I am wrong. Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPCOMP/COMP problem of NRF52832</title><link>https://devzone.nordicsemi.com/thread/88792?ContentTypeID=1</link><pubDate>Thu, 08 Jun 2017 10:27:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5a8e64c-0ffa-4696-a580-c88de6c15d5e</guid><dc:creator>bing</dc:creator><description>&lt;p&gt;Hi Kristin,&lt;/p&gt;
&lt;p&gt;Case 2, my init settings for LPCOMP : direction is NRF_LPCOMP_DETECT_UP and reference is NRF_LPCOMP_REF_SUPPLY_11_16. And in the LPCOMP irq handler, the direction will be changed to an opposite side by doing uninit and re-init.
By the way, I am using SDK11 and softdevice is 2.0.0 (S132).
Is there any problem?  Please correct me if I am wrong.
Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPCOMP/COMP problem of NRF52832</title><link>https://devzone.nordicsemi.com/thread/88793?ContentTypeID=1</link><pubDate>Wed, 07 Jun 2017 11:26:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3460759-fea5-4e96-b156-188e563511ff</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;In case 2, what does your code for setting up the LPCOMP look like?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>