<?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>8-bit MicrocontrollersのトピックRe: Watchdog RESET problem</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Watchdog-RESET-problem/m-p/158545#M9355</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rizwan, and welcome to the forum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is generally not a good idea to call __RESET_WATCHDOG() from any ISR for another reason.&amp;nbsp; It is possible for there to be&amp;nbsp;errant main loop code&amp;nbsp;that does not affect the normal operation of hardware interrupts.&amp;nbsp; Calling the macro or function from within an ISR&amp;nbsp;may result in the&amp;nbsp;runaway condition of the main loop&amp;nbsp;code not being sensed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you find that you need to reset the watchdog timer from within an ISR, to prevent COP timeout,&amp;nbsp;your ISR code is far too lengthy and/or time consuming.&amp;nbsp; ISR code should be as short as possible.&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>Fri, 29 Oct 2010 01:26:08 GMT</pubDate>
    <dc:creator>bigmac</dc:creator>
    <dc:date>2010-10-29T01:26:08Z</dc:date>
    <item>
      <title>Watchdog RESET problem</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Watchdog-RESET-problem/m-p/158543#M9353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am currently using MC9S08SG32 microntroller. when i call __RESET_WATCHDOG(); in my ISR of Timer or SPI, my controller is getting resetted continously and throws series of zeros (0000...) on the serial port.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can u please suggest the reason for r the same and possible solution if any.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rizwan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 13:14:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Watchdog-RESET-problem/m-p/158543#M9353</guid>
      <dc:creator>Rizwan_shaikh</dc:creator>
      <dc:date>2010-10-28T13:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Watchdog RESET problem</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Watchdog-RESET-problem/m-p/158544#M9354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have __RESET_WATCHDOG() also in main loop? If yes, then since watchdog on SG32 is cleared in two steps, SRS=0x55, then SRS=0xAA,&amp;nbsp;interrupt may be triggered while PC is in between SRS=0x55 and SRS=0xAA of the main loop, producing SRS=0x55, 0x55, 0xAA, 0xAA and of course resetting MCU.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 19:10:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Watchdog-RESET-problem/m-p/158544#M9354</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2010-10-28T19:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Watchdog RESET problem</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Watchdog-RESET-problem/m-p/158545#M9355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rizwan, and welcome to the forum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is generally not a good idea to call __RESET_WATCHDOG() from any ISR for another reason.&amp;nbsp; It is possible for there to be&amp;nbsp;errant main loop code&amp;nbsp;that does not affect the normal operation of hardware interrupts.&amp;nbsp; Calling the macro or function from within an ISR&amp;nbsp;may result in the&amp;nbsp;runaway condition of the main loop&amp;nbsp;code not being sensed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you find that you need to reset the watchdog timer from within an ISR, to prevent COP timeout,&amp;nbsp;your ISR code is far too lengthy and/or time consuming.&amp;nbsp; ISR code should be as short as possible.&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>Fri, 29 Oct 2010 01:26:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Watchdog-RESET-problem/m-p/158545#M9355</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2010-10-29T01:26:08Z</dc:date>
    </item>
  </channel>
</rss>

