<?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 How to Debug ...about timer interrupt...... in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-Debug-about-timer-interrupt/m-p/131693#M1194</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 use 9s12DT128B&amp;nbsp; for elevator.&amp;nbsp; Debuged by CodeWarrior 3.1 Professional Edition. But now meet a question :&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;During my program, 1ms interrupt is necessary . So when I debug&amp;nbsp; with step by step,&amp;nbsp; the program keep to trace within the interrupt servie program. Because the timer is keeping to count, never stop. even the whole program have been stopped. The timer is&amp;nbsp;going on running.&lt;/DIV&gt;&lt;DIV&gt;How can&amp;nbsp;I do? how to stop the timer, the program halt?&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Apr 2006 14:02:14 GMT</pubDate>
    <dc:creator>harlenChen</dc:creator>
    <dc:date>2006-04-07T14:02:14Z</dc:date>
    <item>
      <title>How to Debug ...about timer interrupt......</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-Debug-about-timer-interrupt/m-p/131693#M1194</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 use 9s12DT128B&amp;nbsp; for elevator.&amp;nbsp; Debuged by CodeWarrior 3.1 Professional Edition. But now meet a question :&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;During my program, 1ms interrupt is necessary . So when I debug&amp;nbsp; with step by step,&amp;nbsp; the program keep to trace within the interrupt servie program. Because the timer is keeping to count, never stop. even the whole program have been stopped. The timer is&amp;nbsp;going on running.&lt;/DIV&gt;&lt;DIV&gt;How can&amp;nbsp;I do? how to stop the timer, the program halt?&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2006 14:02:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-Debug-about-timer-interrupt/m-p/131693#M1194</guid>
      <dc:creator>harlenChen</dc:creator>
      <dc:date>2006-04-07T14:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to Debug ...about timer interrupt......</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-Debug-about-timer-interrupt/m-p/131694#M1195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello Harlen.&lt;BR /&gt;It sounds like you're trying to single-step with interrupts enabled. If you find the status register in the debug screen and double-click the I-flag it should disable the interrupts and then you can single-step your code.&lt;BR /&gt;ron&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2006 20:35:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-Debug-about-timer-interrupt/m-p/131694#M1195</guid>
      <dc:creator>glork</dc:creator>
      <dc:date>2006-04-07T20:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to Debug ...about timer interrupt......</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-Debug-about-timer-interrupt/m-p/131695#M1196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Which connection are you using to connect to your board (Multilink, Cyclone Pro, ...)?&lt;/P&gt;&lt;P&gt;With some connections it is possible to disable maskable interrupts while stepping, when checking the&amp;nbsp; "Disable maskable ISR's when stepping" checkbox in "Communication"|"Special Setup" dialog.&lt;/P&gt;&lt;P&gt;Availability of that box depends on the version of the tools you are using and on the connection you are using.&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2006 21:42:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-Debug-about-timer-interrupt/m-p/131695#M1196</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-04-07T21:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to Debug ...about timer interrupt......</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-Debug-about-timer-interrupt/m-p/131696#M1197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; thanks for your anwswer,&lt;/P&gt;&lt;P&gt;I use MultilinkBDM to connect to my target board.&lt;/P&gt;&lt;P&gt;Besides, I want to know.&lt;/P&gt;&lt;P&gt;Does the timer of CPU stop counting when MCU halt during the debug? For example:&amp;nbsp; current TCNT: 0x1000, then I press "Single step". -&amp;gt;maybe TCNT become to 0x10FF, and than I press "Single step" again-&amp;gt; myabe TCNT become to 0x11FE. when I don't press any instruction, the TCNT dont change.&amp;nbsp;&amp;nbsp; But Freescale MCU timer can not&amp;nbsp;stop when MCU halt ? &amp;nbsp;Have any method to overcome this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Apr 2006 08:01:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-Debug-about-timer-interrupt/m-p/131696#M1197</guid>
      <dc:creator>harlenChen</dc:creator>
      <dc:date>2006-04-09T08:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to Debug ...about timer interrupt......</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-Debug-about-timer-interrupt/m-p/131697#M1198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Harlen,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Setting the TSFRZ bit in the TSCR1 register to 1 should disable the timer and modulus counter when you are in the debugger with the target stopped.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;See the ECT_16B8C Block User Guide.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;"Freeze Mode" or "Active BDM mode" is the state that the target is in when it is not executing instructions and connected to a BDM debugger.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Stop and Wait are other possible modes when the target is not executing instructions, but BDM communication is not possible in these modes.&lt;B&gt;&lt;FONT face="Swiss 721 SWA" size="4"&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 05:08:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-Debug-about-timer-interrupt/m-p/131697#M1198</guid>
      <dc:creator>SteveRussell</dc:creator>
      <dc:date>2006-04-10T05:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to Debug ...about timer interrupt......</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-Debug-about-timer-interrupt/m-p/131698#M1199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;The debugger will not stop the timer counter. So you would have to modify the appropriate registers if you want to do so.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 17:03:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-Debug-about-timer-interrupt/m-p/131698#M1199</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-04-10T17:03:21Z</dc:date>
    </item>
  </channel>
</rss>

