<?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 56F8367EVM - timer compare interrupt problem in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/56F8367EVM-timer-compare-interrupt-problem/m-p/144719#M1653</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using a timer bean (which uses the peripheral timer D1) for periodic interrupt generation. In the bean I have enabled "Timer Compare Interrupt" and I entered "TMRD1_OnCompare" in the ISR name field. I expected that the processor expert would create the interrupt routine in the events.c file, but this is not the case. So I wrote the routine myself:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#pragma interrupt called&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;void TMRD1_OnCompare(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Phase+=5;&amp;nbsp;&amp;nbsp; /* some arbitrary code */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run the code, the routine seems to be executed only once (although the operation mode of the timer was set to "Count Mode" - "Count Repeatedly"). After the routine has been executed, some other interrupt routines, such as ButtonA_OnInterrupt, which is called in the case that button A on the evaluation board is pressed, are not any more executed either. In fact, the only interrupt routine that is still executed is the ADC_OnEnd (ADC conversion complete) routine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What could be the reason of this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working with an evaluation module 56F8367EVM and CodeWarrior version 5.6.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sincerely,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kristof Geldhof&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--&lt;BR /&gt;Alban Edit: Please always include FSL Part Number in Message Subject line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by Alban on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2007-09-12&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;12:04 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Sep 2007 22:24:41 GMT</pubDate>
    <dc:creator>kgeldhof</dc:creator>
    <dc:date>2007-09-10T22:24:41Z</dc:date>
    <item>
      <title>56F8367EVM - timer compare interrupt problem</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/56F8367EVM-timer-compare-interrupt-problem/m-p/144719#M1653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using a timer bean (which uses the peripheral timer D1) for periodic interrupt generation. In the bean I have enabled "Timer Compare Interrupt" and I entered "TMRD1_OnCompare" in the ISR name field. I expected that the processor expert would create the interrupt routine in the events.c file, but this is not the case. So I wrote the routine myself:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#pragma interrupt called&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;void TMRD1_OnCompare(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Phase+=5;&amp;nbsp;&amp;nbsp; /* some arbitrary code */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run the code, the routine seems to be executed only once (although the operation mode of the timer was set to "Count Mode" - "Count Repeatedly"). After the routine has been executed, some other interrupt routines, such as ButtonA_OnInterrupt, which is called in the case that button A on the evaluation board is pressed, are not any more executed either. In fact, the only interrupt routine that is still executed is the ADC_OnEnd (ADC conversion complete) routine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What could be the reason of this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working with an evaluation module 56F8367EVM and CodeWarrior version 5.6.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sincerely,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kristof Geldhof&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--&lt;BR /&gt;Alban Edit: Please always include FSL Part Number in Message Subject line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by Alban on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2007-09-12&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;12:04 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 22:24:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/56F8367EVM-timer-compare-interrupt-problem/m-p/144719#M1653</guid>
      <dc:creator>kgeldhof</dc:creator>
      <dc:date>2007-09-10T22:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: timer compare interrupt problem</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/56F8367EVM-timer-compare-interrupt-problem/m-p/144720#M1654</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;Without the application it's difficult to determine the cause of the problem.&lt;/DIV&gt;&lt;DIV&gt;On the installation lot of examples are delivered.&lt;/DIV&gt;&lt;DIV&gt;There is one for Timer.&lt;/DIV&gt;&lt;DIV&gt;Go to the folder:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; \Stationery\Processor_Expert_Examples\DemoApplications\HWBeans\56F83xx\TimerOut&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Please use this example as an application based.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Pascal&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 16:43:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/56F8367EVM-timer-compare-interrupt-problem/m-p/144720#M1654</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2007-09-11T16:43:24Z</dc:date>
    </item>
  </channel>
</rss>

