<?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 to GPIO pin nrf51</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9988/lpcomp-to-gpio-pin-nrf51</link><description>Hallo everyone. I&amp;#39;m working with the processor nRF51422 with S210 softdevice and I would like to ask you if it&amp;#39;s possible to drive results of LPCOMP to a General-purpose I/O pin (GPIO). My purpose is to have a low output on GPIO pin when the signal from</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Nov 2015 16:17:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9988/lpcomp-to-gpio-pin-nrf51" /><item><title>RE: LPCOMP to GPIO pin nrf51</title><link>https://devzone.nordicsemi.com/thread/37044?ContentTypeID=1</link><pubDate>Mon, 09 Nov 2015 16:17:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf9a540a-a7eb-4036-86d5-5c74904803ff</guid><dc:creator>sebastiano.xinet</dc:creator><description>&lt;p&gt;Thanks for the response. Sorry for haven&amp;#39;t seen it before on the electrical specifications but I misunderstood the description of tLPCANADET and I didn&amp;#39;t think it was related with my issue.
We&amp;#39;ll check soon both max frequency and above LPCOMP configuration. Thanks again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPCOMP to GPIO pin nrf51</title><link>https://devzone.nordicsemi.com/thread/37043?ContentTypeID=1</link><pubDate>Mon, 09 Nov 2015 12:13:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d790b8fa-19cb-4f57-ae76-f479156fc474</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi. Sorry for the late response. If you look up the &lt;a href="http://infocenter.nordicsemi.com/topic/nrf52.v1.7/Chunk972340011.html?cp=1_1_0_35_3#unique_1170734315"&gt;electrical specifications of the LPCOMP&lt;/a&gt; you will see that the time from a Vin crossing to a generated event is 3 uS. Hence, you can use a max input frequency of 333 kHz.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPCOMP to GPIO pin nrf51</title><link>https://devzone.nordicsemi.com/thread/37042?ContentTypeID=1</link><pubDate>Mon, 02 Nov 2015 10:39:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36aa0276-6886-463e-9993-70b014668c68</guid><dc:creator>sebastiano.xinet</dc:creator><description>&lt;p&gt;Hi. Thanks for the update! We&amp;#39;ll check soon and look if we can solve this problem.
Another question that we need for our device is the maximum frequency that the LPCOMP input can hold.
Thanks again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPCOMP to GPIO pin nrf51</title><link>https://devzone.nordicsemi.com/thread/37041?ContentTypeID=1</link><pubDate>Fri, 30 Oct 2015 10:22:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6b4deed-c47c-4d52-bfc6-876e2cf287b9</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;You can use PPI channels by configuring the LPCOMP to trigger an event when your VIN is crossing some reference voltage level. This event can then be connected via a PPI channel to trigger a task in the GPIOTE module and e.g. toggle a pin. I have attached an example setting up an application like this.&lt;/p&gt;
&lt;p&gt;However, there is a catch. In this example the event is triggered on every crossing of the reference voltage and the GPIOTE pin is set to &amp;#39;high&amp;#39; as the initial logic value. Hence, whether the GPIO pin is inverting or following the VIN signal depends on the startup level of VIN. I don&amp;#39;t have the time to look into this problem, but you can investigate if you can configure the GPIOTE and LPCOMP in a different manner or maybe you can use additional PPI and GPIOTE channels to do some magic. A more complicated solution might be to use the ADC and measure the initial voltage level of VIN and then after that configure the GPIOTE pin with the correct initial logic level.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/lpcomp_2D00_trigger_2D00_gpio.zip"&gt;Example&lt;/a&gt;. Based on SDK V9 and tested on a nRF51 DK without any softdevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>