<?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: COP watchdog in STOP3 mode for HCS08 in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/COP-watchdog-in-STOP3-mode-for-HCS08/m-p/203306#M16792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello and thank you for the response rocco,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MC9S08AW16A is the MCU used, and I am aware about the datasheet snippet that you mentioned. But from what I understand the watchdog counter is only cleared upon STOP mode, and not disabled. So in STOP mode the watchdog is active, if it has as clock source the 1KHz clock. Still no reset triggered by the watchdog occurs. Maybe I understand the all description wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Feb 2012 18:28:31 GMT</pubDate>
    <dc:creator>kaes</dc:creator>
    <dc:date>2012-02-08T18:28:31Z</dc:date>
    <item>
      <title>COP watchdog in STOP3 mode for HCS08</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/COP-watchdog-in-STOP3-mode-for-HCS08/m-p/203302#M16788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The next scenario been given:&lt;/P&gt;&lt;P&gt;1. watchdog enabled with 1KHz clock source&lt;/P&gt;&lt;P&gt;2. RTI enabled in sleep mode and raised cyclically at 8ms driven by the same clock source&lt;/P&gt;&lt;P&gt;3. the routine of the interrupt does not clear the watchdog counter&lt;/P&gt;&lt;P&gt;=&amp;gt; the MCU is not reset by the watchdog reset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any clue? Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2012 00:18:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/COP-watchdog-in-STOP3-mode-for-HCS08/m-p/203302#M16788</guid>
      <dc:creator>kaes</dc:creator>
      <dc:date>2012-02-07T00:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: COP watchdog in STOP3 mode for HCS08</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/COP-watchdog-in-STOP3-mode-for-HCS08/m-p/203303#M16789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, and welcome to the forum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where have you placed the STOP instruction?&amp;nbsp; This would&amp;nbsp;usually be located somewhere&amp;nbsp;within the main loop.&amp;nbsp; When wakeup from Stop 3 mode occurs, the RTI ISR code will be executed.&amp;nbsp; When this is completed, execution will continue at the instruction immediately following the STOP instruction.&amp;nbsp; It is usual to clear the COP timer within the main loop,&amp;nbsp;so this may prevent COP timeout from occurring.&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>Tue, 07 Feb 2012 22:55:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/COP-watchdog-in-STOP3-mode-for-HCS08/m-p/203303#M16789</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2012-02-07T22:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: COP watchdog in STOP3 mode for HCS08</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/COP-watchdog-in-STOP3-mode-for-HCS08/m-p/203304#M16790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello and thank you for the reply,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think that I didn't explain enough the scenario:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a application that runs in high-power mode and also in low-power mode (in this case, STOP3 mode). To enter in STOP3 mode, STOP instruction must be executed. In STOP3 mode, the only code that is executed is the body of the RTI that is raised cyclically at 8 ms. It has as clock source the 1KHz clock, that also is input in the COP watchdog. In the ISR of the RTI the watchdog counter is not cleared, so I would expect that after a time period the watchdog will reset the MCU. But nothing happens, as the watchdog is disabled. But all the configuration registers are in good shape.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 14:41:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/COP-watchdog-in-STOP3-mode-for-HCS08/m-p/203304#M16790</guid>
      <dc:creator>kaes</dc:creator>
      <dc:date>2012-02-08T14:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: COP watchdog in STOP3 mode for HCS08</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/COP-watchdog-in-STOP3-mode-for-HCS08/m-p/203305#M16791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaes,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You did not mention which S08 you were using, but the behavior you are experiencing is the correct behavior for some of the&amp;nbsp; S08 members. Here is a snippet from the DZ datasheet:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;If the 1-kHz clock source is selected, the COP counter is re-initialized to zero upon entry to either&lt;BR /&gt;background debug mode or stop mode and begins from zero upon exit from background debug mode or&lt;BR /&gt;stop mode.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;So entering stop mode in the DZ would have the same effect as clearing the watchdog.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 15:08:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/COP-watchdog-in-STOP3-mode-for-HCS08/m-p/203305#M16791</guid>
      <dc:creator>rocco</dc:creator>
      <dc:date>2012-02-08T15:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: COP watchdog in STOP3 mode for HCS08</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/COP-watchdog-in-STOP3-mode-for-HCS08/m-p/203306#M16792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello and thank you for the response rocco,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MC9S08AW16A is the MCU used, and I am aware about the datasheet snippet that you mentioned. But from what I understand the watchdog counter is only cleared upon STOP mode, and not disabled. So in STOP mode the watchdog is active, if it has as clock source the 1KHz clock. Still no reset triggered by the watchdog occurs. Maybe I understand the all description wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 18:28:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/COP-watchdog-in-STOP3-mode-for-HCS08/m-p/203306#M16792</guid>
      <dc:creator>kaes</dc:creator>
      <dc:date>2012-02-08T18:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: COP watchdog in STOP3 mode for HCS08</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/COP-watchdog-in-STOP3-mode-for-HCS08/m-p/203307#M16793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;kaes wrote:&lt;BR /&gt;&lt;P&gt;I have a application that runs in high-power mode and also in low-power mode (in this case, STOP3 mode). &lt;FONT color="#ff0000"&gt;To enter in STOP3 mode, STOP instruction must be executed. In STOP3 mode, the only code that is executed is the body of the RTI that is raised cyclically at 8 ms.&lt;/FONT&gt; It has as clock source the 1KHz clock, that also is input in the COP watchdog. In the ISR of the RTI the watchdog counter is not cleared, so I would expect that after a time period the watchdog will reset the MCU. But nothing happens, as the watchdog is disabled. But all the configuration registers are in good shape.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;There does seem to be a little confusion about the operation of Stop 3 mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whilst stop mode is active, no code is being executed as the bus clock is disabled.&amp;nbsp; You&amp;nbsp;appear to be using the RTI counter as a &lt;U&gt;wakeup source&lt;/U&gt;, with a timeout period of 8 milliseconds.&amp;nbsp; The wakeup process will restore the bus clock so that further code may continue to execute.&amp;nbsp; The ISR code for the RTI,&amp;nbsp;will immediately execute.&amp;nbsp; When this has finished, the program counter will be located at the instruction immediately following the STOP instruction that caused Stop 3 mode to be entered.&amp;nbsp; Normal operation of the MCU will then continue until a further STOP instruction is encountered.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whether COP timeout occurs, or not, will depend on what occurs between the execution of successive STOP instructions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For some MCU types (e.g MC9S08AW) the COP timer is explicitly not available as a wakeup source, which means that the COP timer&amp;nbsp;has to be&amp;nbsp;in a disabled&amp;nbsp;state whilst Stop mode is active.&amp;nbsp; It would just not make sense for the COP timer to continue to run, since there is no code execution to go haywire.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 20:43:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/COP-watchdog-in-STOP3-mode-for-HCS08/m-p/203307#M16793</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2012-02-08T20:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: COP watchdog in STOP3 mode for HCS08</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/COP-watchdog-in-STOP3-mode-for-HCS08/m-p/203308#M16794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello bigmac,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response, you maked all things clear now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 21:06:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/COP-watchdog-in-STOP3-mode-for-HCS08/m-p/203308#M16794</guid>
      <dc:creator>kaes</dc:creator>
      <dc:date>2012-02-08T21:06:20Z</dc:date>
    </item>
  </channel>
</rss>

