<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: watchdog timer in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/watchdog-timer/m-p/198440#M16073</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can think of a few causes why the MCU might appear to "hang" - there may also be other causes.&amp;nbsp; The following would be due to coding problems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The main loop code does not properly execute, maybe because an expected condition does not eventuate and a "wait loop" never exits.&amp;nbsp; The cause may be bad coding, or an undersize stack overwriting global variables.&amp;nbsp; Hardware interrupts should continue to operate normally.&lt;/LI&gt;&lt;LI&gt;The code for an ISR never exits a wait loop.&amp;nbsp; Strictly speaking, ISR code should not contain any wait loop.&lt;/LI&gt;&lt;LI&gt;ISR code is repeatedly entered so that no other code can execute.&amp;nbsp; The usual reason is that the interrupt flag for the particular interrupt is not cleared prior to exiting the ISR.&lt;/LI&gt;&lt;LI&gt;The MCU repeatedly enters reset,&amp;nbsp;which could be a&amp;nbsp;COP reset, or one of the other reset sources.&amp;nbsp; Maybe the COP timer is not being cleared from within a wait loop, and timeout occurs, or maybe the COP reset occurs&amp;nbsp;due to one of the reasons mentioned above.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;It is not the purpose of the COP (watchdog) timer to "fix" any of these problems - you must correct the coding errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 May 2010 20:10:30 GMT</pubDate>
    <dc:creator>bigmac</dc:creator>
    <dc:date>2010-05-10T20:10:30Z</dc:date>
    <item>
      <title>watchdog timer</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/watchdog-timer/m-p/198436#M16069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; warm wishes of the day.i have 1 query.When our microcontroller gets hang ,is the interrupts are in working condition?If yes than what does hangs mean &amp;amp; if no than how watchdog timer works?help me out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 May 2010 17:09:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/watchdog-timer/m-p/198436#M16069</guid>
      <dc:creator>rajiv28</dc:creator>
      <dc:date>2010-05-08T17:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: watchdog timer</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/watchdog-timer/m-p/198437#M16070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I am not entirely sure about your query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When an interrupt occurs that is associated with a hardware event, for example a timer interrupt, the ISR code that is executed is entirely independent of any other code.&amp;nbsp; This code may still execute even if the code within the main loop is not executing correctly.&amp;nbsp; This is why ISR code&amp;nbsp;must never clear the watchdog timer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course, if the ISR code itself should enter an endless loop, no other code will be able to execute, and the watchdog should timeout assuming it is enabled.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 May 2010 19:30:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/watchdog-timer/m-p/198437#M16070</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2010-05-08T19:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: watchdog timer</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/watchdog-timer/m-p/198438#M16071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GM....I beleive you have tried to explain my question but may be i not getting it.......can u please be little bit clearer......what does hangs means it our interrupts are working in hang condition? and how does watchdog works in hanging condition?&lt;/P&gt;&lt;P&gt;thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 12:04:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/watchdog-timer/m-p/198438#M16071</guid>
      <dc:creator>rajiv28</dc:creator>
      <dc:date>2010-05-10T12:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: watchdog timer</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/watchdog-timer/m-p/198439#M16072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hellooooooo bigmec,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r u der?Please explain me about my query...plz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 15:38:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/watchdog-timer/m-p/198439#M16072</guid>
      <dc:creator>rajiv28</dc:creator>
      <dc:date>2010-05-10T15:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: watchdog timer</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/watchdog-timer/m-p/198440#M16073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can think of a few causes why the MCU might appear to "hang" - there may also be other causes.&amp;nbsp; The following would be due to coding problems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The main loop code does not properly execute, maybe because an expected condition does not eventuate and a "wait loop" never exits.&amp;nbsp; The cause may be bad coding, or an undersize stack overwriting global variables.&amp;nbsp; Hardware interrupts should continue to operate normally.&lt;/LI&gt;&lt;LI&gt;The code for an ISR never exits a wait loop.&amp;nbsp; Strictly speaking, ISR code should not contain any wait loop.&lt;/LI&gt;&lt;LI&gt;ISR code is repeatedly entered so that no other code can execute.&amp;nbsp; The usual reason is that the interrupt flag for the particular interrupt is not cleared prior to exiting the ISR.&lt;/LI&gt;&lt;LI&gt;The MCU repeatedly enters reset,&amp;nbsp;which could be a&amp;nbsp;COP reset, or one of the other reset sources.&amp;nbsp; Maybe the COP timer is not being cleared from within a wait loop, and timeout occurs, or maybe the COP reset occurs&amp;nbsp;due to one of the reasons mentioned above.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;It is not the purpose of the COP (watchdog) timer to "fix" any of these problems - you must correct the coding errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 20:10:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/watchdog-timer/m-p/198440#M16073</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2010-05-10T20:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: watchdog timer</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/watchdog-timer/m-p/198441#M16074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear my question is whether the interrupts works in hang condtion?if yes than how?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 17:25:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/watchdog-timer/m-p/198441#M16074</guid>
      <dc:creator>rajiv28</dc:creator>
      <dc:date>2010-05-11T17:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: watchdog timer</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/watchdog-timer/m-p/198442#M16075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When a microcontroller "hangs" it normally doesn't actually stop, it is still executing code, just not in a way that gets anything useful done. So when a interrupt occurs it still happens as normal but when it finishes execution returns right back to where it left off, back in the "hang" loop.&lt;/P&gt;&lt;P&gt;If the code it is executing in the hang condition includes a COP reset then the COP is not going to help at all.&lt;/P&gt;&lt;P&gt;Even if the COP does reset the processor it may simply end up back in the same place anyway.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 19:02:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/watchdog-timer/m-p/198442#M16075</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2010-05-11T19:02:42Z</dc:date>
    </item>
  </channel>
</rss>

