<?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: UART in interrupt mode in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/UART-in-interrupt-mode/m-p/169089#M1780</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I've found the solve to this problem reading this thread&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="64147" class="jive_macro jive_macro_thread default_title" href="https://community.freescale.com/thread/64147" jivemacro="thread" title="https://community.freescale.com/thread/64147"&gt;https://community.freescale.com/thread/64147&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried with this code to aim towards UART2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MCF52XX_UART_STRUCT_PTR vuart;&lt;/P&gt;&lt;P&gt;vuart = (MCF52XX_UART_STRUCT_PTR)(&amp;amp;((VMCF5225_STRUCT_PTR)_PSP_GET_IPSBAR())-&amp;gt;UART[2]);&lt;/P&gt;&lt;P&gt;UART_USR = vuart-&amp;gt;READ.USR;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks anyway:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;M@tt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Dec 2010 02:24:12 GMT</pubDate>
    <dc:creator>M_ttferrari</dc:creator>
    <dc:date>2010-12-14T02:24:12Z</dc:date>
    <item>
      <title>UART in interrupt mode</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/UART-in-interrupt-mode/m-p/169088#M1779</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;My problem is when isrUART2 runs because I can't read the data received. I don't know how I read URB2 register (data is correctly stored into URB2).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I show step by step my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;fh_ptr = fopen("ittyc:", (pointer)(IO_SERIAL_XON_OFF | IO_SERIAL_TRANSLATION);&lt;/P&gt;&lt;P&gt;_int_install_isr(BSP_UART2_INT_VECTOR, uart_isr, fh_ptr);&lt;/P&gt;&lt;P&gt;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;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then my isr function is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void uart_isr((pointer user_isr_ptr){&lt;/P&gt;&lt;P&gt;&lt;SPAN style="white-space: pre;"&gt;&lt;/SPAN&gt;MQX_FILE_PTR fd;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="white-space: pre;"&gt;&lt;/SPAN&gt;fd = (MQX_FILE_PTR)user_isr_ptr;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="white-space: pre;"&gt;&lt;/SPAN&gt;read(fd,&amp;amp;buffer[0],1);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;read function never returns because into fd there isn't any data to read. But, as I mention before, into URB2 register the data that I sent is correctly stored.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Obviously, the pointer to file that I'm passing to uart_isr don't aim to the registers of UART2. How do I have to pass this pointer?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&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 Dec 2010 21:18:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/UART-in-interrupt-mode/m-p/169088#M1779</guid>
      <dc:creator>M_ttferrari</dc:creator>
      <dc:date>2010-12-13T21:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: UART in interrupt mode</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/UART-in-interrupt-mode/m-p/169089#M1780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I've found the solve to this problem reading this thread&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="64147" class="jive_macro jive_macro_thread default_title" href="https://community.freescale.com/thread/64147" jivemacro="thread" title="https://community.freescale.com/thread/64147"&gt;https://community.freescale.com/thread/64147&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried with this code to aim towards UART2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MCF52XX_UART_STRUCT_PTR vuart;&lt;/P&gt;&lt;P&gt;vuart = (MCF52XX_UART_STRUCT_PTR)(&amp;amp;((VMCF5225_STRUCT_PTR)_PSP_GET_IPSBAR())-&amp;gt;UART[2]);&lt;/P&gt;&lt;P&gt;UART_USR = vuart-&amp;gt;READ.USR;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks anyway:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;M@tt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 02:24:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/UART-in-interrupt-mode/m-p/169089#M1780</guid>
      <dc:creator>M_ttferrari</dc:creator>
      <dc:date>2010-12-14T02:24:12Z</dc:date>
    </item>
  </channel>
</rss>

