<?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 LPC1549 UART RS485 Auto Direction control in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1549-UART-RS485-Auto-Direction-control/m-p/514100#M522</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Carl-CircuitWorx on Fri Jun 19 11:25:19 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have set up DMA on UART1 to TX an array and configured RS485 control of the RTS line by setting the bits&amp;nbsp; UART_OETA, UART_OESEL, UART_OEPOL&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It works but I can see the direction line blipping between each byte even with the OETA bit set which should delay a change of the direction line for the width of 1 character.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have attached an screen cap of the trace from a logic analyser, top trace is with out OETA set, bottom is with.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't see any other settings to change, I could use the pin in gpio mode at the start of TX and switch to RTS once the DMA IRQ Fires I suppose.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[img]&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fi.imgur.com%2Fyj0uzCG.png%5B%2Fimg%5D" rel="nofollow" target="_blank"&gt;http://i.imgur.com/yj0uzCG.png[/img]&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:10:32 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:10:32Z</dc:date>
    <item>
      <title>LPC1549 UART RS485 Auto Direction control</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1549-UART-RS485-Auto-Direction-control/m-p/514100#M522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Carl-CircuitWorx on Fri Jun 19 11:25:19 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have set up DMA on UART1 to TX an array and configured RS485 control of the RTS line by setting the bits&amp;nbsp; UART_OETA, UART_OESEL, UART_OEPOL&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It works but I can see the direction line blipping between each byte even with the OETA bit set which should delay a change of the direction line for the width of 1 character.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have attached an screen cap of the trace from a logic analyser, top trace is with out OETA set, bottom is with.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't see any other settings to change, I could use the pin in gpio mode at the start of TX and switch to RTS once the DMA IRQ Fires I suppose.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[img]&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fi.imgur.com%2Fyj0uzCG.png%5B%2Fimg%5D" rel="nofollow" target="_blank"&gt;http://i.imgur.com/yj0uzCG.png[/img]&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:10:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1549-UART-RS485-Auto-Direction-control/m-p/514100#M522</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:10:32Z</dc:date>
    </item>
  </channel>
</rss>

