<?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>COMP and external reference</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16316/comp-and-external-reference</link><description>Hi, 
 I&amp;#39;m trying to compare two RC networks by using GPIOTE, PPI, a Timer and the comparator to measure the time needed for a charge and discharge cycle for each of the networks and then comparing the values. 
 At the moment I&amp;#39;m using the comparator</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Sep 2016 12:36:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16316/comp-and-external-reference" /><item><title>RE: COMP and external reference</title><link>https://devzone.nordicsemi.com/thread/62376?ContentTypeID=1</link><pubDate>Fri, 23 Sep 2016 12:36:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1acc16d5-e96d-46e5-b931-11dfa69f54f7</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Good idea! It has been confirmed that there is in fact a hardware bug in COMP peripheral when using external reference in single mode. No workaround reported yet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP and external reference</title><link>https://devzone.nordicsemi.com/thread/62375?ContentTypeID=1</link><pubDate>Sat, 17 Sep 2016 07:49:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e91c958-d896-4209-bc53-6c9a2ab248e9</guid><dc:creator>Thomas R.</dc:creator><description>&lt;p&gt;Hi Stefan
Thanks for the confirmation, for now I will keep using the internal VDD as reference and try to manage the noise with filtering by software.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP and external reference</title><link>https://devzone.nordicsemi.com/thread/62377?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2016 13:39:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a93c834f-afe5-48cd-bdd9-f9471c3be92e</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi Thomas&lt;/p&gt;
&lt;p&gt;I am trying this using the nrf_drv_comp driver. It seems I experience the same things as you, if I set the comparator to external reference, the settings in the TH register do not seem to work. As you said, it seems like the comp is in differential mode. I need to do further verification to see if this is a hardware bug. At this point I see no way around this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP and external reference</title><link>https://devzone.nordicsemi.com/thread/62374?ContentTypeID=1</link><pubDate>Thu, 15 Sep 2016 11:16:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7483b35c-a055-4326-a6b5-5d417f9bb2d4</guid><dc:creator>Thomas R.</dc:creator><description>&lt;p&gt;Hi Stefan&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using the comp in single ended mode, ISOURCE and is off, the behaviour is the same on both reference input pins. Hysteresis is off, too, the threshold voltage is reconfigured after up events to measure the time needed to charge the capacitor from 24/64&lt;em&gt;Vin up to 40/64&lt;/em&gt;Vin and discharge back to 24/64*Vin.&lt;/p&gt;
&lt;p&gt;I did some further testing with different input voltages on the reference input. The output is not always zero, but with REFSEL set to 7 the comparator seems to be always in differential mode, regardless of the setting in the MODE register.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP and external reference</title><link>https://devzone.nordicsemi.com/thread/62373?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2016 15:44:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72075049-59b8-4429-92a2-c1a72db6f1b1</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi Thomas&lt;/p&gt;
&lt;p&gt;A few questions from my side:  Are you using the comp in single or differential mode?  What is your hysteresis setting? Do you have ISOURCE enabled? Have you tried both AIN0 and AIN1 for the reference input?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>