<?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>nRF52-DK debugger causing timing issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45402/nrf52-dk-debugger-causing-timing-issue</link><description>Hi all, 
 i am trying to get DS18B20 temperature sensor to work on a nRF52832 chip. I have successfully ported this onewire library which is for nRF51 series to work on nRF52832. I can communicate with the DS18B20 without any problem when i have the J</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 01 Apr 2019 17:40:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45402/nrf52-dk-debugger-causing-timing-issue" /><item><title>RE: nRF52-DK debugger causing timing issue</title><link>https://devzone.nordicsemi.com/thread/179594?ContentTypeID=1</link><pubDate>Mon, 01 Apr 2019 17:40:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06df75b7-b613-4b0a-a059-737979bc99cd</guid><dc:creator>rickychau</dc:creator><description>[quote userid="2115" url="~/f/nordic-q-a/45402/nrf52-dk-debugger-causing-timing-issue/178672"]Could you try to run the sequence with the external HFCLK running?[/quote]
&lt;p&gt;i confirmed the sequence is running with external HFCLK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52-DK debugger causing timing issue</title><link>https://devzone.nordicsemi.com/thread/178672?ContentTypeID=1</link><pubDate>Wed, 27 Mar 2019 13:08:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90b660bc-ba57-45b1-b8ff-9a5a2d5aa509</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;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]&lt;p&gt;&lt;/p&gt;&lt;p&gt;When i scope the signal, i realize when i am not running debug, the one wire protocol wave form is &amp;quot;stretched out&amp;quot;, meaning for each data pulse, say when running in debug, the signal is 10us wide, and running without the debugger, the signal stretched out 11us wide.&amp;nbsp;&lt;/p&gt;&lt;p&gt;My question is, when the program runs in debug mode, is there any timing setting may have been overrode? Or any other possibility that would cause this to happen?&lt;/p&gt;&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you try to run the sequence with the external HFCLK running? If not, you will be sourced by the internal RC, which can have a high tolerance (&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/clock.html?cp=2_1_0_18_3_0#unique_1861058799"&gt;up to 6%&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]One thing worth noting is, the one wire library needs a timing in the micro second range, as low as 1 us. i have tested the nRF52832 timer compare can only pick up the best of 5 us interval. This is another question i have as well, what&amp;#39;s the timing spec for the timer compare event? (Given the Timer is using 16MHz with 0 prescaler)[/quote]
&lt;p&gt;It can provide an event every 8 MHz (input frequency / 2), but you&amp;#39;ll have to use the timer in combination with GPIOTE + PPI, similar to what is done here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicPlayground/nrf51-8-mhz-gpio-clock/blob/master/main.c"&gt;https://github.com/NordicPlayground/nrf51-8-mhz-gpio-clock/blob/master/main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Using the CPU to toggle will slow the process down.&lt;/p&gt;
&lt;p&gt;&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>