<?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>i.MX ProcessorsのトピックRe: imx6ULL RTS signal</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx6ULL-RTS-signal/m-p/843861#M129378</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="329085" data-username="roshandsouza" href="https://community.nxp.com/people/roshandsouza"&gt;Roshan&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; In DCE mode, UART_CTS is used to control data IO directions, you multiplexed RTS to be &amp;nbsp; GPIO and used it to control TX/RX , exactly, which will cause data to be lost. Because you don't know when TX / RX is done. RS485 is &lt;SPAN&gt;half-duplex&lt;/SPAN&gt; communication.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For RS485 design, I have 3 suggestions for you :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Using UART CTS to control IO direction of data.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This is supported by UART IP, you can find the function in i.MX6UL Reference manula.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. Using Hardware control it, don't need any code in software.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/66792i1F9F946CB7E7C761/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3. Using GPIO to control DE/RE#&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Since you used GPIO to do it, I think you should check the "empty interrupt" of UART TX FIFO , if the interrupt occurs, GPIO should be switched to RECEIVE (maybe pull it down to LOW)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;&lt;P&gt;NXP TIC weidong sun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Oct 2018 05:17:52 GMT</pubDate>
    <dc:creator>weidong_sun</dc:creator>
    <dc:date>2018-10-31T05:17:52Z</dc:date>
    <item>
      <title>imx6ULL RTS signal</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6ULL-RTS-signal/m-p/843860#M129377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Hi All,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;We are using the imx6ULL processor&amp;nbsp;MCIMX6Y2CVM05AA and&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;RS485 transceiver IC&amp;nbsp;ST485BDR in our design.We are facing a similar issue related to RS485 RTS signal as above.We are using the UART port 2 of the processor ( UART2_TX transmit function,UART2_RX for receive function,UART3_RXD pin for TX enable and RX enable&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;of&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;RS485 transceiver).We are using kernel version 4.1.x.x.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;We were able to toggle the RTS line of UART2 by configuring it as a GPIO line but we are missing few bytes and not able to receive the complete data.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;The transit enable from ULL processor is not going low immediately after the transmission is completed( Highlighted in&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #339966; border: 0px; font-weight: inherit; font-size: 14px;"&gt;green&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;in attachment). We are losing few bytes as the delay between the Rx enable and Rx data is very small (Highlighted in&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; border: 0px; font-weight: inherit; font-size: 14px;"&gt;Red&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;in attachment).&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;How to make the RTS signal low immediately after the transmission is over ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2018 05:13:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6ULL-RTS-signal/m-p/843860#M129377</guid>
      <dc:creator>roshandsouza</dc:creator>
      <dc:date>2018-10-29T05:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: imx6ULL RTS signal</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6ULL-RTS-signal/m-p/843861#M129378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="329085" data-username="roshandsouza" href="https://community.nxp.com/people/roshandsouza"&gt;Roshan&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; In DCE mode, UART_CTS is used to control data IO directions, you multiplexed RTS to be &amp;nbsp; GPIO and used it to control TX/RX , exactly, which will cause data to be lost. Because you don't know when TX / RX is done. RS485 is &lt;SPAN&gt;half-duplex&lt;/SPAN&gt; communication.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For RS485 design, I have 3 suggestions for you :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Using UART CTS to control IO direction of data.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This is supported by UART IP, you can find the function in i.MX6UL Reference manula.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. Using Hardware control it, don't need any code in software.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/66792i1F9F946CB7E7C761/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3. Using GPIO to control DE/RE#&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Since you used GPIO to do it, I think you should check the "empty interrupt" of UART TX FIFO , if the interrupt occurs, GPIO should be switched to RECEIVE (maybe pull it down to LOW)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;&lt;P&gt;NXP TIC weidong sun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2018 05:17:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6ULL-RTS-signal/m-p/843861#M129378</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2018-10-31T05:17:52Z</dc:date>
    </item>
  </channel>
</rss>

