<?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 functions in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Watchdog-functions/m-p/129545#M1204</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Use the _FEED_COP, which works.&lt;BR /&gt;The implementation of __RESER_WATCHDOG is for a HC08, not for a HC12, so better do not use it. The actual error message you see is because it used the HC08 STA and not the HC12 STAA instruction in the macro.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;but all of helper application or example application uses it&lt;BR /&gt;&lt;BR /&gt;Actually I did (fortunately) not find any use of __RESER_WATCHDOG in the HC12 V3.1 installation. Where did you see those usages? Maybe in HC08 code?&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Mar 2006 19:45:32 GMT</pubDate>
    <dc:creator>CompilerGuru</dc:creator>
    <dc:date>2006-03-24T19:45:32Z</dc:date>
    <item>
      <title>Watchdog functions</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Watchdog-functions/m-p/129544#M1203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I m using CW V 3.1 for programmming and debug MC9s12DG128 microcontroller. When i use __RESER_WATCHDOG();&amp;nbsp;functions in main.c it gives an error that " &lt;SPAN style="color: #ff0000;"&gt;C10011 : ' :' expected to delimit label&lt;/SPAN&gt;". but all of helper application or example application uses it. Could you say me what is wrong?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;And i m also using _FEED_COP. But there is no error if i use it.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;the diffirences beetwen them is that __RESET_WATCHDOG(); function is defined in "mc9s12dg128.h" file whereas the _FEED_COP() function is defined in "hidef.h" file.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;these are functions declarations;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;#define __RESET_WATCHDOG() {asm sta COPCTL;} //&amp;nbsp;in the mc9s12dg128.h&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;#define _FEED_COP()&amp;nbsp;&amp;nbsp; ((*(volatile unsigned char*)_COP_RST_ADR)= 0x55,&lt;/DIV&gt;&lt;DIV&gt;(*(volatile unsigned char*)_COP_RST_ADR)= 0xAA)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;and also i&amp;nbsp;think that it is wrong to use __RESET_WATCHDOG(); function because you are not giving 0x55 and 0xAA value&amp;nbsp;with in turn in which shape has been decleared in datasheet.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;am i rigth to think that&amp;nbsp;the _FEED_COP(); function &amp;nbsp;must be used to reset watchdog.?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;best regards.&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 16:55:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Watchdog-functions/m-p/129544#M1203</guid>
      <dc:creator>desponia_</dc:creator>
      <dc:date>2006-03-22T16:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Watchdog functions</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Watchdog-functions/m-p/129545#M1204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Use the _FEED_COP, which works.&lt;BR /&gt;The implementation of __RESER_WATCHDOG is for a HC08, not for a HC12, so better do not use it. The actual error message you see is because it used the HC08 STA and not the HC12 STAA instruction in the macro.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;but all of helper application or example application uses it&lt;BR /&gt;&lt;BR /&gt;Actually I did (fortunately) not find any use of __RESER_WATCHDOG in the HC12 V3.1 installation. Where did you see those usages? Maybe in HC08 code?&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 19:45:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Watchdog-functions/m-p/129545#M1204</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2006-03-24T19:45:32Z</dc:date>
    </item>
  </channel>
</rss>

