<?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 Driver with Interrupt in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-Driver-with-Interrupt/m-p/237078#M5535</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chatre,&lt;/P&gt;&lt;P&gt;UART receiver and transmitter are set &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;able should after other&amp;nbsp; registers had been configurated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;So you have a try to move the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11px;"&gt;UART2-&amp;gt;C2 = (UART_C2_RE_MASK | UART_C2_TE_MASK);&lt;/SPAN&gt; to the last of&amp;nbsp; initialize code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Sep 2013 02:18:38 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2013-09-18T02:18:38Z</dc:date>
    <item>
      <title>UART Driver with Interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-Driver-with-Interrupt/m-p/237077#M5534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've written a UART driver for Kinetis K70 with the Interrupt functionality. So far I'm able to Transmitte the data in polling mode and Recieve data interrupt mode.&lt;/P&gt;&lt;P&gt;Currently the problem I'm facing is that on every transmission and recieption of first byte is Garbage data.&lt;/P&gt;&lt;P&gt;My current settings are,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;SIM-&amp;gt;SCGC4 |= SIM_SCGC4_UART2_MASK; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;SIM-&amp;gt;SCGC5 |= SIM_SCGC5_PORTD_MASK;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;PORTD-&amp;gt;PCR[17] = (3UL &amp;lt;&amp;lt;&amp;nbsp; 8);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;PORTD-&amp;gt;PCR[16] = (3UL &amp;lt;&amp;lt;&amp;nbsp; 8);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;UART2-&amp;gt;S1 = 0x00;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;setBaudrate(9600);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;UART2-&amp;gt;C2 = (UART_C2_RE_MASK | UART_C2_TE_MASK);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;UART2-&amp;gt;S2 = 0x00;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;UART2-&amp;gt;C3 = 0x00;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;UART2-&amp;gt;RWFIFO = UART_RWFIFO_RXWATER(1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;UART2-&amp;gt;TWFIFO = UART_TWFIFO_TXWATER(0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;UART2-&amp;gt;C2 |= UART_C2_RIE_MASK;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;/* Enable UART0 Rx Tx&amp;nbsp; Interrupt in NVIC*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;Enable_IRQ(IRQ_UART2_RX_TX);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;/* Enable UART0 Error&amp;nbsp; in NVIC*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;SET_PRIORITY(IRQ_UART2_RX_TX, 240);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please correct me if I'm going somewhere wrong,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible please provide the driver code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2013 09:51:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-Driver-with-Interrupt/m-p/237077#M5534</guid>
      <dc:creator>aseem</dc:creator>
      <dc:date>2013-09-17T09:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: UART Driver with Interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-Driver-with-Interrupt/m-p/237078#M5535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chatre,&lt;/P&gt;&lt;P&gt;UART receiver and transmitter are set &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;able should after other&amp;nbsp; registers had been configurated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;So you have a try to move the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11px;"&gt;UART2-&amp;gt;C2 = (UART_C2_RE_MASK | UART_C2_TE_MASK);&lt;/SPAN&gt; to the last of&amp;nbsp; initialize code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 02:18:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-Driver-with-Interrupt/m-p/237078#M5535</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2013-09-18T02:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: UART Driver with Interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-Driver-with-Interrupt/m-p/237079#M5536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I write a sample code with PE in CodeWarrior10.5 according to Component Serial_LDD Typical Usage&lt;EM&gt;&lt;STRONG&gt; "&lt;/STRONG&gt;Block reception/transmission, with interrupt service &lt;/EM&gt;".&lt;/P&gt;&lt;P&gt;I use the TWR-K70F120M board , uart2 TxDpin=PTE16&amp;nbsp; RxDpin=PTE17,Baud rate=38400.&lt;/P&gt;&lt;P&gt;Every time you send a 'e' to RxDpin,the TxDpin will send out 'Hello world' and toggle Green LED(PTA29).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it help&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/40847i037E4DF7644ADD79/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/40848iE86458434A308159/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.jpg" alt="2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2013 08:43:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART-Driver-with-Interrupt/m-p/237079#M5536</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2013-09-26T08:43:58Z</dc:date>
    </item>
  </channel>
</rss>

