<?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>Other NXP ProductsのトピックRe: Generate interrupt with eTPU</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/Generate-interrupt-with-eTPU/m-p/198040#M1900</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Dear power PC,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you so much for you help.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have added &lt;I&gt;EnableEventHandling()&lt;/I&gt; to my previous code, and when I checked on Debuger, the interrupts were continuously generated, but the interrupt handler couldn't be executed. Maybe there was some problem with the interrupt vector table and interrupt handler. However, other interrupt handlers using the same mechanism (like eDMA interrupt) still worked normally.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; So I'll really appreciate if you can give me an sample project using interrupt from eTPU for reference.&lt;BR /&gt;Thanks so much,&lt;BR /&gt;tudh&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Mar 2008 17:04:46 GMT</pubDate>
    <dc:creator>tudh</dc:creator>
    <dc:date>2008-03-03T17:04:46Z</dc:date>
    <item>
      <title>Generate interrupt with eTPU</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Generate-interrupt-with-eTPU/m-p/198038#M1898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;Dear all,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please help me to generate an interrupt with eTPU.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I'm working with eTPU and I still can't generate an interrupt with eTPU. What I have done to generate an interrupt on channel 6 is that:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; in main function :&lt;BR /&gt;&lt;I&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ETPU.CHAN[6].CR.R = 0x80000000;&amp;nbsp; //enable interrupt&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTC.PSR[74].R = 0x09;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //eTPU_A Channel 6 Priority is: 9&lt;/FONT&gt;&lt;/I&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; in etpu code:&lt;BR /&gt;&lt;I&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; FallingMatch:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; SetChannelInterrupt();&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //generate interrupt&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ClearMatchALatch();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; ....&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; RisingMatch:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; SetChannelInterrupt();&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //generate interrupt&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ClearMatchBLatch();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; ...&lt;/FONT&gt;&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have also tried with these in main function, but the reaults are also the same:&lt;BR /&gt;&lt;I&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ETPU.CHAN[6].CR.B.CIE = 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ETPU.CIER_A.B.CIE6 = 1&lt;BR /&gt;&lt;/FONT&gt;&lt;/I&gt;I have checked the interrupt vector table and interrupt handler and they are OK.&lt;BR /&gt;So is it enough or I miss something to generate an interrupt ? If I missed something, please help me with this.&lt;BR /&gt;Thanks so much,&lt;BR /&gt;tudh&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Feb 2008 19:17:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Generate-interrupt-with-eTPU/m-p/198038#M1898</guid>
      <dc:creator>tudh</dc:creator>
      <dc:date>2008-02-29T19:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Generate interrupt with eTPU</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Generate-interrupt-with-eTPU/m-p/198039#M1899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;in CR you need to select function, paramater base address..&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;in micro code..&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;oc(uc para1,uc para2)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;if (hsr ==&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;&amp;nbsp;&amp;nbsp; )&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;{&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;sm_st&lt;/DIV&gt;&lt;DIV&gt;....&lt;/DIV&gt;&lt;DIV&gt;.....&lt;/DIV&gt;&lt;DIV&gt;enable event handlng&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;else if (m==1)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;para1 = para1+100; // this generates interrupt for every 100 * timer rsulotion&lt;/DIV&gt;&lt;DIV&gt;generate interrupt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2008 22:02:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Generate-interrupt-with-eTPU/m-p/198039#M1899</guid>
      <dc:creator>mr_venkatarao</dc:creator>
      <dc:date>2008-03-01T22:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Generate interrupt with eTPU</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Generate-interrupt-with-eTPU/m-p/198040#M1900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Dear power PC,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you so much for you help.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have added &lt;I&gt;EnableEventHandling()&lt;/I&gt; to my previous code, and when I checked on Debuger, the interrupts were continuously generated, but the interrupt handler couldn't be executed. Maybe there was some problem with the interrupt vector table and interrupt handler. However, other interrupt handlers using the same mechanism (like eDMA interrupt) still worked normally.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; So I'll really appreciate if you can give me an sample project using interrupt from eTPU for reference.&lt;BR /&gt;Thanks so much,&lt;BR /&gt;tudh&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 17:04:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Generate-interrupt-with-eTPU/m-p/198040#M1900</guid>
      <dc:creator>tudh</dc:creator>
      <dc:date>2008-03-03T17:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Generate interrupt with eTPU</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Generate-interrupt-with-eTPU/m-p/198041#M1901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Yes, the interrupt will be generated continously for every (100*timer resolution)... if timer resolution is 1us then interrupt occurance is for every 1msec.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Sry it is not possible to send you project.. net systems are isolated in our company.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;But i suggest you to find example code in for PWM generation in METROWERKS installation path ....codewarrior_example/multicore project.&lt;/DIV&gt;&lt;DIV&gt;In that code interrupt willl be genrated for raising match and falling match. If u set sm_st then interrupt will generate for evry falling match or rising match. Or simply make comment for&amp;nbsp; .cir command in one of entry point for rising mathc or in falling match.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;i think this will help you..&lt;/DIV&gt;&lt;DIV&gt;&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>Mon, 03 Mar 2008 21:48:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Generate-interrupt-with-eTPU/m-p/198041#M1901</guid>
      <dc:creator>mr_venkatarao</dc:creator>
      <dc:date>2008-03-03T21:48:32Z</dc:date>
    </item>
  </channel>
</rss>

