<?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 events triggers by other inputs</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58070/lpcomp-events-triggers-by-other-inputs</link><description>Hi 
 
 I am currently doing a project based on the nRF52840 MCU and evaluation board 
 as part of my project, I have used the LPComp module, and set it up to trigger on rising voltage 
 
 I have done so by following the LPComp example of the 15.3 SDK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Feb 2020 09:42:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58070/lpcomp-events-triggers-by-other-inputs" /><item><title>RE: LPComp events triggers by other inputs</title><link>https://devzone.nordicsemi.com/thread/236186?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2020 09:42:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eac5c8fb-022d-43b8-9059-e20b5a61eec5</guid><dc:creator>Aviv Okon</dc:creator><description>&lt;p&gt;I tested this again, and the LPComp triggers correctly&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know how testing it on the wrong pins seemed to work correctly, but I guess I must have caused spikes in the currents of the ICs when I changed the voltage of the other pins&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thank you for your help, feel free to close this case&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPComp events triggers by other inputs</title><link>https://devzone.nordicsemi.com/thread/236162?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2020 08:44:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bb70ae8-2af0-43b4-8791-05e26c4b7496</guid><dc:creator>Aviv Okon</dc:creator><description>&lt;p&gt;I found the issue&lt;/p&gt;
&lt;p&gt;thanks to your comment, I realized that I had used the wrong pins (I took the pin number from the pca file instead of looking at the datasheet)&lt;/p&gt;
&lt;p&gt;testing on the correct pins, it seems that everything is working properly&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll test again to verify that the LPComp itself works correctly on the correct pins&lt;/p&gt;
&lt;p&gt;not sure how changing the states of other pins generated the events, but I must have caused currents in the ICs and caused the issue&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thanks a lot for your assistance, your test made me realize my error&lt;/p&gt;
&lt;p&gt;after I&amp;#39;ve verified everything works, I&amp;#39;ll let you know and close this&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPComp events triggers by other inputs</title><link>https://devzone.nordicsemi.com/thread/236144?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2020 08:03:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3354ced3-5b12-4952-9369-0d682d69ad1d</guid><dc:creator>Aviv Okon</dc:creator><description>&lt;p&gt;thanks for the suggestion&lt;/p&gt;
&lt;p&gt;currently the project is working on the nRF52840 evaluation board, so the circuit should be that of the evaluation board&lt;/p&gt;
&lt;p&gt;if the issue is indeed caused by sudden changes to the ICs, it is either an issue with the two evaluation boards I have, or with the HW in general, though I hope it is something I did wrong in the code&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I will keep your suggestions in mind and relay them to our HW team if we determine the issue is in fact HW related&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPComp events triggers by other inputs</title><link>https://devzone.nordicsemi.com/thread/236068?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2020 17:18:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80c6422c-57d8-44f4-9691-0b1b1a193408</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;What do you have the LPCOMP pins connected to when you test this? I&amp;#39;m not able to generate the event when I have AIN0 connected to VDD and AIN1 connected to GND. When the pins are left unconnected/floating, I can see the event being generated many times, but I would expect the voltage level on floating pins bo to be affected by external circuitry.&lt;/p&gt;
&lt;p&gt;I also tested with AIN0/AIN1 both connected to GND and both connected to VDD, not able to generate the events by pressing buttons.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPComp events triggers by other inputs</title><link>https://devzone.nordicsemi.com/thread/236040?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2020 15:36:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7adda4d-3d27-412d-80d4-841fa1639640</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;You might consider ground bounce or Vdd dip; should the LPCOMP input level be near to the switching threshold, such bounce or dip occurring as a result of a change in applied load to Gnd and Vcc - such as turning an LED on or off - can push the sampled pin (actually maybe not the pin but internal circuit) to the threshold unexpectedly. A simple test is to run the same code and disconnect in turn anything that changes the current, typically the LEDs. If that changes the issue, then solutions involve signal routing, eg supply the LED from the battery but isolate the nRF via a schottcky or ideal diode with a local capacitor, or synchronously suppress the LPCOMP during LED transitions. Posting the circuit would allow more suggestions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPComp events triggers by other inputs</title><link>https://devzone.nordicsemi.com/thread/235957?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2020 13:17:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5078e4af-1011-493f-8f24-e1714195877f</guid><dc:creator>Aviv Okon</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Sosense_5F00_POC.7z"&gt;devzone.nordicsemi.com/.../Sosense_5F00_POC.7z&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;what you are looking for is the sosense.emProject file (I recently ported to SES)&lt;/p&gt;
&lt;p&gt;you may need to comment out some code, as it is expecting some peripherals, though it may work without any changes (please verify that nrf_drv_lpcomp_disable() is commented out in sosense_lpcomp_drv.c)&lt;/p&gt;
&lt;p&gt;I noticed that in normal mode, pressing button 2 generates the event (I added the effect of LED 3 lighting for 0.5s when the event is sent)&lt;/p&gt;
&lt;p&gt;In validation mode (press botton 1 when starting up), most actions generate the events (you can clearly see the prints by connecting with Tera Term or a similar program). you should see many logs of &amp;quot;LPComp High Voltage event&amp;quot;. using the LED CLI command is easiest to test this&lt;/p&gt;
&lt;p&gt;I hope this helps you test it, and please let me know if I can provide any more assistance, as it isn&amp;#39;t a small project and is kind of messy (we&amp;#39;re trying many things with it)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPComp events triggers by other inputs</title><link>https://devzone.nordicsemi.com/thread/235900?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2020 10:06:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa69fde7-4d96-46c3-85bb-dc07a88b5ed8</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Ok, these pins should not overlap with the analog inputs. You can upload a zipped version of the project as an attachment to your comment/answer here (Insert -&amp;gt; Insert image/video/file). If you do not want to post the code in public, I can convert the case into a private one.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPComp events triggers by other inputs</title><link>https://devzone.nordicsemi.com/thread/235832?ContentTypeID=1</link><pubDate>Sun, 23 Feb 2020 07:40:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7de522e8-3add-47fd-864b-d93f38cd0524</guid><dc:creator>Aviv Okon</dc:creator><description>&lt;p&gt;the LEDs trigger these events, and the LEDs are configured normally on the evaluation board (the BSP_LED_X GPIOs)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I can try to provide the full project, if there is some way to send it your way (it&amp;#39;s currently in SES, though I doubt that would cause issues)&lt;/p&gt;
&lt;p&gt;let me know which method would be most comfortable for you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPComp events triggers by other inputs</title><link>https://devzone.nordicsemi.com/thread/235476?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 13:49:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8898865f-52a8-4ded-9aef-6642bfc0a485</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Which GPIOs are you using for the other modules that trigger the events?&lt;/p&gt;
&lt;p&gt;Can you provide a full project that can be used to reproduce this behavior?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>