<?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>Rare counter error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37497/rare-counter-error</link><description>Hello everybody, 
 I ran into an unpleasant moment: sometimes the timer counts incorrectly in the counter mode. 
 What is used: 
 
 Custom board with BC832 (Fanstel, NRF52832xxAA); 
 SDK v15.0.0. SD 6.1.0; 
 Segger Embedded Studio; 
 
 Additional components</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Aug 2018 08:25:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37497/rare-counter-error" /><item><title>RE: Rare counter error</title><link>https://devzone.nordicsemi.com/thread/144447?ContentTypeID=1</link><pubDate>Thu, 16 Aug 2018 08:25:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23a48cc3-1376-4af5-85c0-d814488dcf3f</guid><dc:creator>CheMax</dc:creator><description>&lt;p&gt;Hi, &lt;pre class="ui-code" data-mode="text"&gt;It is very likely that this is the case. Did you see any discrepancies in the scoped signal that correlates with errata #155 ?&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="" id="result_box" lang="en"&gt;&lt;span&gt;I Did not see.&lt;/span&gt; &lt;span class=""&gt;The analyzer does not show (checked at a sampling rate of 100 MHz), the oscilloscope is difficult to catch this moment.&lt;/span&gt;&lt;br /&gt;&lt;span class=""&gt;Perhaps this is a consequence of the effects of static voltage.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rare counter error</title><link>https://devzone.nordicsemi.com/thread/144440?ContentTypeID=1</link><pubDate>Thu, 16 Aug 2018 08:14:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1147ad4a-fbe3-4be0-b733-7e92d74dc919</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The specification does not describe this region of memory.&amp;nbsp;I understand correctly that this is an additional configuration register?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This forces the peripheral clock to be always on in GPIOTE IN module,&amp;nbsp;similar to how the GPIOTE IN&amp;nbsp;behavior was on the nRF51-series devices.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;This can be the effect of impulse (&amp;gt; = 750 kHz) interference?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;It is very likely that this is the case. Did you see any discrepancies in the scoped signal that correlates with errata #155 ?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rare counter error</title><link>https://devzone.nordicsemi.com/thread/144369?ContentTypeID=1</link><pubDate>Wed, 15 Aug 2018 15:27:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99e1a00e-7c76-4d5f-84e7-a8dfb898b6b7</guid><dc:creator>CheMax</dc:creator><description>&lt;p&gt;So, &lt;span class="" id="result_box" lang="en"&gt;&lt;span&gt;I tested for an hour and a half of uninterrupted recording.&lt;/span&gt; &lt;span&gt;This error did not appear.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class=""&gt;changes except those described in the Erata *** I did not add.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class=""&gt;Can you tell us what exactly this record: &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre class="pre codeblock"&gt;&lt;code&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;*(volatile uint32_t *)(NRF_GPIOTE_BASE + 0x600 + (4 * GPIOTE_CH_USED)) = 1;&lt;/pre&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span class="" lang="en"&gt;&lt;span class="" id="result_box" lang="en"&gt;&lt;span class=""&gt; does?&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="" id="result_box" lang="en"&gt;&lt;br /&gt;&lt;span class=""&gt;The specification does not describe this region of memory.&lt;/span&gt; &lt;span class=""&gt;I understand correctly that this is an additional configuration register?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rare counter error</title><link>https://devzone.nordicsemi.com/thread/144317?ContentTypeID=1</link><pubDate>Wed, 15 Aug 2018 12:10:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0a07d1e-62af-45b9-8305-69afb4f3b840</guid><dc:creator>CheMax</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;span class="" id="result_box" lang="en"&gt;&lt;span class=""&gt;Yes, Channel 8 (&lt;strong&gt;AFE Data Ready&lt;/strong&gt;)&amp;nbsp; is used as a base for signal generation.&lt;/span&gt; &lt;span&gt;Signal parameters:&lt;/span&gt;&lt;br /&gt;&lt;span class=""&gt;1. the duration at zero is approximately 12.5 microseconds&lt;/span&gt;&lt;br /&gt;&lt;span&gt;2. a period of 1 ms&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;The error occurs entirely by accident.&lt;/span&gt; &lt;span class=""&gt;It can occur 1 time in 10 minutes, it can 3 times in 2 minutes.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class=""&gt;On the analyzer&amp;#39;s record, there is no double front (sample rate was 16 MHz).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class=""&gt;This can be the effect of impulse (&amp;gt; = 750 kHz) interference?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class=""&gt;I&amp;#39;ll try the solution you proposed and write about the results.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rare counter error</title><link>https://devzone.nordicsemi.com/thread/144305?ContentTypeID=1</link><pubDate>Wed, 15 Aug 2018 11:29:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f7fdd8f-3070-45fb-83d9-fdc10b4678ac</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is channel 10 counting based on the channel 8 signal (CSN of AFE_SPI)?&lt;/p&gt;
&lt;p&gt;How random is this behavior? 1 in 10?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If one of the input signals is quite fast, you might be running into this errata:&lt;/p&gt;
&lt;p&gt;&lt;a title="This anomaly applies to IC Rev. Rev 2, build codes QFAA-E00, CIAA-E00, QFAB-E00." href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.Rev2.errata/dita/errata/nRF52832/Rev2/latest/anomaly_832_155.html#anomaly_832_155"&gt;&lt;span&gt;IN event may occur more than once on input edge&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try adding this workaround to see if this has any effect on the behavior?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>