<?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 準確一秒運算(節約電力使用)!</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24469/wdt</link><description>如題所言: 
 因為 RTC 無法在休眠使用運算時間，所以我想使 WDT 運算 年/月/日/小時/分/秒 (這時間必須在一個月都是準的)，每一秒我會做一些運算當我運算完成之後我會休眠，讓WDT 再產生中斷喚醒累計 年/月/日/小時/分/秒 ，每次中斷我希望 MCU 能清除 WDT 或者重新再入 WDT ，我並不希望 MCU
RESET 這怕會影響其他運算， 影響其他運算的準確性使得我的產品產生不可預期性錯誤，請問我該如何做這段程式會是最好，我嘗試了 Sample code WDT 部分都會 RESET</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 21 Aug 2017 01:22:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24469/wdt" /><item><title>RE: 我想使用 WDT 準確一秒運算(節約電力使用)!</title><link>https://devzone.nordicsemi.com/thread/96332?ContentTypeID=1</link><pubDate>Mon, 21 Aug 2017 01:22:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bd5da41-f632-445e-8ed7-dea01ab2eb3f</guid><dc:creator>Jimmy Wong</dc:creator><description>&lt;p&gt;首先，強烈建議請用英文發問。&lt;/p&gt;
&lt;p&gt;I think you would like to use the WDT as the RTC in order to work as the system clock (date/time).&lt;/p&gt;
&lt;p&gt;First, if you check on the PS of the nRF51 (as below), the WDT is required to use the LCLK (it is same as the RTC).&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/resources.jpg" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;The difference of the WDT is only clear by ( POR Power on reset / BOR Burst out reset).&lt;/p&gt;
&lt;p&gt;In the NRF5 series (power management), it has either system off or system on.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/system_5F00_on_5F00_off.png" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;Here is the current consumption by using the RTC / 32KHz example.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/system_5F00_rtc.png" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 我想使用 WDT 準確一秒運算(節約電力使用)!</title><link>https://devzone.nordicsemi.com/thread/96331?ContentTypeID=1</link><pubDate>Fri, 18 Aug 2017 13:34:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db82abb4-6364-402e-999f-65a4907a0bcc</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;You may want to translate your question to English in order to get more help/feedback from this forum.&lt;/p&gt;
&lt;p&gt;I think the main purpose of the watchdog timer (WDT) is to reset the mcu when it expires and not to use it as a timer; I may be wrong here.&lt;/p&gt;
&lt;p&gt;What issue did you run into with the 32kHz clock again? I believe lots of folks have done the 1-second timer thing here using the RTC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>