<?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>LPC MicrocontrollersのトピックRe: RS-485 Master slave communication</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/RS-485-Master-slave-communication/m-p/811408#M32549</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's a keil project file. It may not  work with IAR Work bench, better you&lt;/P&gt;&lt;P&gt;create new project in IAR and add those file into your IAR project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Fri, Mar 1, 2019, 9:44 PM shruti.patel@in.atlascopco.com &amp;lt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Mar 2019 12:40:33 GMT</pubDate>
    <dc:creator>mohammadfaizan</dc:creator>
    <dc:date>2019-03-04T12:40:33Z</dc:date>
    <item>
      <title>RS-485 Master slave communication</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RS-485-Master-slave-communication/m-p/811398#M32539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a custom board design by using a LPC2388. I have tested it with simple UART code, it's&amp;nbsp; transmitting and receiving data properly. Now I am looking forward to implement a master slave communication, One master and multiple slave(24), but some restriction, as shown in attach image uart.png.&amp;nbsp; I need some guidance were to start, how to add our own protocol. It will be more helpful, if I get some library or demo code for rs485 master slave communication(LPC2388).&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;Mohammad Faizan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2018 10:13:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RS-485-Master-slave-communication/m-p/811398#M32539</guid>
      <dc:creator>mohammadfaizan</dc:creator>
      <dc:date>2018-07-13T10:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: RS-485 Master slave communication</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RS-485-Master-slave-communication/m-p/811399#M32540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The tricky part of RS-485 is knowing when all the data is transmitted out completely so you can turn off the transmitter and turn on the receiver. I'm not familiar with that chip, but some LPC's have TX IDLE bit (with IRQ) and others have a TX complete bit that gets set when the buffer is empty, but it's still transmitting. The latter requires a delay of one byte time before turning off the transmitter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you might want to consider using nine bit data, and setting the ninth bit on he first byte and using an address for that data byte.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2018 17:57:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RS-485-Master-slave-communication/m-p/811399#M32540</guid>
      <dc:creator>chrispflieger</dc:creator>
      <dc:date>2018-07-13T17:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: RS-485 Master slave communication</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RS-485-Master-slave-communication/m-p/811400#M32541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Chris,&lt;/P&gt;&lt;P&gt;Now code which I had tested is simple UART, no addressing,&amp;nbsp; simply sending and receiving a data to and from hyper-terminal. I have to implement it as a half duplex, master will receive only an acknowledgement from slaves, whether the data is received or not.&amp;nbsp; I don't now how to manage all UART at the same time,&amp;nbsp; 24 slaves and their addressing by a protocol.&lt;/P&gt;&lt;P&gt;It might be more helpful if you share any demo code library for LPC23xx.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;thanks &amp;amp; regards&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Mohammad Faizan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jul 2018 05:27:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RS-485-Master-slave-communication/m-p/811400#M32541</guid>
      <dc:creator>mohammadfaizan</dc:creator>
      <dc:date>2018-07-14T05:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: RS-485 Master slave communication</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RS-485-Master-slave-communication/m-p/811401#M32542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't have any demo code, but pretty much any RS-485 communications is going to be the same no matter what processor.&lt;/P&gt;&lt;P&gt;Typically, you enable the transmitter and disable the receiver (you can physically tie those lines together) when transmitting, then quickly turn off the transmitter and enable the receiver to hear the response.&lt;/P&gt;&lt;P&gt;That MCU has an older UART design and I don't have code for those. I do remember it's tricky to figure out when the UART is done transmitting.&lt;/P&gt;&lt;P&gt;Write a module to get it working with one UART, then just create duplicates for each of the UARTs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 14:27:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RS-485-Master-slave-communication/m-p/811401#M32542</guid>
      <dc:creator>chrispflieger</dc:creator>
      <dc:date>2018-07-16T14:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: RS-485 Master slave communication</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RS-485-Master-slave-communication/m-p/811402#M32543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Chris,&lt;/P&gt;&lt;P&gt;ok, I will try to&amp;nbsp; create a 6 slave first, if it works fine, then I will make a duplicate of the working one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;warm regards&lt;/P&gt;&lt;P&gt;Mohammad Faizan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 04:47:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RS-485-Master-slave-communication/m-p/811402#M32543</guid>
      <dc:creator>mohammadfaizan</dc:creator>
      <dc:date>2018-07-17T04:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: RS-485 Master slave communication</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RS-485-Master-slave-communication/m-p/811403#M32544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mohamamd Faizan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try with the code for RS485 slave implementation on LPC controller? CAn you please share the same?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to impleement RS485 slave behavior for lpc1857 controller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Shruti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2019 08:33:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RS-485-Master-slave-communication/m-p/811403#M32544</guid>
      <dc:creator>shruti_patel</dc:creator>
      <dc:date>2019-02-26T08:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: RS-485 Master slave communication</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RS-485-Master-slave-communication/m-p/811404#M32545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shruti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; RS485 interfacing is just a hardware medium where you can connect a&lt;/P&gt;&lt;P&gt;multiple slaves,  along with you need to define a communication protocol in&lt;/P&gt;&lt;P&gt;your source, Master and slave arrangement,  where master initiates the&lt;/P&gt;&lt;P&gt;communication. If you have more than one slave on your physical end, you&lt;/P&gt;&lt;P&gt;must assign them a unique address . In my case, I had used the DIP switch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You refer lpc407x_8x_177x_8x -  Uart_Rs485Slave example it will help you a&lt;/P&gt;&lt;P&gt;lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Tue, Feb 26, 2019 at 2:18 PM shruti.patel@in.atlascopco.com &amp;lt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2019 07:01:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RS-485-Master-slave-communication/m-p/811404#M32545</guid>
      <dc:creator>mohammadfaizan</dc:creator>
      <dc:date>2019-02-28T07:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: RS-485 Master slave communication</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RS-485-Master-slave-communication/m-p/811405#M32546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Mahammad Faizan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please share a link for the mentions "&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;lpc407x_8x_177x_8x -&amp;nbsp; Uart_Rs485Slave example&lt;/SPAN&gt;" ?&lt;/P&gt;&lt;P&gt;It would be helpful....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I have code for lpc1857 master but I want to create a slave on lpc1857 controller which would get the master command from Arduino board. Is there any specific key points which I can refer to change the master implementation in to slave?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Shruti P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2019 08:07:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RS-485-Master-slave-communication/m-p/811405#M32546</guid>
      <dc:creator>shruti_patel</dc:creator>
      <dc:date>2019-02-28T08:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: RS-485 Master slave communication</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RS-485-Master-slave-communication/m-p/811406#M32547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shruti,&lt;/P&gt;&lt;P&gt;In master/slave implementation,  master initiate the communication by&lt;/P&gt;&lt;P&gt;sending the address of slave, (in case if you have a multiple channel and&lt;/P&gt;&lt;P&gt;multiple slaves on each channel)&lt;/P&gt;&lt;P&gt;                              if((ADDRESS &amp;gt;= 01)&amp;amp;&amp;amp;(ADDRESS &amp;lt;= 06))&lt;/P&gt;&lt;P&gt;                                       {&lt;/P&gt;&lt;P&gt;          UART0Tx(ADDRESS);&lt;/P&gt;&lt;P&gt;       }&lt;/P&gt;&lt;P&gt;           else if//  to second channel&lt;/P&gt;&lt;P&gt;This  is for master, after that master will transmit the actual data&lt;/P&gt;&lt;P&gt;frame,&lt;/P&gt;&lt;P&gt;Then you need to implement the function Rx at the slave side, all slave&lt;/P&gt;&lt;P&gt;received the address and then data frame but only slave having that address&lt;/P&gt;&lt;P&gt;will respond to a  data frame.&lt;/P&gt;&lt;P&gt;Assign a unique address&lt;/P&gt;&lt;P&gt;#define slave_addr  xx in your slave code or you can use a DIP Switch.&lt;/P&gt;&lt;P&gt;Refer the UARTRS485Slave example.&lt;/P&gt;&lt;P&gt;Refer this link for the master code,&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Protoneer/RS485-Arduino-Library/blob/master/RS485.cpp" target="test_blank"&gt;https://github.com/Protoneer/RS485-Arduino-Library/blob/master/RS485.cpp&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Thu, Feb 28, 2019 at 9:06 PM shruti.patel@in.atlascopco.com &amp;lt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2019 12:14:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RS-485-Master-slave-communication/m-p/811406#M32547</guid>
      <dc:creator>mohammadfaizan</dc:creator>
      <dc:date>2019-03-01T12:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: RS-485 Master slave communication</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RS-485-Master-slave-communication/m-p/811407#M32548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Mohammad Faizan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I open the IAR code attached in .rar file i am getting few errors and not able to run the code. Please find attached image for reference and kindly guide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks with Regards,&lt;/P&gt;&lt;P&gt;Shruti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2019 14:08:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RS-485-Master-slave-communication/m-p/811407#M32548</guid>
      <dc:creator>shruti_patel</dc:creator>
      <dc:date>2019-03-01T14:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: RS-485 Master slave communication</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RS-485-Master-slave-communication/m-p/811408#M32549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's a keil project file. It may not  work with IAR Work bench, better you&lt;/P&gt;&lt;P&gt;create new project in IAR and add those file into your IAR project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Fri, Mar 1, 2019, 9:44 PM shruti.patel@in.atlascopco.com &amp;lt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2019 12:40:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RS-485-Master-slave-communication/m-p/811408#M32549</guid>
      <dc:creator>mohammadfaizan</dc:creator>
      <dc:date>2019-03-04T12:40:33Z</dc:date>
    </item>
  </channel>
</rss>

