<?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: HCS08: There is no &amp;quot;reset&amp;quot; instruction? in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-There-is-no-quot-reset-quot-instruction/m-p/144822#M6989</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="msg_source_code"&gt;&lt;SPAN class="text_smallest"&gt;Code:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;if(++SOFTWARE_WATCHDOG &amp;gt; 200)    {                       /* Generate a RESET by Illegal Opcode */   asm DCB 0x8D ;   }&lt;/PRE&gt;&lt;BR /&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This does work.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Alban.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2020 08:45:47 GMT</pubDate>
    <dc:creator>Alban</dc:creator>
    <dc:date>2020-10-29T08:45:47Z</dc:date>
    <item>
      <title>HCS08: There is no "reset" instruction?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-There-is-no-quot-reset-quot-instruction/m-p/144814#M6981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I want to reset the MCU at some conditions.&lt;/DIV&gt;&lt;DIV&gt;But there is no instruction to do this with HCS08.&lt;/DIV&gt;&lt;DIV&gt;How can I reset the MCU without using COP?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;MCU is MC9S08LC60.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2007 16:28:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-There-is-no-quot-reset-quot-instruction/m-p/144814#M6981</guid>
      <dc:creator>BasePointer</dc:creator>
      <dc:date>2007-02-08T16:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08: There is no "reset" instruction?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-There-is-no-quot-reset-quot-instruction/m-p/144815#M6982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;You can generate RESET by doing illegal operation, you can find an example in AN2295&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class="msg_source_code"&gt;&lt;SPAN class="text_smallest"&gt;Code:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;ILOP        MACRO            DC.B    $8d             ; this is illegal operation code            ENDM&lt;/PRE&gt;&lt;BR /&gt;&amp;nbsp;call this macro and processor will reset with illegal opcode (you can see that in SRS register and ILOP flag)&lt;BR /&gt;&lt;BR /&gt;Emmanuel&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:45:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-There-is-no-quot-reset-quot-instruction/m-p/144815#M6982</guid>
      <dc:creator>Nouchi</dc:creator>
      <dc:date>2020-10-29T08:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08: There is no "reset" instruction?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-There-is-no-quot-reset-quot-instruction/m-p/144816#M6983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;BugMan's method is also my prefered.&lt;/DIV&gt;&lt;DIV&gt;You can also generate an ILAD (Execute from Illegal Address), by doing&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;FONT face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; JMP 0x00;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;0x00 is not a code region but registers.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I prefer ILOP as an ILAD is more likely to happen in code runaway situations.&lt;/DIV&gt;&lt;DIV&gt;Therefore I prefer my software to know when a real ILAD occured.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Cheers,&lt;/DIV&gt;&lt;DIV&gt;Alban.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2007 17:13:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-There-is-no-quot-reset-quot-instruction/m-p/144816#M6983</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-02-08T17:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08: There is no "reset" instruction?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-There-is-no-quot-reset-quot-instruction/m-p/144817#M6984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi BugMan,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;How can I use this in C?&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="msg_source_code"&gt;&lt;SPAN class="text_smallest"&gt;Code:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;if(++SOFTWARE_WATCHDOG &amp;gt; 200) asm("DC.B $8d");Error: C18125: Invalid opcode or ':' expected&lt;/PRE&gt;&lt;BR /&gt;&amp;nbsp;Thanks.&lt;BR /&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:45:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-There-is-no-quot-reset-quot-instruction/m-p/144817#M6984</guid>
      <dc:creator>BasePointer</dc:creator>
      <dc:date>2020-10-29T08:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08: There is no "reset" instruction?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-There-is-no-quot-reset-quot-instruction/m-p/144818#M6985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Alban,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="msg_source_code"&gt;&lt;SPAN class="text_smallest"&gt;Code:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;if(++SOFTWARE_WATCHDOG &amp;gt; 200) asm("JMP 0x00");&lt;/PRE&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;This is compiled succesfully. But I wonder is this real reset or just jump to 0?&lt;/DIV&gt;&lt;DIV&gt;Can I re-initialize one-time writeable registers after this reset?&lt;/DIV&gt;&lt;DIV&gt;Will all registers set back to their reset values?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:45:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-There-is-no-quot-reset-quot-instruction/m-p/144818#M6985</guid>
      <dc:creator>BasePointer</dc:creator>
      <dc:date>2020-10-29T08:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08: There is no "reset" instruction?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-There-is-no-quot-reset-quot-instruction/m-p/144819#M6986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The first solution comes to my mind, is to write a pure asm function (not in lined), and call the function in your C file. The Inline assembler seems to be quite strict.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Emmanuel&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2007 18:31:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-There-is-no-quot-reset-quot-instruction/m-p/144819#M6986</guid>
      <dc:creator>Nouchi</dc:creator>
      <dc:date>2007-02-08T18:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08: There is no "reset" instruction?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-There-is-no-quot-reset-quot-instruction/m-p/144820#M6987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;0x00 cannot be executed from as the MCU knows it is a register area.&lt;/DIV&gt;&lt;DIV&gt;Therefore a jump to 0 will trigger an Illegal Address Reset (ILAD Flagged).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;All registers go to their reset value, and write-once are released like if it was a PIN Reset.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Cheers,&lt;/DIV&gt;&lt;DIV&gt;Alban.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2007 18:42:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-There-is-no-quot-reset-quot-instruction/m-p/144820#M6987</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-02-08T18:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08: There is no "reset" instruction?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-There-is-no-quot-reset-quot-instruction/m-p/144821#M6988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Take a look here:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="http://forums.freescale.com/freescale/board/message?board.id=8BITCOMM&amp;amp;message.id=208" target="_blank"&gt;http://forums.freescale.com/freescale/board/message?board.id=8BITCOMM&amp;amp;message.id=208&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;for some other ideas on this.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2007 18:46:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-There-is-no-quot-reset-quot-instruction/m-p/144821#M6988</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2007-02-08T18:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08: There is no "reset" instruction?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-There-is-no-quot-reset-quot-instruction/m-p/144822#M6989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="msg_source_code"&gt;&lt;SPAN class="text_smallest"&gt;Code:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;if(++SOFTWARE_WATCHDOG &amp;gt; 200)    {                       /* Generate a RESET by Illegal Opcode */   asm DCB 0x8D ;   }&lt;/PRE&gt;&lt;BR /&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This does work.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Alban.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:45:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-There-is-no-quot-reset-quot-instruction/m-p/144822#M6989</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2020-10-29T08:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08: There is no "reset" instruction?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-There-is-no-quot-reset-quot-instruction/m-p/144823#M6990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Alban,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;asm("jmp 0x00"); -&amp;gt; doesn't generate illegal opcode reset for me. The application crashs with it.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;But this worked as I expected.&lt;/DIV&gt;&lt;DIV&gt;if(++SOFTWARE_WATCHDOG &amp;gt; 200) asm("DCB 0x8D");&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you so much.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2007 19:37:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-There-is-no-quot-reset-quot-instruction/m-p/144823#M6990</guid>
      <dc:creator>BasePointer</dc:creator>
      <dc:date>2007-02-08T19:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08: There is no "reset" instruction?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-There-is-no-quot-reset-quot-instruction/m-p/144824#M6991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Thanks for the feedback BP, may be the S08 doesn't behave as I thought.&lt;/DIV&gt;&lt;DIV&gt;I find it abnormal though.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Manu/Peg ?&lt;/DIV&gt;&lt;DIV&gt;Any experience on this ILAD ?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I will Read The Factory Manual and see...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Alban.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2007 20:06:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-There-is-no-quot-reset-quot-instruction/m-p/144824#M6991</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-02-08T20:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08: There is no "reset" instruction?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-There-is-no-quot-reset-quot-instruction/m-p/144825#M6992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Everything is OK.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The confidential product you are talking about does not feature ILAD.&lt;/DIV&gt;&lt;DIV&gt;Same for GB60.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Alban.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2007 20:17:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-There-is-no-quot-reset-quot-instruction/m-p/144825#M6992</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-02-08T20:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08: There is no "reset" instruction?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-There-is-no-quot-reset-quot-instruction/m-p/144826#M6993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Ahhh!&lt;/DIV&gt;&lt;DIV&gt;So this is what Rocky meant by "there are no illegal addresses on a GB60" in my "QG BKGD issues" thread!&lt;/DIV&gt;&lt;DIV&gt;All newer A version 'less than 60' GB/GT's have it re-instated.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 05:42:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-There-is-no-quot-reset-quot-instruction/m-p/144826#M6993</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2007-02-09T05:42:33Z</dc:date>
    </item>
  </channel>
</rss>

