<?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>wdt accuracy</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2764/wdt-accuracy</link><description>I am trying to set up the WDT on a nRF51822, but the timing doesn&amp;#39;t seem quite right. If I load the CRV register with a count of 32768 I would expect it to be a one second time out (according to the data sheet), but it actually looks like it is around</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Jun 2014 18:36:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2764/wdt-accuracy" /><item><title>RE: wdt accuracy</title><link>https://devzone.nordicsemi.com/thread/10687?ContentTypeID=1</link><pubDate>Thu, 12 Jun 2014 18:36:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8aeecdc-4307-4376-ad17-9b705a5b9bfd</guid><dc:creator>Jo-Jo</dc:creator><description>&lt;p&gt;Unfortunately the boards I am working on do not have the 32hHz crystal installed, but using the synthesized 32kHz internal clock seems to make it work correctly.&lt;/p&gt;
&lt;p&gt;Thanks for the help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wdt accuracy</title><link>https://devzone.nordicsemi.com/thread/10686?ContentTypeID=1</link><pubDate>Thu, 12 Jun 2014 13:12:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b537f3b-6b15-4f9a-8176-eba0ac095df9</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Yes I am seeing this too. However, you can overcome this problem by selecting the 32kHz crystal explicitly, then it should be accurate. Enable the 32kHz crystal with the following code before starting the watchdog timer:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;NRF_CLOCK-&amp;gt;LFCLKSRC = CLOCK_LFCLKSRC_SRC_Xtal;
NRF_CLOCK-&amp;gt;TASKS_LFCLKSTART = 1;
while (NRF_CLOCK-&amp;gt;EVENTS_LFCLKSTARTED == 0);
NRF_CLOCK-&amp;gt;EVENTS_LFCLKSTARTED = 0;
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>