<?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: Problem with interrupts in MPC5643L (Leopard) in Other NXP Products</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/Problem-with-interrupts-in-MPC5643L-Leopard/m-p/201956#M2041</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi fraqui and Tatay,&lt;/P&gt;&lt;P&gt;If you could post or send me the complete project I would try to debug it and see what happens. Which CW version and which HW board are you using?&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jun 2011 15:10:35 GMT</pubDate>
    <dc:creator>almarto</dc:creator>
    <dc:date>2011-06-17T15:10:35Z</dc:date>
    <item>
      <title>Problem with interrupts in MPC5643L (Leopard)</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Problem-with-interrupts-in-MPC5643L-Leopard/m-p/201953#M2038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm a newbie with Leopard and I'm trying to generate an interrupt with a falling edge&amp;nbsp;of an external signal. This is the code I have:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;void initINTC(void){ INTC.BCR.B.HVEN_PRC0=0; //0:SW vector mode, 1: HW vector mode (processor 0) INTC.CPR.B.PRI=0;// Lower INTC's current priority}void initPin(void){ SIU.PCR[0].R=0x0100; //configured as input SIU.IFEER.B.IFEE0=1; //Interrupt Falling-Edge Enable for this pin SIU.IRER.B.EIRE0=1; //Interrupt Request Enable }void INTERRUPT_FALLING_EDGE_0(void){ sendRS232Data(0xFF00FF00); SIU.ISR.B.EIF0=1;}int main(void) {  volatile int i = 0;    initModesAndClks();      /* Initialize mode entries */  initPeriClkGen();        /* Initialize peripheral clock generation for LINFlex */  disableWatchdog();       /* Disable watchdog */  initLINFlex_0();         /* Initialize serial port */  initINTC();              /* Initialize Interrupt Controller */  initPin();               /* Initialize interrupt pin */  INTC_InstallINTCInterruptHandler(INTERRUPT_FALLING_EDGE_0,0,1);  /* Loop forever */  for (;;) {    i++;     }}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The interrupt is correctly generated because the interrupt flag in the&amp;nbsp;ISR register is set when the falling edge occurs, but the problem is that the interrupt service routine is never executed.&lt;/P&gt;&lt;P&gt;I've used the&amp;nbsp;&amp;nbsp;INTC_InstallINTCInterruptHandler instruction to activate the routine, but I don't know what else I need to do.&lt;/P&gt;&lt;P&gt;Somebody could&amp;nbsp;help me?&lt;/P&gt;&lt;P&gt;Thanks and regards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2011 13:41:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Problem-with-interrupts-in-MPC5643L-Leopard/m-p/201953#M2038</guid>
      <dc:creator>fraqui</dc:creator>
      <dc:date>2011-04-29T13:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with interrupts in MPC5643L (Leopard)</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Problem-with-interrupts-in-MPC5643L-Leopard/m-p/201954#M2039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the same problem like fraqui!&lt;/P&gt;&lt;P&gt;I try to generate interrupt from the PIT, channel 0. I use INTC_InstallINTCInterruptHandler(compteurISR,59,1); where compteurISR is my subroutine. The subroutine is never executed but why? I set the bit that enables interrupts from PIT, and when the counter has finished, the bit PIT.CH[0].TFLG.B.TIF is correctly set.&lt;/P&gt;&lt;P&gt;I also add the function enableIrq that sometimes causes a reset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void enableIrq(void) {&lt;BR /&gt;&amp;nbsp;INTC.CPR_PRC0.B.PRI = 0;/* Lower INTC PRC0's current priority */&lt;BR /&gt;&amp;nbsp; asm(" wrteei 1");&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* and make sure external interrupts are enabled */&amp;nbsp;&amp;nbsp;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void Setup_Timer()&lt;BR /&gt;{&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;PIT.PITMCR.R &amp;amp;=0xFFFFFFFC; //periph actif&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PIT.CH[0].LDVAL.B.TSV=0x005AF07F;//load value&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PIT.TCTRL0.B.TIE=1;//enable interrupt&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;int main(void) {&lt;BR /&gt;&amp;nbsp; volatile int i = 0;&lt;BR /&gt;&amp;nbsp; int debut=1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; InitHW();&lt;/P&gt;&lt;P&gt;&amp;nbsp; Setup_Timer();&lt;BR /&gt;&amp;nbsp; INTC_InstallINTCInterruptHandler(compteurISR,59,1);&lt;BR /&gt;&amp;nbsp; enableIrq();&lt;BR /&gt;&amp;nbsp; PIT.TCTRL0.B.TEN=1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 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; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i++;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void compteurISR(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//INTC.SSCIR[4].R = 2;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;SIU.GPDO52.B.PDO=~SIU.GPDO52.B.PDO;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;PIT.CH[0].TFLG.B.TIF=1;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 20:28:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Problem-with-interrupts-in-MPC5643L-Leopard/m-p/201954#M2039</guid>
      <dc:creator>Tatay</dc:creator>
      <dc:date>2011-06-08T20:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with interrupts in MPC5643L (Leopard)</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Problem-with-interrupts-in-MPC5643L-Leopard/m-p/201955#M2040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you tell us which version of CW are you using?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2011 20:24:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Problem-with-interrupts-in-MPC5643L-Leopard/m-p/201955#M2040</guid>
      <dc:creator>gernot</dc:creator>
      <dc:date>2011-06-13T20:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with interrupts in MPC5643L (Leopard)</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Problem-with-interrupts-in-MPC5643L-Leopard/m-p/201956#M2041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi fraqui and Tatay,&lt;/P&gt;&lt;P&gt;If you could post or send me the complete project I would try to debug it and see what happens. Which CW version and which HW board are you using?&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 15:10:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Problem-with-interrupts-in-MPC5643L-Leopard/m-p/201956#M2041</guid>
      <dc:creator>almarto</dc:creator>
      <dc:date>2011-06-17T15:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with interrupts in MPC5643L (Leopard)</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Problem-with-interrupts-in-MPC5643L-Leopard/m-p/201957#M2042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my problem is solved! i use CW 2.7, the problem went from a wrong initialization of IVOR table. it is a bug in CW 2.7 for MPC5643L.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2011 16:54:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Problem-with-interrupts-in-MPC5643L-Leopard/m-p/201957#M2042</guid>
      <dc:creator>Tatay</dc:creator>
      <dc:date>2011-06-21T16:54:49Z</dc:date>
    </item>
  </channel>
</rss>

