<?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 (or PPI) drops event</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120522/comp-or-ppi-drops-event</link><description>Hi, I previously wrote about an unexpected behaviour which I&amp;#39;ve made a diagram for below. It&amp;#39;s relatively simple though, the COMP watches a voltage and fires a toggle event through PPI which is received by GPIOTE which toggles it&amp;#39;s pin which controls</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 03 Jun 2025 13:14:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120522/comp-or-ppi-drops-event" /><item><title>RE: COMP (or PPI) drops event</title><link>https://devzone.nordicsemi.com/thread/537885?ContentTypeID=1</link><pubDate>Tue, 03 Jun 2025 13:14:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:022be954-7062-44a3-9ce9-4478509f5f71</guid><dc:creator>snoopy20</dc:creator><description>&lt;p&gt;It&amp;#39;s too late for that, however I&amp;#39;m not moaning as the solution works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP (or PPI) drops event</title><link>https://devzone.nordicsemi.com/thread/537658?ContentTypeID=1</link><pubDate>Mon, 02 Jun 2025 12:33:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:190472fc-a051-4973-975d-ec29896e032f</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;I&amp;nbsp;fully agree that&amp;nbsp;any limitations should be identified and described in the product specifications. However, as a support engineer on DevZone,&amp;nbsp;I can&amp;#39;t do anything further on pushing this investigation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If the issue&amp;nbsp;was a risk to your project, could you please have a word with your Nordic sales contact? They&amp;nbsp;will want to know it and might be able to help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP (or PPI) drops event</title><link>https://devzone.nordicsemi.com/thread/537455?ContentTypeID=1</link><pubDate>Thu, 29 May 2025 09:47:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa46eebb-cc03-443a-9816-c15d558271d6</guid><dc:creator>snoopy20</dc:creator><description>&lt;p&gt;It needs addressing, if the peripherals can&amp;#39;t perform to specification it can be a show-stopping decision. These days miniaturising hardware on-board is too important. I feel very, very lucky that I found a solution here as the application can be safety critical and I&amp;#39;d be in a really bad place on refunds otherwise.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP (or PPI) drops event</title><link>https://devzone.nordicsemi.com/thread/537192?ContentTypeID=1</link><pubDate>Tue, 27 May 2025 13:08:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cb07748-c116-41c9-b453-f40cd507bc98</guid><dc:creator>Hieu</dc:creator><description>[quote user="snoopy20"]I figure the newer chips are using the same GPIOTE so worth the investigation?[/quote]
&lt;p&gt;I really don&amp;#39;t know, and even if I do, I doubt I have the liberty to comment about it on DevZone. But I will trust our engineers&amp;#39; judgement on this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP (or PPI) drops event</title><link>https://devzone.nordicsemi.com/thread/537186?ContentTypeID=1</link><pubDate>Tue, 27 May 2025 12:55:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f22f6d1-3367-4270-8a4e-a1dd35f05d9f</guid><dc:creator>snoopy20</dc:creator><description>&lt;p&gt;No problem, the current solution is working in all temperatures so it is known to not be the problem. It is known that GPIOTE can&amp;#39;t keep up with the 1MHz speed of PPI.&lt;br /&gt;&lt;br /&gt; It&amp;#39;s easy to wire something up on NRF52DK by connecting a digital pin to a capacitor with pull-up enabled in parallel with an analog pin for the comp and validating the issue. I figure the newer chips are using the same GPIOTE so worth the investigation?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP (or PPI) drops event</title><link>https://devzone.nordicsemi.com/thread/537129?ContentTypeID=1</link><pubDate>Tue, 27 May 2025 10:50:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e55c55f-63dd-48d9-b6d2-21606d7f4d1b</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi snoopy20,&lt;/p&gt;
&lt;p&gt;I am updating regarding one of the questions:&lt;/p&gt;
[quote user="snoopy20"]2. The upper hysteresis resistor is set to trigger at 4.8v (nominal voltage is 5v +/- 1%). The tolerance of the comp hysteresis is unknown, does it change with temperature, does the comp speed change the tolerance (it does on PIC16 as an example)?[/quote]
&lt;p&gt;&lt;span&gt;Both can contribute the tolerance of COMP. Temperature makes the reference voltage drift, and higher operation speed could potentially have an impact on internal offset of COMP, limiting accuracy of the circuit.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The other questions&amp;nbsp;will have to wait even longer unless they become critical for the design. Our apologies for the inconvenience.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP (or PPI) drops event</title><link>https://devzone.nordicsemi.com/thread/532432?ContentTypeID=1</link><pubDate>Tue, 22 Apr 2025 18:55:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a43880c-c3f1-4f9d-8ff9-bc3cd9baf691</guid><dc:creator>snoopy20</dc:creator><description>&lt;p&gt;Sure, there&amp;#39;s no rush, the &amp;#39;solution&amp;#39; is working and everyone is happy.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP (or PPI) drops event</title><link>https://devzone.nordicsemi.com/thread/531910?ContentTypeID=1</link><pubDate>Tue, 15 Apr 2025 21:55:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:316b8931-4f93-4451-bcca-61cb94739af8</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;I am afraid I am unqualified&amp;nbsp;to comment on this solution&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f605.svg" title="Sweat smile"&gt;&amp;#x1f605;&lt;/span&gt;. I see what you are doing, but I lack the knowledge to evaluate it.&lt;/p&gt;
&lt;p&gt;But it&amp;#39;s great to know that you have a working solution now.&lt;/p&gt;
&lt;p&gt;I will follow-up&amp;nbsp;regarding the unanswered questions once I receive a response for my internal query. However, it looks like that has to be after the Easter holiday. My apology for the inconvenience.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP (or PPI) drops event</title><link>https://devzone.nordicsemi.com/thread/531790?ContentTypeID=1</link><pubDate>Tue, 15 Apr 2025 07:06:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1700d9df-0cb3-4280-ac78-209b526e0bf8</guid><dc:creator>snoopy20</dc:creator><description>&lt;p&gt;The frequency of the loop is dictated by the speed of the COMP, which in low power mode is 1MHz according to the datasheet.&lt;br /&gt;&lt;br /&gt;Your understanding of the system is correct. Then your third points are:&lt;br /&gt;&lt;br /&gt;1. correct, if the sink is too much VDD will drop&lt;br /&gt;2. the speed of the missing event (Vdd recovered) is dependent on how fast TLV62090 turns off and then how fast COMP toggles its state. The turn off by TLV62090 will be very fast, microseconds at worst. The state (Vdd recovered) is then waiting for COMP to detect it.&lt;br /&gt;3. there&amp;#39;s really not much to it. COMP detects Vdd, state goes to PPI/GPIOTE and toggles thing which affects Vdd, so equilibrium. &lt;br /&gt;&lt;br /&gt;The PPI GRP workaround is a success (the RTC is just to clock, could use anything). I&amp;#39;ve ran it for hours.&lt;br /&gt;&lt;br /&gt;The solutions slows down the EVENT_UP propagation and so clearly tells me the problem is not with COMP or PPI because it&amp;#39;s now working, so the problem is with GPIOTE. It isn&amp;#39;t fast enough to handle 1MHz PPI events.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;  // GPIOTE turn-offs
  NRF_PPI-&amp;gt;CH[CFG_PPI_POWERMANAGER_UVLO_FRONTREAR].EEP = (uint32_t) &amp;amp;NRF_COMP-&amp;gt;EVENTS_DOWN;
  NRF_PPI-&amp;gt;CH[CFG_PPI_POWERMANAGER_UVLO_FRONTREAR].TEP = (uint32_t) &amp;amp;NRF_GPIOTE-&amp;gt;TASKS_CLR[CFG_GPIOTE_POWERMANAGER_FRONT];
  NRF_PPI-&amp;gt;FORK[CFG_PPI_POWERMANAGER_UVLO_FRONTREAR].TEP = (uint32_t) &amp;amp;NRF_GPIOTE-&amp;gt;TASKS_CLR[CFG_GPIOTE_POWERMANAGER_REAR];

  // -- enables first group, awaits a tick
  NRF_PPI-&amp;gt;CH[CFG_PPI_POWERMANAGER_UVLO_GROUP].EEP = (uint32_t) &amp;amp;NRF_COMP-&amp;gt;EVENTS_UP;
  NRF_PPI-&amp;gt;CH[CFG_PPI_POWERMANAGER_UVLO_GROUP].TEP = (uint32_t) &amp;amp;NRF_PPI-&amp;gt;TASKS_CHG[CFG_PPI_GROUP_POWERMANAGER_ENABLE_NEXT].EN;

  // -- enables next group on tick, disables self (one shot)
  NRF_PPI-&amp;gt;CH[CFG_PPI_POWERMANAGER_TIMER_GROUP_NEXT].EEP = (uint32_t) &amp;amp;CFG_SCHEDULER_TIMER-&amp;gt;EVENTS_TICK;
  NRF_PPI-&amp;gt;CH[CFG_PPI_POWERMANAGER_TIMER_GROUP_NEXT].TEP = (uint32_t) &amp;amp;NRF_PPI-&amp;gt;TASKS_CHG[CFG_PPI_GROUP_POWERMANAGER_ENABLE_NEXT].DIS;
  NRF_PPI-&amp;gt;FORK[CFG_PPI_POWERMANAGER_TIMER_GROUP_NEXT].TEP = (uint32_t) &amp;amp;NRF_PPI-&amp;gt;TASKS_CHG[CFG_PPI_GROUP_POWERMANAGER_ENABLE_SET].EN;
  NRF_PPI-&amp;gt;CHG[CFG_PPI_GROUP_POWERMANAGER_ENABLE_NEXT] = 1 &amp;lt;&amp;lt; CFG_PPI_POWERMANAGER_TIMER_GROUP_NEXT;

  // -- sets outputs, disables self (one shot)
  NRF_PPI-&amp;gt;CH[CFG_PPI_POWERMANAGER_TIMER_FRONTREAR].EEP = (uint32_t) &amp;amp;CFG_SCHEDULER_TIMER-&amp;gt;EVENTS_TICK;
  NRF_PPI-&amp;gt;CH[CFG_PPI_POWERMANAGER_TIMER_FRONTREAR].TEP = (uint32_t) &amp;amp;NRF_GPIOTE-&amp;gt;TASKS_SET[CFG_GPIOTE_POWERMANAGER_FRONT];
  NRF_PPI-&amp;gt;FORK[CFG_PPI_POWERMANAGER_TIMER_FRONTREAR].TEP = (uint32_t) &amp;amp;NRF_GPIOTE-&amp;gt;TASKS_SET[CFG_GPIOTE_POWERMANAGER_REAR];
  NRF_PPI-&amp;gt;CH[CFG_PPI_POWERMANAGER_TIMER_GROUP_SET].EEP = (uint32_t) &amp;amp;CFG_SCHEDULER_TIMER-&amp;gt;EVENTS_TICK;
  NRF_PPI-&amp;gt;CH[CFG_PPI_POWERMANAGER_TIMER_GROUP_SET].TEP = (uint32_t) &amp;amp;NRF_PPI-&amp;gt;TASKS_CHG[CFG_PPI_GROUP_POWERMANAGER_ENABLE_SET].DIS;
  NRF_PPI-&amp;gt;CHG[CFG_PPI_GROUP_POWERMANAGER_ENABLE_SET] = 1 &amp;lt;&amp;lt; CFG_PPI_POWERMANAGER_TIMER_FRONTREAR | 1 &amp;lt;&amp;lt; CFG_PPI_POWERMANAGER_TIMER_GROUP_SET;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;I hope you like the solution, I&amp;#39;m pretty pleased with myself. With NRF52 there&amp;#39;s always a way. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f60e.svg" title="Sunglasses"&gt;&amp;#x1f60e;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP (or PPI) drops event</title><link>https://devzone.nordicsemi.com/thread/531754?ContentTypeID=1</link><pubDate>Mon, 14 Apr 2025 22:23:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0fdfa16-a53c-4beb-b1be-6a9777837f97</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi snoopy20,&lt;/p&gt;
