<?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 How to enable and use Watchdog on a HC08JM in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-enable-and-use-Watchdog-on-a-HC08JM/m-p/155854#M8875</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone PLEASE assist me as I am new to this. I am using a MC9S08JM Mirco and need to use the watchdog.&lt;/P&gt;&lt;P&gt;I need firstly to enable and I guess to reset it in the main loop or any other . &amp;nbsp;I read that I need to enable the COP and&lt;/P&gt;&lt;P&gt;define the reset adress. How do I do this .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me if you can .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanking you&lt;/P&gt;&lt;P&gt;C&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Aug 2011 04:16:06 GMT</pubDate>
    <dc:creator>SuperByte</dc:creator>
    <dc:date>2011-08-02T04:16:06Z</dc:date>
    <item>
      <title>How to enable and use Watchdog on a HC08JM</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-enable-and-use-Watchdog-on-a-HC08JM/m-p/155854#M8875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone PLEASE assist me as I am new to this. I am using a MC9S08JM Mirco and need to use the watchdog.&lt;/P&gt;&lt;P&gt;I need firstly to enable and I guess to reset it in the main loop or any other . &amp;nbsp;I read that I need to enable the COP and&lt;/P&gt;&lt;P&gt;define the reset adress. How do I do this .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me if you can .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanking you&lt;/P&gt;&lt;P&gt;C&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 04:16:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-enable-and-use-Watchdog-on-a-HC08JM/m-p/155854#M8875</guid>
      <dc:creator>SuperByte</dc:creator>
      <dc:date>2011-08-02T04:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable and use Watchdog on a HC08JM</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-enable-and-use-Watchdog-on-a-HC08JM/m-p/155855#M8876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some of the example code that comes with the development tools usually demonstrates how to enable the watchdog and kept it set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 19:49:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-enable-and-use-Watchdog-on-a-HC08JM/m-p/155855#M8876</guid>
      <dc:creator>J2MEJediMaster</dc:creator>
      <dc:date>2011-08-02T19:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable and use Watchdog on a HC08JM</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-enable-and-use-Watchdog-on-a-HC08JM/m-p/155856#M8877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for taking the time to reply. It is really appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have got the watchdog to work but I am not sure if it is working properly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have set SOPT1 to D3 &amp;nbsp;and call the&amp;nbsp;&amp;nbsp;__RESET_WATCHDOG();﻿ in my main loop.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To test I Commented﻿ out the reset watchdog routine and sure enough the micro&amp;nbsp;&lt;/P&gt;&lt;P&gt;resets which is correct but it only resets for 4 times and then it hangs .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this normal ? &amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I have a problem pointing the COP reset to the reset vector address?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your help will be greatly apprecited.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thnking you kindly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 01:09:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-enable-and-use-Watchdog-on-a-HC08JM/m-p/155856#M8877</guid>
      <dc:creator>SuperByte</dc:creator>
      <dc:date>2011-08-03T01:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable and use Watchdog on a HC08JM</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-enable-and-use-Watchdog-on-a-HC08JM/m-p/155857#M8878</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;All types of reset use the same reset vector, i.e. the same as for a POR.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To fully define the COP operating conditions, SOPT2 register also needs to be written, in addition to SOPT1.&amp;nbsp; This is to define the COP timer clock source, and whether there is "windowed" operation of the COP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally, have you taken into account that both registers are write once - each register must have all bits simultaneously written.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How are you monitoring when each reset occurs?&amp;nbsp; Do you read the SRS register within the initialisation sequence, to determine which source was the cause of reset?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do you specifically mean when you say that the MCU "hangs"?&amp;nbsp; What you seem to be saying is that there is no reset occurring, but the code may otherwise be operating normally.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have the __RESET_WATCHDOG() macro at more than one position within your code?&amp;nbsp; Note that this macro should &lt;U&gt;not&lt;/U&gt; be used within any ISR function.&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>Wed, 03 Aug 2011 23:29:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-enable-and-use-Watchdog-on-a-HC08JM/m-p/155857#M8878</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2011-08-03T23:29:18Z</dc:date>
    </item>
  </channel>
</rss>

