<?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>Comparator External Connections</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42019/comparator-external-connections</link><description>I am attempting to use the COMP section to build a relaxation oscillator. There appear to be a number of interactions between sections, some of which are subtly documented and some for which I find no documentation. For instance, the inability to set</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Jan 2026 10:53:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42019/comparator-external-connections" /><item><title>RE: Comparator External Connections</title><link>https://devzone.nordicsemi.com/thread/558574?ContentTypeID=1</link><pubDate>Tue, 13 Jan 2026 10:53:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7c6141b-da31-4235-90f1-168866588434</guid><dc:creator>SteveHx</dc:creator><description>&lt;p&gt;Nope, I specifically need a comparator and I need it to trigger on two external valtage levels (ratio&amp;#39;ed to one changing external voltage) that are changing. I&amp;#39;m just thoroughly disappointed that the part doesn&amp;#39;t do what the datasheet says, and Nordic still publishes the datasheet saying it works. I wasted several weeks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Comparator External Connections</title><link>https://devzone.nordicsemi.com/thread/558563?ContentTypeID=1</link><pubDate>Tue, 13 Jan 2026 09:05:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d42bd80-09e2-4ea9-9a91-14d0567f7e31</guid><dc:creator>snoopy20</dc:creator><description>&lt;p&gt;BTW I don&amp;#39;t know what you&amp;#39;re detecting but it&amp;#39;s starting to sound like a high and low signal. Use GPIOTE for that.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Comparator External Connections</title><link>https://devzone.nordicsemi.com/thread/558562?ContentTypeID=1</link><pubDate>Tue, 13 Jan 2026 09:02:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed62d3fb-0f40-4b16-bb05-fa79d25f96b4</guid><dc:creator>snoopy20</dc:creator><description>&lt;p&gt;I&amp;#39;ve not used external reference so haven&amp;#39;t hit that.&lt;br /&gt;&lt;br /&gt;All you need is two resistors to limit the input voltage to a value lower than an internal reference then you can use that. Standard practice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Comparator External Connections</title><link>https://devzone.nordicsemi.com/thread/558545?ContentTypeID=1</link><pubDate>Mon, 12 Jan 2026 22:54:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbe905e6-d754-4321-ada2-bb2ad93dc82c</guid><dc:creator>SteveHx</dc:creator><description>&lt;p&gt;I just discovered this erratum. So, Nordic is just going to throw up their hands and say I bought a pig in a poke?!? I&amp;#39;m glad I didn&amp;#39;t actually lay out a board based on the chip working as advertised!&lt;/p&gt;
&lt;p&gt;3.33 [113] COMP: Single-ended mode with external&lt;br /&gt;reference is not functional&lt;br /&gt;This anomaly applies to Revision 2, build codes CIAA-Ex0, QFAA-Ex0, QFAB-Ex0.&lt;br /&gt;It was inherited from the previous IC revision Revision 1.&lt;br /&gt;Symptoms&lt;br /&gt;COMP output is not correct.&lt;br /&gt;Conditions&lt;br /&gt;COMP is used in single-ended mode with external reference.&lt;br /&gt;Consequences&lt;br /&gt;COMP cannot be used in this mode.&lt;br /&gt;Workaround&lt;br /&gt;None.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Comparator External Connections</title><link>https://devzone.nordicsemi.com/thread/558410?ContentTypeID=1</link><pubDate>Fri, 09 Jan 2026 14:20:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53344a80-30a6-46b9-9a52-a7d269b54ec3</guid><dc:creator>SteveHx</dc:creator><description>&lt;p&gt;Slight misunderstanding on the 5V. I have no intention of running there. This was just an accidental, momentary, and current-limited blip to 5V that caused an unexpected event. After it happened it, I reported it as a potential troubleshooting clue.&lt;/p&gt;
&lt;p&gt;Likewise RefSel 3V was a coincidental discovery as I tried all values of REFSEL. Again no intention of using it.&lt;/p&gt;
&lt;p&gt;COMP works just as documented for all values of REFSEL except the one I really need to use, which is 7 - ExtRef. I&amp;#39;m also thinking there&amp;#39;s something I&amp;#39;m not understanding correctly, in that the hysteresis using the other reference choices works only if I keep the limits near min &amp;amp; max; i.e. UP at 0x38 or above, and DN at 0x04 or below. Also why it doesn&amp;#39;t work when I set ExtRef (on Ain7) to the same 3.3V as Vdd. REFSEL = 4 works, REFSEL = 7 does not, regardless of TH settings.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Comparator External Connections</title><link>https://devzone.nordicsemi.com/thread/558376?ContentTypeID=1</link><pubDate>Fri, 09 Jan 2026 11:09:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0799b00f-d337-40e1-92ca-68fa0e0aa5a5</guid><dc:creator>snoopy20</dc:creator><description>&lt;p&gt;Careful on the clamp diodes they&amp;#39;ll take very little. You should never see 5V on a scope as the pin will be Vcc+0.3v max otherwise it&amp;#39;s passing current to Vcc through the ESD diode. 5V will be a big current and will blow them. Use a resistor ;)&lt;br /&gt;&lt;br /&gt;&amp;quot;I need to set up the comparator to use an external reference&amp;quot;&lt;br /&gt;&lt;br /&gt;I think you&amp;#39;ve already got what I was about to say which is do it the other way around, internal reference and external input, single ended, and adjust the lower&amp;amp;upper limits (these are basically acting as configurable hysteresis).&lt;br /&gt;&lt;br /&gt;I can&amp;#39;t really understand what you&amp;#39;re trying to do. If the input is 3v+ then refsel 0-3 won&amp;#39;t work. Vdd will work if the chip is getting more than 3v. Same with Adc pin but remember Vdd must be greater than Adc pin voltage.&lt;br /&gt;&lt;br /&gt;Of course Vdd might be noisy, that&amp;#39;s the whole point to the Adc ref pin. Maybe you should just do the normal thing of using refsel 0-2 and dropping the 3v+ down with a voltage divider (aka two resistors). Any reason why you haven&amp;#39;t? For sure you need to if it gives to 5v!&lt;br /&gt;&lt;br /&gt;* I have guessed you&amp;#39;re using an NRF52 series.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Comparator External Connections</title><link>https://devzone.nordicsemi.com/thread/558082?ContentTypeID=1</link><pubDate>Tue, 06 Jan 2026 21:02:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3783448a-9222-400f-9f04-7fa910468a58</guid><dc:creator>SteveHx</dc:creator><description>&lt;p&gt;Further (strange) info. I accidentally blipped 5V into Ain7, and things started working unexpectedly. Without doing that, only 4 (Vref = Vdd) works, and only if TH up &amp;amp; down are kept near the rails. But if I select other values for REFSEL, start it up, then blip Ain7 to 5V momentarily and back to 3V, I get the following results for the stated values of REFSEL:&lt;/p&gt;
&lt;p&gt;0 - 1.2V ref&lt;br /&gt;1 - 1.8V ref&lt;br /&gt;2 - 2.4V ref&lt;br /&gt;3 - 3.0V ref &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;undocumented&lt;br /&gt;4 - Vdd ref&lt;br /&gt;5 - no action&lt;br /&gt;6 - no action&lt;br /&gt;7 - no action &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;should use the AinX pin selected by EXTREFSEL&lt;/p&gt;
&lt;p&gt;I know about the parasitic clamp diodes, but why should smacking Vdd with a gentle nudge start COMP working? My voltage calibrator signal &amp;quot;overload&amp;quot; at 5V, so clearly the clamp diodes are doing there thing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Comparator External Connections</title><link>https://devzone.nordicsemi.com/thread/558081?ContentTypeID=1</link><pubDate>Tue, 06 Jan 2026 20:33:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c3abd7c-9fe6-40fd-bb5e-8d7007fc3cde</guid><dc:creator>SteveHx</dc:creator><description>&lt;p&gt;The above works only if I select 4 (Vdd) for Vref. Per datasheet&amp;nbsp;Figure 112: Comparator in single-ended mode, I should be able to feed Vref via Ain7 by selecting REFSEL 7 and EXTREFSEL 7. Even if I feed the same voltage as Vcc (external voltage calibrator), I can&amp;#39;t get it to run correctly. Has anyone actually used these documented features of the COMP? Do they actually work? Nothing in the errata to suggest a problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Comparator External Connections</title><link>https://devzone.nordicsemi.com/thread/557968?ContentTypeID=1</link><pubDate>Tue, 06 Jan 2026 00:32:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76d80982-aee1-48e8-aa01-4e97e7688de7</guid><dc:creator>SteveHx</dc:creator><description>&lt;p&gt;A closer read of the datasheet shows that, counterintuitively, I must run the comparator in single-ended mode to accomplish what I want. It appears to work correctly with REFSEL set to 4 (Vdd) and adjusting the values in the TH registers works as expected - except that they must be kept close to their limits. I can live with that. But according to the DS I should be able to set REFSEL to 7 (ext ref) and then select an ADC pin to use as the reference. I have an external voltage calibrator connected to my selected AinX pin, but even with the calibrator voltage set the same as Vdd (3.3V), I don&amp;#39;t get any action from the comparator. There is no value given in the datasheet for AREFMIN - the only reference to that value is under REFSEL.&lt;/p&gt;
&lt;p&gt;It would be most helpful to have an actual schematic of what&amp;#39;s going on inside the chip, because not all of the registers have the stated effects.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Comparator External Connections</title><link>https://devzone.nordicsemi.com/thread/557967?ContentTypeID=1</link><pubDate>Mon, 05 Jan 2026 22:27:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04dbb4d2-cb05-41d6-bc0a-c324f1977d50</guid><dc:creator>SteveHx</dc:creator><description>&lt;p&gt;I can, if I must, use the 50 mV hysteresis with an external reference voltage. But the best I can do so far, whether diff or SE, etc., is to have switching at 150 mV &amp;amp; 350 mV. None of the register settings seem to have any influence.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Comparator External Connections</title><link>https://devzone.nordicsemi.com/thread/557890?ContentTypeID=1</link><pubDate>Mon, 05 Jan 2026 09:23:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:980729c6-8b6b-4eb8-a265-ac17ff8ce81d</guid><dc:creator>L.B.</dc:creator><description>&lt;p&gt;Unfortunately, I have no installation of the Nordic SDK at the moment. And I only used the nrfx library, so I have no experience on a register level. By looking at the datasheet, I can theorize that you can turn on/off a small hysteresis of 50 mV with the HYST register. I guess this is for the differential input of the operational amplifier (like setting the input offset voltage to 50 mV). My guess is that you would have to use external resistors and implement a classical Schmitt trigger circuit.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Comparator External Connections</title><link>https://devzone.nordicsemi.com/thread/557866?ContentTypeID=1</link><pubDate>Sun, 04 Jan 2026 23:21:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5254c8a-a16b-4607-9167-54edfc57b05b</guid><dc:creator>SteveHx</dc:creator><description>&lt;p&gt;I started this thread several years ago, indeed I&amp;#39;ve forgotten what project was involved. It came up in a search just now, completely different project.&lt;/p&gt;
&lt;p&gt;I need to set up the comparator to use an external reference, with hysteresis specified by the TH register. That is, I need the thresholds to be proportional to an external voltage, but with the up and down thresholds significantly separated. The documentation is not very clear as to exactly how to set that up. I have tried a lot of combinations of HYST, TH, REFSEL, EXTREFSEL, etc, and can&amp;#39;t seem to get what I need. Hints?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Comparator External Connections</title><link>https://devzone.nordicsemi.com/thread/458629?ContentTypeID=1</link><pubDate>Sun, 03 Dec 2023 23:30:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32595041-4c36-4ea9-b88d-71ec4a28872a</guid><dc:creator>snoopy20</dc:creator><description>&lt;p&gt;For anyone searching this, the comp if wiring both EVENT_DOWN and EVENT_UP to the GPIOTE_SET AND GPIOTE_CLEAR will eventually miss an event and go out of sync.&lt;br /&gt;&lt;br /&gt;The trick instead is to use the single EVENT_CROSS and wire it to GPIOTE_OUT with the polarity set to invert.&lt;br /&gt;&lt;br /&gt;To do this you must have a known condition with the comparator and enable GPIOTE default output to match. Then leave this be and don&amp;#39;t change it. If you need to bypass the pin output use the GPIO drive high/low disconnect and pullup/pulldown if you need to.&lt;br /&gt;&lt;br /&gt;The comparator still needs to be faster than your input signal, I just leave it in high speed and it is fine with a 1MHz signal.&lt;br /&gt;&lt;br /&gt;I can confirm this works well!&lt;br /&gt;&lt;br /&gt;Andrew&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Comparator External Connections</title><link>https://devzone.nordicsemi.com/thread/350119?ContentTypeID=1</link><pubDate>Fri, 28 Jan 2022 08:20:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2752d6ac-be80-49eb-acc1-6fc165e5cc56</guid><dc:creator>L.B.</dc:creator><description>&lt;p&gt;Hi, I&amp;#39;m doing the same thing - I&amp;#39;m building an RC generator that involves the COMP module.&lt;/p&gt;
&lt;p&gt;So far I haven&amp;#39;t seen any glitches, so I decided to share my init code:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define CONFIG_COMP_OUT_PIN 28

