<?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 TX Complete Interrupt in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART-TX-Complete-Interrupt/m-p/413239#M1922</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alessandro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use this code to enable the TC interrupt :&lt;/P&gt;&lt;P&gt;UART_BWR_C2_TCIE(UART1, 1u);&lt;/P&gt;&lt;P&gt;It is defined in the file of :MK22F51212_extension.h&amp;nbsp; (KSDK_1.3.0\platform\devices\MK22F51212\include)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/32652i0E7566C44113EAC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&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;P&gt;Have a great day,&lt;BR /&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Nov 2015 08:56:20 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2015-11-17T08:56:20Z</dc:date>
    <item>
      <title>UART TX Complete Interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART-TX-Complete-Interrupt/m-p/413238#M1921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am developing my application with KDS 3.0.0 + KSDK 1.3.0 + PEx + MQX_Standard on my K66 custom board.&lt;/P&gt;&lt;P&gt;I have to drive an UART in interrupt mode, so I use the fsl_uart PEx component, which relays on fsl_uart_driver and fsl_uart-hal KSDK modules.&lt;/P&gt;&lt;P&gt;With that component I can start receiving and/or transmitting in interrupt mode through the UART_DRV_ReceiveDATA() and UART_DRV_SendData() functions. I can install RX and TX call-back functions, which are called from the UART interrupt handler upon every character reception and transmission events.&lt;/P&gt;&lt;P&gt;Unfortunately, the TX call-back function is called only upon a TX Data Register Empty (TDRE) event. Instead, in may application I need to catch also the Transmission Complete (TC) event: how can I get that functionality with KSDK?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, the &lt;A _jive_internal="true" data-containerid="2022" data-containertype="14" data-objectid="344047" data-objecttype="1" href="https://community.nxp.com/thread/344047"&gt;How To RS485 with KSDK component fsl_uart&lt;/A&gt; discussion does not help me.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should I use the UART_HAL_SetIntMode() function to enable the TC event (TCIE) as interrupt source? And how?&lt;/P&gt;&lt;P&gt;Even if TC event were enabled as interrupt source, should I manually add the TC event handler into the UART interrupt handler generated by PEx and define and use a new TC call-back function of my own?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 15:52:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART-TX-Complete-Interrupt/m-p/413238#M1921</guid>
      <dc:creator>Vagni</dc:creator>
      <dc:date>2015-11-16T15:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: UART TX Complete Interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART-TX-Complete-Interrupt/m-p/413239#M1922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alessandro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use this code to enable the TC interrupt :&lt;/P&gt;&lt;P&gt;UART_BWR_C2_TCIE(UART1, 1u);&lt;/P&gt;&lt;P&gt;It is defined in the file of :MK22F51212_extension.h&amp;nbsp; (KSDK_1.3.0\platform\devices\MK22F51212\include)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/32652i0E7566C44113EAC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&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;P&gt;Have a great day,&lt;BR /&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 08:56:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART-TX-Complete-Interrupt/m-p/413239#M1922</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-11-17T08:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: UART TX Complete Interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART-TX-Complete-Interrupt/m-p/413240#M1923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Alice.&lt;/P&gt;&lt;P&gt;Now I know how to enable the TC interrupt.&lt;/P&gt;&lt;P&gt;Should I enable it in UART_DRV_CompleteSendData() function after the last transmitted character?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what about handling the TC interrupt? Should I manually modify the UART_DRV_IRQHandler() function and add my TCcallback() function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 09:15:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART-TX-Complete-Interrupt/m-p/413240#M1923</guid>
      <dc:creator>Vagni</dc:creator>
      <dc:date>2015-11-17T09:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: UART TX Complete Interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART-TX-Complete-Interrupt/m-p/413241#M1924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alessandro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- I think you can enable the TC interrupt on the UART of initialization code .&lt;/P&gt;&lt;P&gt;- Yes , you need install&amp;nbsp; the TCcallback() function by yourself&amp;nbsp; , you can refer to the "UART_DRV_InstallTxCallback" function .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 10:18:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART-TX-Complete-Interrupt/m-p/413241#M1924</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-11-17T10:18:34Z</dc:date>
    </item>
  </channel>
</rss>

