<?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: RS485 support in P2040 in P-Series</title>
    <link>https://community.nxp.com/t5/P-Series/RS485-support-in-P2040/m-p/768898#M4443</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be my question is wrong. Let me rephrase it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In our board we have MAX 485 IC to convert TTL to RS485 signal level. However that IC to be controlled for transmission ( using RTS/GPIO).&amp;nbsp; ie, IC to be made in transmitting mode by toggling GPIO high and switch back to receive mode by toggling GPIO low from P2040&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My solution to this case is&amp;nbsp;&lt;/P&gt;&lt;P&gt;a) Make GPIO high in&amp;nbsp;serial8250_start_tx&lt;/P&gt;&lt;P&gt;b) Make GPIO low in&amp;nbsp;fsl8250_handle_irq when the transmitter holding register is empty.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whether this will work ? Or any better way to achieve this functionality ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Krishnaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Apr 2018 10:21:18 GMT</pubDate>
    <dc:creator>krishnaraj_d</dc:creator>
    <dc:date>2018-04-09T10:21:18Z</dc:date>
    <item>
      <title>RS485 support in P2040</title>
      <link>https://community.nxp.com/t5/P-Series/RS485-support-in-P2040/m-p/768896#M4441</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;I am using P2040 for serial communication with other devices. SDK Version is 2.0.0 and Linux 4.1.8. 8250 Driver in Linux is enabled for achieving serial communication.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are looking to support RS485 with P2040 board. When I searched in net, I found that RS485 support can be enabled by setting values in device tree. But the linux driver code of 8250 does not seems to be taking dtb values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I enable RS485 support for P2040. Any help will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Krishnaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 10:02:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/RS485-support-in-P2040/m-p/768896#M4441</guid>
      <dc:creator>krishnaraj_d</dc:creator>
      <dc:date>2018-04-05T10:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: RS485 support in P2040</title>
      <link>https://community.nxp.com/t5/P-Series/RS485-support-in-P2040/m-p/768897#M4442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;RS-485 is electrical standard - it defines only physical level (electrical characteristics of driver and receiver).&lt;/P&gt;&lt;P&gt;It does not define data format, transmission speeds and etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://en.wikipedia.org/wiki/RS-485"&gt;https://en.wikipedia.org/wiki/RS-485&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no specific RS-485 related support in P2040 processor, from the hardware point of view P2040 supports only general UART (DUART). Driver "8250" is UART driver.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; Have a great day,&lt;BR /&gt; Alexander&lt;BR /&gt; TIC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2018 11:03:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/RS485-support-in-P2040/m-p/768897#M4442</guid>
      <dc:creator>alexander_yakov</dc:creator>
      <dc:date>2018-04-06T11:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: RS485 support in P2040</title>
      <link>https://community.nxp.com/t5/P-Series/RS485-support-in-P2040/m-p/768898#M4443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be my question is wrong. Let me rephrase it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In our board we have MAX 485 IC to convert TTL to RS485 signal level. However that IC to be controlled for transmission ( using RTS/GPIO).&amp;nbsp; ie, IC to be made in transmitting mode by toggling GPIO high and switch back to receive mode by toggling GPIO low from P2040&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My solution to this case is&amp;nbsp;&lt;/P&gt;&lt;P&gt;a) Make GPIO high in&amp;nbsp;serial8250_start_tx&lt;/P&gt;&lt;P&gt;b) Make GPIO low in&amp;nbsp;fsl8250_handle_irq when the transmitter holding register is empty.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whether this will work ? Or any better way to achieve this functionality ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Krishnaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2018 10:21:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/RS485-support-in-P2040/m-p/768898#M4443</guid>
      <dc:creator>krishnaraj_d</dc:creator>
      <dc:date>2018-04-09T10:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: RS485 support in P2040</title>
      <link>https://community.nxp.com/t5/P-Series/RS485-support-in-P2040/m-p/768899#M4444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, this is the usual way to control the direction of MAX485. There is no better way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2018 06:47:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/RS485-support-in-P2040/m-p/768899#M4444</guid>
      <dc:creator>alexander_yakov</dc:creator>
      <dc:date>2018-04-10T06:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: RS485 support in P2040</title>
      <link>https://community.nxp.com/t5/P-Series/RS485-support-in-P2040/m-p/768900#M4445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems i can not really depend on THRE interrupt for ensuring the complete transmission of packet. It might be still there in the FIFO register. There is not interrupt available to know that transmitter is empty (TEMT). Could you propose a way to overcome this problem. I don't see any example also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Krishnaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2018 07:55:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/RS485-support-in-P2040/m-p/768900#M4445</guid>
      <dc:creator>krishnaraj_d</dc:creator>
      <dc:date>2018-04-11T07:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: RS485 support in P2040</title>
      <link>https://community.nxp.com/t5/P-Series/RS485-support-in-P2040/m-p/768901#M4446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to the description of THRE bit is ULSR register in P2040 Reference Manual, in FIFO mode this bit is set, when the transmitter FIFO contains no data character.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2018 16:13:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/RS485-support-in-P2040/m-p/768901#M4446</guid>
      <dc:creator>alexander_yakov</dc:creator>
      <dc:date>2018-04-11T16:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: RS485 support in P2040</title>
      <link>https://community.nxp.com/t5/P-Series/RS485-support-in-P2040/m-p/768902#M4447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But there is no interrupt for FIFO Empty. Are you suggesting to poll the LSR continuously ? Whether that is a CPU wastage ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 12:16:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/RS485-support-in-P2040/m-p/768902#M4447</guid>
      <dc:creator>krishnaraj_d</dc:creator>
      <dc:date>2018-04-12T12:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: RS485 support in P2040</title>
      <link>https://community.nxp.com/t5/P-Series/RS485-support-in-P2040/m-p/768903#M4448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I'm not suggesting polling, I suggest using interrupt from ULSR[THRE] bit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2018 07:10:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/RS485-support-in-P2040/m-p/768903#M4448</guid>
      <dc:creator>alexander_yakov</dc:creator>
      <dc:date>2018-05-03T07:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: RS485 support in P2040</title>
      <link>https://community.nxp.com/t5/P-Series/RS485-support-in-P2040/m-p/768904#M4449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THRE interrupt indicates that the transmitter FIFO does not contain any character. However data might be still there in the internal shift register. If I toggle the 485 transceiver based on this interrupt, some characters might not be send. For that I need to rely on ULSR[TEMT]. Unfortunately there is no interrupt available for that status.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2018 14:22:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/RS485-support-in-P2040/m-p/768904#M4449</guid>
      <dc:creator>krishnaraj_d</dc:creator>
      <dc:date>2018-05-30T14:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: RS485 support in P2040</title>
      <link>https://community.nxp.com/t5/P-Series/RS485-support-in-P2040/m-p/768905#M4450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, your understanding is correct - there is no interrupt available for that status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use interrupt from THRE and wait for 1 byte transmission time before disabling transceiver. As long as transmission speed is shown, this time can be easily calculated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 13:34:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/RS485-support-in-P2040/m-p/768905#M4450</guid>
      <dc:creator>alexander_yakov</dc:creator>
      <dc:date>2018-06-01T13:34:37Z</dc:date>
    </item>
  </channel>
</rss>

