<?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 - Illegal BP - Random Cat noise in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-Illegal-BP/m-p/139820#M5472</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Rocco,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Daytime TV in the UK is .... undescribable. And so is the Scottish weather this week.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;To bring a bit more on the &lt;STRONG&gt;innovation&lt;/STRONG&gt; side:&lt;/DIV&gt;&lt;DIV&gt;I recognize I was carried away by the "kicking" and thought we should stop kick the dog and start kicking the cat who deserves it more.&lt;/DIV&gt;&lt;DIV&gt;But I also agree that the "ron-ron" of the cat&amp;nbsp;would also create vibration on the board.and could also add to the EMC. &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Alban.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Dec 2006 19:48:45 GMT</pubDate>
    <dc:creator>Alban</dc:creator>
    <dc:date>2006-12-15T19:48:45Z</dc:date>
    <item>
      <title>HCS08 - Illegal BP</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-Illegal-BP/m-p/139813#M5465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I am trying to program a HC9SO8 chip with a C compiler&lt;/DIV&gt;&lt;DIV&gt;I add a while state and the device works for one pass only. The debugger tells me ILLegal BP and ends code.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I power down device and the code runs fine.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;SPAN class="msg_source_code"&gt;&lt;SPAN class="text_smallest"&gt;Code:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;void main(void) {&amp;nbsp;&amp;nbsp;&amp;nbsp; int x; EnableInterrupts; /* enable interrupts */&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Initialize();&amp;nbsp; ConfigurePorts();&amp;nbsp;&amp;nbsp;&amp;nbsp; x=1;&amp;nbsp; while (x=1){&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x=1;&amp;nbsp; if (Button1==DOWN){&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Reverse();&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp; } for(;;) {&amp;nbsp;&amp;nbsp; __RESET_WATCHDOG(); /* feeds the dog */ } /* loop forever */ /* please make sure that you never leave main */}&lt;/PRE&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;SPAN style="font-size: 1;"&gt;(Alban: moved post from 16-bit; clear title; format code using SRC button)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;Message Edited by Alban on &lt;SPAN class="date_text"&gt;2006-12-12&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;11:26 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2006 07:15:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-Illegal-BP/m-p/139813#M5465</guid>
      <dc:creator>DanielMorley</dc:creator>
      <dc:date>2006-12-13T07:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08 - Illegal BP</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-Illegal-BP/m-p/139814#M5466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Seems to me the dog may be getting hungry.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2006 19:19:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-Illegal-BP/m-p/139814#M5466</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2006-12-13T19:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08 - Illegal BP</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-Illegal-BP/m-p/139815#M5467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello Daniel,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;The following comments are additional to Peg's observation about the&amp;nbsp;food deficit to the&amp;nbsp;canine.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;While not the cause of your illegal BP error, you will need to place the code that must execute multiple times within the "main loop" - within the loop forever block.&amp;nbsp; Any code prior to this&amp;nbsp;is&amp;nbsp;normally intended to execute once only - except that your code seems to create another never-ending loop (assuming variable x remains at 1),&amp;nbsp;and the following code will never be reached.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;If you are sensing a mechanical pushbutton, you will also need to consider some de-bounce delay before re-testing the pushbutton state.&amp;nbsp; Otherwise it would be possible for the reverse() function to execute multiple times for a single keypress, probably not what you intend.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2006 23:20:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-Illegal-BP/m-p/139815#M5467</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2006-12-13T23:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08 - Illegal BP</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-Illegal-BP/m-p/139816#M5468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;the "while (x=1)"&amp;nbsp; (assignment instead of comparsion) will always be true and never exit.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 19:45:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-Illegal-BP/m-p/139816#M5468</guid>
      <dc:creator>Sten</dc:creator>
      <dc:date>2006-12-14T19:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08 - Illegal BP</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-Illegal-BP/m-p/139817#M5469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;As an improvement in future Designs, I suggest we replace the dog by a cat.&lt;/DIV&gt;&lt;DIV&gt;At least it will hunt for its food and we won't have to feed it.&lt;/DIV&gt;&lt;DIV&gt;This should save money...&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;IMG alt=":smileytongue:" class="emoticon emoticon-smileytongue" id="smileytongue" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-tongue.gif" title="Smiley Tongue" /&gt;&amp;nbsp;&lt;IMG alt=":smileytongue:" class="emoticon emoticon-smileytongue" id="smileytongue" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-tongue.gif" title="Smiley Tongue" /&gt;&amp;nbsp;&lt;IMG alt=":smileytongue:" class="emoticon emoticon-smileytongue" id="smileytongue" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-tongue.gif" title="Smiley Tongue" /&gt;&amp;nbsp;&lt;IMG alt=":smileytongue:" class="emoticon emoticon-smileytongue" id="smileytongue" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-tongue.gif" title="Smiley Tongue" /&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 05:52:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-Illegal-BP/m-p/139817#M5469</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2006-12-15T05:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08 - Illegal BP</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-Illegal-BP/m-p/139818#M5470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;It looks like Alban is spending his vacation on the board. &lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" id="smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt; And enjoying himself as well. &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;BR /&gt;&lt;BR /&gt;The problem with a cat is that it won't listen to you, and will reset the MCU when it darn well pleases. &lt;IMG alt=":smileytongue:" class="emoticon emoticon-smileytongue" id="smileytongue" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-tongue.gif" title="Smiley Tongue" /&gt; &lt;IMG alt=":smileytongue:" class="emoticon emoticon-smileytongue" id="smileytongue" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-tongue.gif" title="Smiley Tongue" /&gt; &lt;IMG alt=":smileytongue:" class="emoticon emoticon-smileytongue" id="smileytongue" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-tongue.gif" title="Smiley Tongue" /&gt; &lt;IMG alt=":smileytongue:" class="emoticon emoticon-smileytongue" id="smileytongue" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-tongue.gif" title="Smiley Tongue" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 06:35:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-Illegal-BP/m-p/139818#M5470</guid>
      <dc:creator>rocco</dc:creator>
      <dc:date>2006-12-15T06:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08 - Illegal BP</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-Illegal-BP/m-p/139819#M5471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;I've found THE solution : using a dead cat... It doesn't need any feeds :smileywink:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Sorry....&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Yvan&lt;/DIV&gt;&lt;P&gt;Message Edited by yb on &lt;SPAN class="date_text"&gt;2006-12-15&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;10:25 AM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 16:15:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-Illegal-BP/m-p/139819#M5471</guid>
      <dc:creator>yb</dc:creator>
      <dc:date>2006-12-15T16:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08 - Illegal BP - Random Cat noise</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-Illegal-BP/m-p/139820#M5472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Rocco,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Daytime TV in the UK is .... undescribable. And so is the Scottish weather this week.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;To bring a bit more on the &lt;STRONG&gt;innovation&lt;/STRONG&gt; side:&lt;/DIV&gt;&lt;DIV&gt;I recognize I was carried away by the "kicking" and thought we should stop kick the dog and start kicking the cat who deserves it more.&lt;/DIV&gt;&lt;DIV&gt;But I also agree that the "ron-ron" of the cat&amp;nbsp;would also create vibration on the board.and could also add to the EMC. &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Alban.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 19:48:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-Illegal-BP/m-p/139820#M5472</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2006-12-15T19:48:45Z</dc:date>
    </item>
  </channel>
</rss>

