<?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>Reading current pulse train</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57300/reading-current-pulse-train</link><description>I am working with the Nordic NRF52840. I need a way of reading current pulse counts over a two wire system coming in from an external sensor. This external sensor is reliable and works by having the output of the sensor reader (will be the nordic board</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Feb 2020 15:11:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57300/reading-current-pulse-train" /><item><title>RE: Reading current pulse train</title><link>https://devzone.nordicsemi.com/thread/234232?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2020 15:11:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac2ff4a8-5cb3-4c0b-94fa-1b655314a9f2</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We can continue the discussion in the your &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/57418/comparator-ppi-timer-counter-issue"&gt;other post.&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading current pulse train</title><link>https://devzone.nordicsemi.com/thread/232790?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2020 11:03:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ddc4b0e-72cc-4091-928d-bd3ce8f1c9b0</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;I&amp;#39;ve had a good look at the code you linked to but, I need to change the input from PIN_In to a comparator using an external reference. Where in your example do I make these changes. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading current pulse train</title><link>https://devzone.nordicsemi.com/thread/232641?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2020 15:29:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aee7da28-6007-42e9-bc3d-afe0f2cf1fea</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;Also I cant find the pinout for the NRF52840-dk. I want to set the comparator output to the input of the counter timer. And give the comparator an external voltage reference to measure against. How do I setup this input? I have got the following code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;//Configuring lpcomp
    NRF_LPCOMP -&amp;gt; PSEL = (LPCOMP_PSEL_PSEL_AnalogInput2 &amp;lt;&amp;lt; LPCOMP_PSEL_PSEL_Pos);//Use analog input 2 as an input P04
    NRF_LPCOMP -&amp;gt; EXTREFSEL = (LPCOMP_EXTREFSEL_EXTREFSEL_AnalogReference0 &amp;lt;&amp;lt; LPCOMP_EXTREFSEL_EXTREFSEL_Pos);//Set up external reference 0 P02
    NRF_LPCOMP -&amp;gt; REFSEL = (LPCOMP_REFSEL_REFSEL_ARef &amp;lt;&amp;lt; LPCOMP_REFSEL_REFSEL_Pos);//Use external reference
    NRF_LPCOMP -&amp;gt; ANADETECT = (LPCOMP_ANADETECT_ANADETECT_Cross &amp;lt;&amp;lt; LPCOMP_ANADETECT_ANADETECT_Pos);//Detect a change over the reference upon crossing the reference
    
    //Enable and start the low power comparator
    NRF_LPCOMP -&amp;gt; ENABLE = LPCOMP_ENABLE_ENABLE_Enabled;
    NRF_LPCOMP -&amp;gt; TASKS_START = 1;&lt;/pre&gt;Are my comments of the pin connections for analog reference 0 and analog input 2 correct?&lt;/p&gt;
&lt;p&gt;I got them from this pinout for a similar nordic dk :&amp;nbsp;&lt;a href="https://os.mbed.com/platforms/Nordic-nRF52-DK/"&gt;https://os.mbed.com/platforms/Nordic-nRF52-DK/&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading current pulse train</title><link>https://devzone.nordicsemi.com/thread/232315?ContentTypeID=1</link><pubDate>Mon, 03 Feb 2020 12:36:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e01ec6a-74d7-44e2-be2a-2b2ab5c7f7ee</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have some example code in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/53139/nrf52-calculation-method-between-rising-edges/217208#217208"&gt;this post&lt;/a&gt;. (The &amp;quot;gpiote_timer_ppi.zip&amp;quot; attachment in the post)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>