<?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 How To RS485 with KSDK component fsl_uart in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/How-To-RS485-with-KSDK-component-fsl-uart/m-p/364004#M2796</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all&lt;/P&gt;&lt;P&gt;I'm doing RS-485 on K60 uP for using KSDK 1.1.0 (working on KDS 2.0.0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On K20 without KSDK I use LDD uart component where is present TX-Complete-Callback, so here I can set "Receiving" the direction for RS485 converter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In KSDK I use this component: fsl_uart&lt;/P&gt;&lt;P&gt;Now there is not any callback on TX (from KDSK 1.0.0 to KDSK 1.1.0 were available RX callback, very usefull, but nothing about TX callback).&lt;/P&gt;&lt;P&gt;I try to set the&amp;nbsp; "Install Interrupt" and I see the Interrupt RX and TX but, analyzing inside IRQ, there is only present the call at this HAL:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UART_HAL_IsTxDataRegEmpty&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that tell me when tx data register is empty so we can put another byte in the buffer... but what I need is that hal:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UART_HAL_IsTxComplete(baseAddr))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that tell&amp;nbsp; me WHEN ALL BYTE WERE SEND. this function hal was called only on deinit function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I can't wait (I'm using FreeRTOS) in a loop the return of &lt;SPAN style="font-size: 13.3333330154419px;"&gt;UART_HAL_IsTxComplete set to one... for the same reason I can't do a several of wait of FreeRTOS and check the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;UART_HAL_IsTxComplete (maybe RX started when i'm still waiting... and direction bit is still on tx)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what I need is ( LIKE THE LDD COMPONENT ) a callback for the interrupt of TX-complete.&lt;/P&gt;&lt;P&gt;Or I need the active interrupt (on IRQ internal handler of processor expert) for TX-complete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I can do with processor expert? If is not possible to install this interrupt handler or callback with processor expert, what I can do "manually" ?&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Mar 2015 09:09:09 GMT</pubDate>
    <dc:creator>holyhope</dc:creator>
    <dc:date>2015-03-06T09:09:09Z</dc:date>
    <item>
      <title>How To RS485 with KSDK component fsl_uart</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/How-To-RS485-with-KSDK-component-fsl-uart/m-p/364004#M2796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all&lt;/P&gt;&lt;P&gt;I'm doing RS-485 on K60 uP for using KSDK 1.1.0 (working on KDS 2.0.0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On K20 without KSDK I use LDD uart component where is present TX-Complete-Callback, so here I can set "Receiving" the direction for RS485 converter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In KSDK I use this component: fsl_uart&lt;/P&gt;&lt;P&gt;Now there is not any callback on TX (from KDSK 1.0.0 to KDSK 1.1.0 were available RX callback, very usefull, but nothing about TX callback).&lt;/P&gt;&lt;P&gt;I try to set the&amp;nbsp; "Install Interrupt" and I see the Interrupt RX and TX but, analyzing inside IRQ, there is only present the call at this HAL:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UART_HAL_IsTxDataRegEmpty&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that tell me when tx data register is empty so we can put another byte in the buffer... but what I need is that hal:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UART_HAL_IsTxComplete(baseAddr))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that tell&amp;nbsp; me WHEN ALL BYTE WERE SEND. this function hal was called only on deinit function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I can't wait (I'm using FreeRTOS) in a loop the return of &lt;SPAN style="font-size: 13.3333330154419px;"&gt;UART_HAL_IsTxComplete set to one... for the same reason I can't do a several of wait of FreeRTOS and check the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;UART_HAL_IsTxComplete (maybe RX started when i'm still waiting... and direction bit is still on tx)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what I need is ( LIKE THE LDD COMPONENT ) a callback for the interrupt of TX-complete.&lt;/P&gt;&lt;P&gt;Or I need the active interrupt (on IRQ internal handler of processor expert) for TX-complete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I can do with processor expert? If is not possible to install this interrupt handler or callback with processor expert, what I can do "manually" ?&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 09:09:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/How-To-RS485-with-KSDK-component-fsl-uart/m-p/364004#M2796</guid>
      <dc:creator>holyhope</dc:creator>
      <dc:date>2015-03-06T09:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: How To RS485 with KSDK component fsl_uart</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/How-To-RS485-with-KSDK-component-fsl-uart/m-p/364005#M2797</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;installing tx callback will be supported in fsl_uart, fsl_lpuart, fsl_lpsci componnents from 1.2.0 PEx for Kinetis SDK. This release is scheduled on beginning of Q2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Vojtech Filip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 14:58:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/How-To-RS485-with-KSDK-component-fsl-uart/m-p/364005#M2797</guid>
      <dc:creator>vfilip</dc:creator>
      <dc:date>2015-03-09T14:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: How To RS485 with KSDK component fsl_uart</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/How-To-RS485-with-KSDK-component-fsl-uart/m-p/364006#M2798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect, many thanks.&lt;/P&gt;&lt;P&gt;Support of uP K20 will be in&amp;nbsp; KSDK .release 1.2.0?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2015 10:11:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/How-To-RS485-with-KSDK-component-fsl-uart/m-p/364006#M2798</guid>
      <dc:creator>holyhope</dc:creator>
      <dc:date>2015-03-10T10:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: How To RS485 with KSDK component fsl_uart</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/How-To-RS485-with-KSDK-component-fsl-uart/m-p/364007#M2799</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;yes, this family is part of KSDK 1.2.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Vojtech Filip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 08:25:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/How-To-RS485-with-KSDK-component-fsl-uart/m-p/364007#M2799</guid>
      <dc:creator>vfilip</dc:creator>
      <dc:date>2015-03-11T08:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: How To RS485 with KSDK component fsl_uart</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/How-To-RS485-with-KSDK-component-fsl-uart/m-p/364008#M2800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alternately, if the pin is available, you could use the RTS function for the UART to control the DE line of your RS-485 transceiver.&amp;nbsp; Set bits TXRTSE (assert RTS during transmission) and TXRTSPOL (RTS is active high) in register UARTx_MODEM, and set the appropriate PCS MUX register for the specific GPIO you're using for RTS.&amp;nbsp; That way, you don't have to enable any special software to get RS-485 driver control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, in their infinite wisdom, Freescale removed RTS/CTS support from the UART in the Kinetis L series, so for our KL17 project, we'll likely have to wait for KSDK support for the Tx complete callback.&amp;nbsp; It amazes me it's taking Freescale this long to develop software for their own products.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 18:50:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/How-To-RS485-with-KSDK-component-fsl-uart/m-p/364008#M2800</guid>
      <dc:creator>dmarks_ls</dc:creator>
      <dc:date>2015-04-17T18:50:22Z</dc:date>
    </item>
  </channel>
</rss>

