<?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>MPC5xxxのトピックUART RX Interrupt does not work.</title>
    <link>https://community.nxp.com/t5/MPC5xxx/UART-RX-Interrupt-does-not-work/m-p/771392#M11092</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello. I work with MPC5606B, C, CodeWarrior. matlab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried to receive UART using RX ISR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I add this function in main.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;==========================================================&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;void initUART(void){&lt;/P&gt;&lt;P&gt;LINFLEX_0.UARTCR.B.UART = 1; //enable UART mode&lt;BR /&gt; LINFLEX_0.UARTCR.B.WL1 = 1; //set 8-bit data&lt;BR /&gt; LINFLEX_0.UARTCR.B.RXEN = 1; //enable RX&lt;BR /&gt; LINFLEX_0.LINIER.B.DRIE = 1; //Data Reception Complete Interrupt Enable&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;==========================================================&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this ISR&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==========================================================&lt;/P&gt;&lt;P&gt;void TEST_UART (void)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINFLEX_0.LINSR.R = 0xF23F;&lt;BR /&gt; LINFLEX_0.UARTSR.B.DRF = 1; //Data Reception Completed Flag&lt;/P&gt;&lt;P&gt;a++; // checking for ON/OFF&lt;/P&gt;&lt;P&gt;UartRxFillBuf();&lt;/P&gt;&lt;P&gt;linflex_data=UartRxDataByte();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;==========================================================&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;each time I send TX, the a increases as my purpose, counting. It means, flag is set when the Board complete data reception.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;when I tried to receive RX in main loop, I succeeded. So, There must be no problems in UART configuration.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't find the reason why it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 24 Feb 2018 16:22:56 GMT</pubDate>
    <dc:creator>phpark</dc:creator>
    <dc:date>2018-02-24T16:22:56Z</dc:date>
    <item>
      <title>UART RX Interrupt does not work.</title>
      <link>https://community.nxp.com/t5/MPC5xxx/UART-RX-Interrupt-does-not-work/m-p/771392#M11092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello. I work with MPC5606B, C, CodeWarrior. matlab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried to receive UART using RX ISR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I add this function in main.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;==========================================================&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;void initUART(void){&lt;/P&gt;&lt;P&gt;LINFLEX_0.UARTCR.B.UART = 1; //enable UART mode&lt;BR /&gt; LINFLEX_0.UARTCR.B.WL1 = 1; //set 8-bit data&lt;BR /&gt; LINFLEX_0.UARTCR.B.RXEN = 1; //enable RX&lt;BR /&gt; LINFLEX_0.LINIER.B.DRIE = 1; //Data Reception Complete Interrupt Enable&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;==========================================================&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this ISR&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==========================================================&lt;/P&gt;&lt;P&gt;void TEST_UART (void)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINFLEX_0.LINSR.R = 0xF23F;&lt;BR /&gt; LINFLEX_0.UARTSR.B.DRF = 1; //Data Reception Completed Flag&lt;/P&gt;&lt;P&gt;a++; // checking for ON/OFF&lt;/P&gt;&lt;P&gt;UartRxFillBuf();&lt;/P&gt;&lt;P&gt;linflex_data=UartRxDataByte();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;==========================================================&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;each time I send TX, the a increases as my purpose, counting. It means, flag is set when the Board complete data reception.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;when I tried to receive RX in main loop, I succeeded. So, There must be no problems in UART configuration.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't find the reason why it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Feb 2018 16:22:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/UART-RX-Interrupt-does-not-work/m-p/771392#M11092</guid>
      <dc:creator>phpark</dc:creator>
      <dc:date>2018-02-24T16:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: UART RX Interrupt does not work.</title>
      <link>https://community.nxp.com/t5/MPC5xxx/UART-RX-Interrupt-does-not-work/m-p/771393#M11093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no experience with matlab tool in this area, but in general, please check the following points:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;EE bit in MCR must be set to 1. Please check e200z0 core reference manual&lt;/LI&gt;&lt;LI&gt;Interrupt service routine must be correctly installed in interrupt vector table at correct position (vector 79)&lt;/LI&gt;&lt;LI&gt;In INTC_PSR_79 register, priority must be increased from default 0&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From my point of view, there will be some problem with interrupt settings. Please check the point above and eventually, send me your project in CodeWarrior.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also recommendation for you, do not clear interrupt flags by bit access. Always use register access (.R not .B).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 08:06:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/UART-RX-Interrupt-does-not-work/m-p/771393#M11093</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2018-04-05T08:06:24Z</dc:date>
    </item>
  </channel>
</rss>