static nrf_ppi_channel_t m_ppi_channel;

nrfx_comp_config_t const comp_config = {
	    .reference = NRF_COMP_REF_VDD,
	    .ext_ref = NRF_COMP_EXT_REF_7, //P0.31
	    .main_mode = NRF_COMP_MAIN_MODE_SE,
	    .threshold = {
	    		.th_up = 34,
				.th_down = 30
	    },
	    .speed_mode = NRF_COMP_SP_MODE_Low,
	    .hyst = NRF_COMP_HYST_50mV,
	    .isource = NRF_COMP_ISOURCE_Off, 
	    .input = NRF_COMP_INPUT_1, //P0.03
	    .interrupt_priority = 0
};

void nrfx_comp_irq_handler(void){

}

void init(void){
	uint32_t gpiote_task_addr;
	uint32_t comp_event_addr;

	nrfx_comp_init(&amp;amp;comp_config, nrfx_comp_irq_handler);
	nrfx_comp_start(NRFX_COMP_EVT_EN_CROSS_MASK, 0);

	nrf_drv_ppi_init();

	nrf_drv_gpiote_out_config_t config = GPIOTE_CONFIG_OUT_TASK_TOGGLE(false);
    nrf_drv_gpiote_out_init(CONFIG_COMP_OUT_PIN, &amp;amp;config);

	nrf_drv_ppi_channel_alloc(&amp;amp;m_ppi_channel);

	comp_event_addr = nrf_drv_comp_event_address_get(NRF_COMP_EVENT_CROSS);
	gpiote_task_addr = nrf_drv_gpiote_out_task_addr_get(CONFIG_COMP_OUT_PIN);

	nrf_drv_ppi_channel_assign(m_ppi_channel, comp_event_addr, gpiote_task_addr);
	nrf_drv_ppi_channel_enable(m_ppi_channel);

	nrf_drv_gpiote_out_task_enable(CONFIG_COMP_OUT_PIN);
	nrf_drv_gpiote_set_task_trigger(CONFIG_COMP_OUT_PIN); //Start oscillations
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have inputs on P0.03 (-) and P0.31 (+), and an output on P0.28 (OUT) with this code.&lt;/p&gt;
&lt;p&gt;Hope this helps!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;L. B.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;p.s. My target is NRF52832 / nRF5_SDK_17.0.2_d674dde / gcc version 10.3.1 20210621 (release) (GNU Arm Embedded Toolchain 10.3-2021.07)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Comparator External Connections</title><link>https://devzone.nordicsemi.com/thread/163999?ContentTypeID=1</link><pubDate>Fri, 04 Jan 2019 14:57:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78b91952-30be-4029-a14d-2b7bb17bca25</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;The SHORTS can be seen as an internal PPI system for each peripheral. You still need the COMP to generate the events for the SHORT to work, i.e. there must be a valid crossing on the pin that is detected by the COMP.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Comparator External Connections</title><link>https://devzone.nordicsemi.com/thread/163998?ContentTypeID=1</link><pubDate>Fri, 04 Jan 2019 14:55:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5de2191a-2017-4ba2-ab09-99864e0db3a4</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;The PPI peripheral will only work with a Event register address as the EEP. Setting it to another address, e.g. the COMP&amp;#39;s RESULT register will not work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Comparator External Connections</title><link>https://devzone.nordicsemi.com/thread/163872?ContentTypeID=1</link><pubDate>Fri, 04 Jan 2019 04:07:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40a6d952-9757-4c57-9c8e-ee83571533d7</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;I&amp;#39;m now wondering about the PPI 16MHz sample clock, which is effectively a synchronous sample of an asynchronous event (the comparator output transition) and is therefore subject to metastable issues. From the documentation:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;On each PPI channel, the signals are synchronized to the 16 MHz clock, to avoid any internal violation of setup and hold timings. As a consequence, events that are synchronous to the 16 MHz clock will be delayed by one clock period, while other asynchronous events will be delayed by up to one 16 MHz clock period. Note that shortcuts (as defined in the SHORTS register in each peripheral) are not affected by this 16 MHz synchronization, and are therefore not delayed.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The shortcut register might be a useful alternative, but it&amp;#39;s not immediately clear how that can be used on the comparator. It provides a fast (non-PPI) access to &lt;em&gt;Start&lt;/em&gt;, &lt;em&gt;Stop&lt;/em&gt; and &lt;em&gt;Sample&lt;/em&gt; Tasks on the comparator. This implies a better way of updating the &lt;em&gt;Result&lt;/em&gt; register without using the PPI:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The immediate value of the comparator can be sampled to RESULT register by triggering the SAMPLE task.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Worth trying the SHORTS, methinks; I see no link from &lt;em&gt;Output&lt;/em&gt; so we can only try the &lt;em&gt;Up&lt;/em&gt;, &lt;em&gt;Down&lt;/em&gt; and &lt;em&gt;Cross&lt;/em&gt; events to trigger &lt;em&gt;Sample&lt;/em&gt; and hence bypass the PPI and potential metastable condition.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Comparator External Connections</title><link>https://devzone.nordicsemi.com/thread/163829?ContentTypeID=1</link><pubDate>Thu, 03 Jan 2019 17:17:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1a1d077-3af7-40ce-8c48-9ac582b05652</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Very interesting post; we would like the same functionality for a similar purpose. Given that the crossing event (being edge-triggered) may be missed, is it possible to connect the &lt;em&gt;Compare Result&lt;/em&gt; register (0x400) to the PPI, or is that denied to it not being within the Events register groupings? My suggestion is based on the fact that the PPI link could in theory be set to any register, but I haven&amp;#39;t tried this. The datasheet states&amp;nbsp;&lt;strong&gt;&lt;em&gt;Pointer to event register. Accepts only addresses to registers&amp;nbsp;from the Event group&lt;/em&gt;&lt;/strong&gt; but that might be misleading and any register address could perhaps work .. The&amp;nbsp;&lt;em&gt;Compare Result&lt;/em&gt; register register looks like t is the direct comparator output without any edge detection involved.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Comparator External Connections</title><link>https://devzone.nordicsemi.com/thread/163768?ContentTypeID=1</link><pubDate>Thu, 03 Jan 2019 13:46:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd30d5fd-faf0-4dfb-92a7-512fa5207f5e</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Yes, but my question was if there is a valid transition on the Comparator pin or not? IF there isnt, then is this transition is not detected by the comparator? If that is the case then outputing the comp output to a GPIO will not solve the problem. Or to you mean that the Comparator correctly detects the transition, but does not generate the transition event?&lt;/p&gt;
&lt;p&gt;As far as I know there is no other way than using PPI and GPIOTE to output the Comparator output&amp;nbsp;on a GPIO.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Comparator External Connections</title><link>https://devzone.nordicsemi.com/thread/163753?ContentTypeID=1</link><pubDate>Thu, 03 Jan 2019 12:47:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c3ca25f-8d5f-4ddc-bd62-1acce54ab8bd</guid><dc:creator>SteveHx</dc:creator><description>&lt;p&gt;In essence I&amp;#39;m building a relaxation oscillator using the comparator. In my initial reading of the datasheet I missed the fact that it&amp;#39;s apparently not possible to directly place the comparator output on an I/O pin, so I fell back to using the event / task / PPI mechanism. The transition event trips a task to flip the state of a GPIO pin. I a transition is ever missed, the output doesn&amp;#39;t change state, and the oscillator therefore stops forever.&lt;/p&gt;
&lt;p&gt;Fundamentally all I need is to be able to place the comparator output directly on an I/O pin. I know I could have firmware read the RESULT register and set a pin, but that&amp;#39;s not feasible in my application. I have a stopgap solution whereby the firmware checks to see if the oscillator has stopped and gives it a kick start, but that&amp;#39;s pretty messy and really not a good solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Comparator External Connections</title><link>https://devzone.nordicsemi.com/thread/163748?ContentTypeID=1</link><pubDate>Thu, 03 Jan 2019 12:32:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7471768-eab9-430b-b6cf-84e7ef84eccd</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;HI Steve,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="68828" url="~/f/nordic-q-a/42019/comparator-external-connections"]Bottom line is that I have everything working nicely as it should, except that the comparator sometimes appears to miss a transition and thereafter is hung. I fundamentally just need to be able to place the comparator output on a digital output pin[/quote]
&lt;p&gt;Could you elaborate on what you mean by the comparator missing a transition? In my mind If the comparator misses a transition, then the output from the comparator would be unchanged so it would not help to output the comp output to a GPIO.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bj&amp;oslash;rn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>