<?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: Frequency change while debugging - DEMO9S08SH32 in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Frequency-change-while-debugging-DEMO9S08SH32/m-p/193946#M15145</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I have done some more testing and found that the change in frequency pops up right after a RTI instruction from an interrupt routine is executed.&amp;nbsp;&amp;nbsp; All the original code is in assembly so&amp;nbsp;I am trying to stick with that for now instead of converting it to C.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The interrupt is from&amp;nbsp;an overflow of one of the TPM timers which is expected.&amp;nbsp; It gets to the routine without problems and executes the code correctly but when the RTI instruction is executed the frequency changes&amp;nbsp;for ~8mhz to 16mhz.&amp;nbsp;&amp;nbsp;Even if i single step over the RTI instruction it will&amp;nbsp;not stop in the code and show the next instruction.&amp;nbsp; I have to hit the Stop arrow in the debugger to get back to code.&amp;nbsp; I'm wondering if maybe the return information is getting stepped on in the interrupt routine.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for help, I'm a newbee to this processor, more use to the Microchip&amp;nbsp; and zworld stuff.&lt;IMG alt=":smileysad:" class="emoticon emoticon-smileysad" id="smileysad" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-sad.gif" title="Smiley Sad" /&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 02 Nov 2008 10:50:29 GMT</pubDate>
    <dc:creator>wtowens</dc:creator>
    <dc:date>2008-11-02T10:50:29Z</dc:date>
    <item>
      <title>Frequency change while debugging - DEMO9S08SH32</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Frequency-change-while-debugging-DEMO9S08SH32/m-p/193944#M15143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;I have a project to convert code from a M68HC08 to a newer processor.&amp;nbsp; I have converted the code to a MC9S08SH8 using Code Warrior and a DEMO9S08SH32 Demo board.&amp;nbsp; The first part of the program is most delays to allow some of the devices to be initialized.&amp;nbsp;&amp;nbsp; If&amp;nbsp;I run the code from the start with a break point where&amp;nbsp;I want to stop in the program, the output on the debugging laptop displays frequency changing ~15Mhz and the program seems to stop running.&amp;nbsp; If I run the code and put breakpoint in to make the code execute in smaller quantities the program works without any problems.&amp;nbsp; If I stop the program after it has stopped running&amp;nbsp;the frequency reverts back to the ~8.0Mhz like it should be.&amp;nbsp;&amp;nbsp; No sure what is causing this to happen, maybe a software/hardware interrupt or just something between the CPU and the debugging system.&amp;nbsp; If you can give me any information as to where&amp;nbsp;to look please replay.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Added p/n to subject.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by NLFSJ on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2008-10-15&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;04:33 PM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 03:24:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Frequency-change-while-debugging-DEMO9S08SH32/m-p/193944#M15143</guid>
      <dc:creator>wtowens</dc:creator>
      <dc:date>2008-10-16T03:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Frequency change while debugging - DEMO9S08SH32</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Frequency-change-while-debugging-DEMO9S08SH32/m-p/193945#M15144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi Wtowens,&lt;BR /&gt;&lt;BR /&gt;Are you configuring ICS registers? Are you trimming ICS internal clock source within your code?&lt;BR /&gt;&lt;BR /&gt;Small changes on the measured BUSCLK frequency are not unusual (due to the way the BDM measures the BUSCLK frequency) but a change from 8MHz to 15MHz is not the case.&lt;BR /&gt;&lt;BR /&gt;When you say: "&lt;SPAN&gt;If I stop the program after it has stopped running&amp;nbsp;the frequency reverts back to the ~8.0Mhz like it should be. ". What do you mean with "after the program stopped"?&lt;BR /&gt;&lt;BR /&gt;Does your program ends with a while(1) or for(;;&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; statement?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2008 02:37:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Frequency-change-while-debugging-DEMO9S08SH32/m-p/193945#M15144</guid>
      <dc:creator>fabio</dc:creator>
      <dc:date>2008-10-22T02:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Frequency change while debugging - DEMO9S08SH32</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Frequency-change-while-debugging-DEMO9S08SH32/m-p/193946#M15145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I have done some more testing and found that the change in frequency pops up right after a RTI instruction from an interrupt routine is executed.&amp;nbsp;&amp;nbsp; All the original code is in assembly so&amp;nbsp;I am trying to stick with that for now instead of converting it to C.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The interrupt is from&amp;nbsp;an overflow of one of the TPM timers which is expected.&amp;nbsp; It gets to the routine without problems and executes the code correctly but when the RTI instruction is executed the frequency changes&amp;nbsp;for ~8mhz to 16mhz.&amp;nbsp;&amp;nbsp;Even if i single step over the RTI instruction it will&amp;nbsp;not stop in the code and show the next instruction.&amp;nbsp; I have to hit the Stop arrow in the debugger to get back to code.&amp;nbsp; I'm wondering if maybe the return information is getting stepped on in the interrupt routine.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for help, I'm a newbee to this processor, more use to the Microchip&amp;nbsp; and zworld stuff.&lt;IMG alt=":smileysad:" class="emoticon emoticon-smileysad" id="smileysad" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-sad.gif" title="Smiley Sad" /&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Nov 2008 10:50:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Frequency-change-while-debugging-DEMO9S08SH32/m-p/193946#M15145</guid>
      <dc:creator>wtowens</dc:creator>
      <dc:date>2008-11-02T10:50:29Z</dc:date>
    </item>
  </channel>
</rss>