&lt;p&gt;Firstly, regarding your conclusion that either PPI or GPIOTE isn&amp;#39;t able to keep up with 1MHz COMP, I will&amp;nbsp;have to&amp;nbsp;ask about this in my internal query as well before I can confirm it.&lt;/p&gt;
&lt;p&gt;However, I am&amp;nbsp;still unclear on one detail.&amp;nbsp;Does&amp;nbsp;the system run in some kind of loop then? And&amp;nbsp;what is the frequency of looping then?&lt;/p&gt;
&lt;p&gt;Secondly, here is my understanding of the system, please correct me if I am wrong.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;It is meant to be a UVLO monitoring VDD&lt;/li&gt;
&lt;li&gt;The TLV62090&amp;nbsp;converts VDD to a lower voltage for a sink&lt;/li&gt;
&lt;li&gt;The COMP+PPI+GPIOTE setup controls the TLV62090&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I think I am missing a few more things:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;How the TLV62090 and later circuits affects VDD? Is it just a voltage dip due to sudden loading?&lt;/li&gt;
&lt;li&gt;How frequently does this loop repeat?&lt;/li&gt;
&lt;li&gt;Can you give a state machine showing how the COMP, GPIOTE, and TLV62090 are supposed to work together?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Thirdly, regarding the RTC workaround you are setting up, could you please tell me exactly which PPI event is connected to which PPI tasks over which PPI channels, one at a time?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP (or PPI) drops event</title><link>https://devzone.nordicsemi.com/thread/531631?ContentTypeID=1</link><pubDate>Mon, 14 Apr 2025 07:02:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87eeef8e-e3b8-4a53-b1e2-e55535e1a255</guid><dc:creator>snoopy20</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/7776.nrf52.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP (or PPI) drops event</title><link>https://devzone.nordicsemi.com/thread/531605?ContentTypeID=1</link><pubDate>Sun, 13 Apr 2025 19:54:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78ec9752-1f51-4119-b7e4-cfd2de7fd728</guid><dc:creator>snoopy20</dc:creator><description>&lt;p&gt;I kept at it and may have a solution, it appears to be working so far.&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t have any timers left but have an RTC ticking at 8KHz.&lt;br /&gt;&lt;br /&gt;I wire the COMP UP event to enable a PPI group. Two PPI&amp;#39;s linked to the RTC tick fire the GPIO SET and disable the PPI group.&lt;br /&gt;&lt;br /&gt;Questions are:&lt;br /&gt;&lt;br /&gt;1. If the COMP UP event and the RTC tick event come in at the same time will the enabling of the group also fire the PPI on the same clock? It seems unlikely, but possible.&lt;br /&gt;&lt;br /&gt;2. If the COMP UP event comes in and the RTC tick is one peripheral clock later, then the added delay is just 1/16MHz. This is still much faster then the 1MHz of the COMP, which is known to be fast enough to create the original issue.&lt;br /&gt;&lt;br /&gt;So far though it appears to be a solution. As long as enabling the PPI grp and the PPI event it controls firing at the same time won&amp;#39;t actually trigger the PPI (aka 1) then I will wire in a second GRP also working on the RTC tick, which will avoid (2). Thus, the outputs will be SET on the second RTC tick.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP (or PPI) drops event</title><link>https://devzone.nordicsemi.com/thread/531604?ContentTypeID=1</link><pubDate>Sun, 13 Apr 2025 18:25:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31e10b8c-c9a0-429c-8404-4eb03287aca9</guid><dc:creator>snoopy20</dc:creator><description>&lt;p&gt;And finally for tonight another observation.&lt;br /&gt;&lt;br /&gt;I decided to go back and retry the SET/CLR method, but I only implemented for one of the three external drivers (all of which do the same thing).&lt;br /&gt;&lt;br /&gt;The SET/CLR method failed first, so is worse.&lt;br /&gt;&lt;br /&gt;It pretty much validates my hypothesis, PPI or GPIOTE can&amp;#39;t keep up with the speed of COMP in it&amp;#39;s lowest speed. This is quite troubling as I have no mitigation for it.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP (or PPI) drops event</title><link>https://devzone.nordicsemi.com/thread/531603?ContentTypeID=1</link><pubDate>Sun, 13 Apr 2025 17:38:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:028ea5bf-4339-4ab2-a1c1-df87199101ba</guid><dc:creator>snoopy20</dc:creator><description>&lt;p&gt;Alrighty, so I can now replicate it on the bench. It takes a lot longer but usually 5-10 minutes of UVLO activity will eventually cause it.&lt;br /&gt;&lt;br /&gt;So far it occurs with the CPU at 9 or 25c, so discounting temperature.&lt;br /&gt;&lt;br /&gt;When it occurred I was watching the state of the system in the App and no event fired which would/might/possibly - have done anything that I can possibly thing would be related.&lt;br /&gt;&lt;br /&gt;I tried applying &lt;a id="" href="https://docs.nordicsemi.com/bundle/errata_nRF52810_Rev3/page/ERR/nRF52810/Rev3/latest/anomaly_810_155.html"&gt;https://docs.nordicsemi.com/bundle/errata_nRF52810_Rev3/page/ERR/nRF52810/Rev3/latest/anomaly_810_155.html&lt;/a&gt; but with no luck.&lt;br /&gt;&lt;br /&gt;The COMP sample output also goes to the App so I can see it is reporting power is above the reference. &lt;br /&gt;&lt;br /&gt;Finally I snuck a little hidden feature in so I can manually fire the GPIOTE TASK_SET which confirms it hasn&amp;#39;t crashed internally (if that&amp;#39;s even possible) and also confirms the external driver is working correctly.&lt;br /&gt;&lt;br /&gt;I have to conclude this is a hardware issue being:&lt;br /&gt;&lt;br /&gt;1. sometimes the COMP doesn&amp;#39;t generate an event for an EVENT_UP (or cross) &lt;strong&gt;or&lt;/strong&gt;&lt;br /&gt;2. PPI is overwhelmed by the speed of COMP in low/slow mode (1MHz) &lt;strong&gt;or&lt;/strong&gt;&lt;br /&gt;3. GPIOTE is overwhelmed by the speed of COMP in low/slow mode (1MHz)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP (or PPI) drops event</title><link>https://devzone.nordicsemi.com/thread/531597?ContentTypeID=1</link><pubDate>Sun, 13 Apr 2025 10:11:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0d779d6-1c9a-4ec6-8c6b-c3bda9bd5a98</guid><dc:creator>snoopy20</dc:creator><description>&lt;p&gt;I have confirmation and evidence from a user showing it&amp;#39;s real.&lt;br /&gt;&lt;br /&gt;I&amp;#39;m about to replicate his exact settings at this end but so far I&amp;#39;ve been unable to reproduce, the COMP is firing correctly here. My unit is at 23c and his is at 9c CPU temperature, I&amp;#39;ll freeze mine later and see if there&amp;#39;s a change.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP (or PPI) drops event</title><link>https://devzone.nordicsemi.com/thread/531585?ContentTypeID=1</link><pubDate>Sat, 12 Apr 2025 08:29:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6a1d0a8-02bc-4ea6-8da7-802f64f183a0</guid><dc:creator>snoopy20</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;br /&gt;&lt;br /&gt;It&amp;#39;s not of great urgency. Currently I can&amp;#39;t replicate it on the bench (switching to 1MHz fixed it for me). I have two production users that are trying to replicate, when it does they can capture evidence in the accompanying App. &lt;br /&gt;&lt;br /&gt;The output is a TLV62090. The input is analog, there is no jitter. So long as PPI/GPIOTE are faster then COMP then COMP monitors and controls the circuit.&lt;br /&gt;&lt;br /&gt;I use the NRF52&amp;#39;s pull-up and high disconnect config as a secondary override so COMP state and GPIOTE state remain in sync, and the TLV62090 has a soft-start. The turn-on will therefore be much slower then the turn-off. When the COMP turns the TLV62090 off the voltage will recover fast and of course this appears to be what it has trouble capturing. &lt;br /&gt;&lt;br /&gt;I can only see that it is capturing the recovery too close to the turn-off point, that is to say COMP is overwhelming PPI or GPIOTE. There is no other logical explanation.&lt;br /&gt;&lt;br /&gt;The only other reason would be the upper hysteresis point of the COMP becomes invalid, so as the voltage rises it no longer strikes a match. I don&amp;#39;t do anything special here, the value is set on boot and reasonably below the recovery voltage to ensure it strikes with a good margin (4.8v vs 5.0, 1% resistor divider then whatever the % deviance of the internal res/hys is of the COMP). Unless there&amp;#39;s a lot of variance around temperature - my users will be in different outdoor environments likely ranging from 0-30c at the moment. The CPU temperature will be captured in the App as well.&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot_5F00_2025_2D00_04_2D00_12_5F00_09_2D00_15_2D00_29.png" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP (or PPI) drops event</title><link>https://devzone.nordicsemi.com/thread/531570?ContentTypeID=1</link><pubDate>Fri, 11 Apr 2025 18:19:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b39754c1-7a93-4490-a06d-421fd44bef0f</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi snoopy20,&lt;/p&gt;
&lt;p&gt;Susheel&amp;nbsp;had to go on a sick leave, and I will support&amp;nbsp;you in his stead.&lt;/p&gt;
&lt;p&gt;I will have to ask our IC engineers regarding&amp;nbsp;the question about&amp;nbsp;tolerance variance and the&amp;nbsp;errata. However, please understand that the easter holiday has started, so that might take some time. Our apologies for the inconvenience.&lt;/p&gt;
&lt;p&gt;I would like to&amp;nbsp;understand your system a little more.&lt;/p&gt;
&lt;p&gt;Does the external circuit react to the edge, or to the level of the GPIOTE signal?&lt;br /&gt;Can it be changed to react to the level of the GPIOTE signal instead? Ideally with some kind&amp;nbsp;time-based debouncing.&lt;/p&gt;
&lt;p&gt;For the input signal, is there any chance of jitter? Have you tried to connect the GPIOTE signal and COMP input to a scope and monitor for any incorrect behavior?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP (or PPI) drops event</title><link>https://devzone.nordicsemi.com/thread/530952?ContentTypeID=1</link><pubDate>Tue, 08 Apr 2025 07:35:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ac9635c-587a-498c-86cd-5d7846f60c15</guid><dc:creator>snoopy20</dc:creator><description>&lt;p&gt;Same behaviour, the TASKS_SET either didn&amp;#39;t fire or was ignored by PPI or GPIOTE.&lt;br /&gt;&lt;br /&gt;As I see it the reasoning in both cases has to be one of:&lt;br /&gt;&lt;br /&gt;1. the COMP despite being in &amp;#39;slow&amp;#39; is still able to overwhelm PPI or GPIOTE timing. In a previous post I determined with one of Nordic staff that the &amp;#39;normal&amp;#39; mode (5MHz) might be pushing it, but 1MHz should be fine for PPI/GPIOTE processing.&lt;br /&gt;&lt;br /&gt;2. The upper hysteresis resistor is set to trigger at 4.8v (nominal voltage is 5v +/- 1%). The tolerance of the comp hysteresis is unknown, does it change with temperature, does the comp speed change the tolerance (it does on PIC16 as an example)?&lt;br /&gt;&lt;br /&gt;I&amp;#39;m still thinking it&amp;#39;s around (1) because switching to &amp;#39;slow&amp;#39; almost resolved it. I&amp;#39;m thinking there&amp;#39;s something around PPI or GPIOTE reaction speed.&lt;br /&gt;&lt;br /&gt;This errata says a clock is used for GPIOTE input events &amp;gt; 750KHz. I wonder what clock and whether it also applies for output events...&lt;br /&gt;&lt;br /&gt;&lt;a href="https://docs.nordicsemi.com/bundle/errata_nRF52810_Rev3/page/ERR/nRF52810/Rev3/latest/anomaly_810_155.html"&gt;docs.nordicsemi.com/.../anomaly_810_155.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP (or PPI) drops event</title><link>https://devzone.nordicsemi.com/thread/530946?ContentTypeID=1</link><pubDate>Tue, 08 Apr 2025 07:16:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d5e5e51-6792-4fed-8ea9-358dc92586db</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user="snoopy20"]many moons ago I had implemented it by the method you describe but found it didn&amp;#39;t work, probably because the comp was generating the events too close together and they were racing to be processed. This may however have been with the COMP on normal or fast speed and may be worth a revisit, but I have my doubts whether it will fix the underlying issue.[/quote]
&lt;p&gt;Would have been nice to know why this did not work. What initial triggers missed? or was it after some time that this did not work? There seems to be something we might have missed if this setup did not work. It should have worked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP (or PPI) drops event</title><link>https://devzone.nordicsemi.com/thread/530938?ContentTypeID=1</link><pubDate>Tue, 08 Apr 2025 06:38:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f64aee3f-d1d4-4270-a38a-51a59fb550d8</guid><dc:creator>snoopy20</dc:creator><description>&lt;p&gt;I don&amp;#39;t see why it&amp;#39;s fragile, only the COMP generates the signal and only COMP has control over the &amp;#39;thing&amp;#39; that affects the signal. It&amp;#39;s closer to a true hardware UVLO implementation this way.&lt;br /&gt;&lt;br /&gt;Originally many moons ago I had implemented it by the method you describe but found it didn&amp;#39;t work, probably because the comp was generating the events too close together and they were racing to be processed. This may however have been with the COMP on normal or fast speed and may be worth a revisit, but I have my doubts whether it will fix the underlying issue.&lt;br /&gt;&lt;br /&gt;I should elaborate further. The external circuit is a slow turn-on (ramps) but a fast off. This will mean when the COMP generates its below signal triggering gpiote the above signal is going to follow quickly. Indeed it is this above signal which is &amp;#39;missing&amp;#39; on occasion.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I know that setting the COMP to slow almost fixes the issue.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COMP (or PPI) drops event</title><link>https://devzone.nordicsemi.com/thread/530929?ContentTypeID=1</link><pubDate>Tue, 08 Apr 2025 05:30:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96a235dd-cd45-4d0f-8478-f54d30a82235</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;The main issue here seems to be that your loop here seems very fragile where it depends on toggling instead of relying on a deterministic state.&lt;/p&gt;
&lt;p&gt;My suggestion is that you can map&lt;/p&gt;
&lt;p&gt;COMP-&amp;gt;EVENT_UP → GPIOTE TASKS_SET&lt;br /&gt;COMP-&amp;gt;EVENT_DOWN → GPIOTE TASKS_CLR&lt;/p&gt;
&lt;p&gt;So that we are sure that the ping goes high if the voltage goes above threshold and vice versa.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>