<?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 we are using k60fx512. we are using the following intialization steps to enable the uart2 interuppt in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/we-are-using-k60fx512-we-are-using-the-following-intialization/m-p/413646#M23501</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the intialisation steps are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uart_init (UART2_BASE_PTR,120000, 921600); &lt;/P&gt;&lt;P&gt;UART_C2_REG(UART2_BASE_PTR) |= UART_C2_RIE_MASK;&lt;/P&gt;&lt;P&gt; NVICICPR1 |= 1 &amp;lt;&amp;lt; (49%32);&lt;/P&gt;&lt;P&gt;&amp;nbsp; NVICISER1 |= 1 &amp;lt;&amp;lt; (49%32);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then isr for uart2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void UART2_handler(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned char data1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(!(UART_S1_REG(UART2_BASE_PTR) &amp;amp; UART_S1_RDRF_MASK))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; data1=UART_D_REG(UART2_BASE_PTR);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while receiving the data, it is entering inside the ISR. But it is never coming out of the isr.??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Aug 2015 13:03:45 GMT</pubDate>
    <dc:creator>anjum</dc:creator>
    <dc:date>2015-08-05T13:03:45Z</dc:date>
    <item>
      <title>we are using k60fx512. we are using the following intialization steps to enable the uart2 interuppt</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/we-are-using-k60fx512-we-are-using-the-following-intialization/m-p/413646#M23501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the intialisation steps are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uart_init (UART2_BASE_PTR,120000, 921600); &lt;/P&gt;&lt;P&gt;UART_C2_REG(UART2_BASE_PTR) |= UART_C2_RIE_MASK;&lt;/P&gt;&lt;P&gt; NVICICPR1 |= 1 &amp;lt;&amp;lt; (49%32);&lt;/P&gt;&lt;P&gt;&amp;nbsp; NVICISER1 |= 1 &amp;lt;&amp;lt; (49%32);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then isr for uart2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void UART2_handler(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned char data1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(!(UART_S1_REG(UART2_BASE_PTR) &amp;amp; UART_S1_RDRF_MASK))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; data1=UART_D_REG(UART2_BASE_PTR);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while receiving the data, it is entering inside the ISR. But it is never coming out of the isr.??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 13:03:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/we-are-using-k60fx512-we-are-using-the-following-intialization/m-p/413646#M23501</guid>
      <dc:creator>anjum</dc:creator>
      <dc:date>2015-08-05T13:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: we are using k60fx512. we are using the following intialization steps to enable the uart2 interuppt</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/we-are-using-k60fx512-we-are-using-the-following-intialization/m-p/413647#M23502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend to refer thread &lt;A href="https://community.nxp.com/thread/312382"&gt;UART Driver with Interrupt&lt;/A&gt;&amp;nbsp; about UART interrupt application.&lt;/P&gt;&lt;P&gt;For you mentioned, it could not coming out from UART2 ISR routine, it need to check the UART2_S1 register if there with some other flags also be set.&lt;/P&gt;&lt;P&gt;I think you could debug the code and check the UART2_S1 register value.&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 03:07:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/we-are-using-k60fx512-we-are-using-the-following-intialization/m-p/413647#M23502</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2015-08-06T03:07:54Z</dc:date>
    </item>
  </channel>
</rss>

