<?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 issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34092/comp-issue</link><description>I would like to use the COMP capabilities. 
 The input is from NRF_SAADC_INPUT_AIN1. 
 The input voltage is 0.1-0.8V. 
 I would like to get interrupt every time we change from VUP to VLOW and vice versa 
 
 Below is our code to initialize the comparator</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 May 2018 11:00:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34092/comp-issue" /><item><title>RE: COMP issue</title><link>https://devzone.nordicsemi.com/thread/131481?ContentTypeID=1</link><pubDate>Wed, 09 May 2018 11:00:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43caac4a-736f-4c6f-9565-890c4483b8a5</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Glad to hear! Do you mind sharing what the problem was and how you solved it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP issue</title><link>https://devzone.nordicsemi.com/thread/131372?ContentTypeID=1</link><pubDate>Tue, 08 May 2018 13:41:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba86da39-cbec-4a51-bb92-0ecf266013c1</guid><dc:creator>arikramon</dc:creator><description>&lt;p&gt;OK, I found the problem..&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;My input&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP issue</title><link>https://devzone.nordicsemi.com/thread/131359?ContentTypeID=1</link><pubDate>Tue, 08 May 2018 12:36:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab6ff39d-a42c-4cdb-9b11-f69909562dce</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;What SDK are you using, and what are the exact threshold values that you use?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP issue</title><link>https://devzone.nordicsemi.com/thread/131290?ContentTypeID=1</link><pubDate>Tue, 08 May 2018 07:33:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00998482-a41c-4edc-9250-0de812c7f75f</guid><dc:creator>arikramon</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I am having problem doing what you ask.&lt;/p&gt;
&lt;p&gt;I sent you the memory map which should be sufficient.&lt;/p&gt;
&lt;p&gt;All COMP registers are there, starting from address 0x40013200.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP issue</title><link>https://devzone.nordicsemi.com/thread/131286?ContentTypeID=1</link><pubDate>Tue, 08 May 2018 07:20:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a05d7ec-b4d1-487a-86d9-6ff9a71e0bd6</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;To view registers in SES:&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Enter a debug session&lt;/li&gt;
&lt;li&gt;View -&amp;gt; Registers -&amp;gt; Registers 1 -&amp;gt; Groups -&amp;gt; toggle COMP.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP issue</title><link>https://devzone.nordicsemi.com/thread/131282?ContentTypeID=1</link><pubDate>Tue, 08 May 2018 06:07:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29287ade-6579-40ec-ab76-28517ffa5142</guid><dc:creator>arikramon</dc:creator><description>&lt;p&gt;With more memory : from address 0x40013200.&lt;/p&gt;
&lt;p&gt;This will give the whole registers for the comp&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1525759657322v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP issue</title><link>https://devzone.nordicsemi.com/thread/131280?ContentTypeID=1</link><pubDate>Tue, 08 May 2018 05:41:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:965ae266-60f3-4484-b1a7-3af13763891b</guid><dc:creator>arikramon</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;below is the memory of the registers after calling to nrf_drv_comp_start.&lt;/p&gt;
&lt;p&gt;The memory is from address 0x40013500&lt;/p&gt;
&lt;p&gt;PSEL=2&lt;/p&gt;
&lt;p&gt;REFSEL=1&lt;/p&gt;
&lt;p&gt;EXTREFSEL=0&lt;/p&gt;
&lt;p&gt;TH=3,20&lt;/p&gt;
&lt;p&gt;MODE=2&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1525758086596v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP issue</title><link>https://devzone.nordicsemi.com/thread/131243?ContentTypeID=1</link><pubDate>Mon, 07 May 2018 14:57:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bffb522-c988-4350-a3a6-3ca1fb63b7f4</guid><dc:creator>arikramon</dc:creator><description>&lt;p&gt;yes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP issue</title><link>https://devzone.nordicsemi.com/thread/131237?ContentTypeID=1</link><pubDate>Mon, 07 May 2018 14:44:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33003a37-c737-490a-94e6-7621a4e3e84b</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Do you mean segger embedded studios?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP issue</title><link>https://devzone.nordicsemi.com/thread/131227?ContentTypeID=1</link><pubDate>Mon, 07 May 2018 13:59:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0ca1601-f6fd-496e-97d7-b7db1edef771</guid><dc:creator>arikramon</dc:creator><description>&lt;p&gt;Jlink by Segger&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP issue</title><link>https://devzone.nordicsemi.com/thread/131223?ContentTypeID=1</link><pubDate>Mon, 07 May 2018 13:37:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3989c49-2fb0-4418-ad57-ebad225da84a</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;What IDE are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP issue</title><link>https://devzone.nordicsemi.com/thread/131220?ContentTypeID=1</link><pubDate>Mon, 07 May 2018 13:32:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06c93734-f44f-4a08-894f-20bff0b7564b</guid><dc:creator>arikramon</dc:creator><description>&lt;p&gt;How do I get the registers values?&lt;/p&gt;
&lt;p&gt;can you send me instruction and or print screens how to do it&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP issue</title><link>https://devzone.nordicsemi.com/thread/131184?ContentTypeID=1</link><pubDate>Mon, 07 May 2018 11:37:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af6ed546-20b6-4252-acf9-5c4e5acbaaef</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Hey Arik,&lt;/p&gt;
&lt;p&gt;I need to know the state of the COMP registers after you call&amp;nbsp;&lt;a title="nrf_drv_comp_start" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/group__nrf__drv__comp.html?cp=4_0_1_6_9_2_0_12#ga4477e16c66f2ef1bcf96b6d5559d5016"&gt;nrf_drv_comp_start&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Håkon.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>