<?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 LPC1769 as RS485 slave device in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-as-RS485-slave-device/m-p/619828#M24258</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am trying to use LPC1769&amp;nbsp;as RS485 slave device. And LPC11C14 used as master device.&lt;/P&gt;&lt;P&gt;Attached are master and slave program files.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I enabble RECEIVER_ALWAYS_EN = 1 in slave then I am able to recive data on slave from the master.&lt;/P&gt;&lt;P&gt;But when I enable AUTO_SLVADDR_DETECT=1 in slave, I am not geting any data from master to slave.&lt;/P&gt;&lt;P&gt;What clould be wrong in attached master slave programs?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;KBalar&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338050"&gt;master.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338050"&gt;slave.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 26 Mar 2017 10:26:21 GMT</pubDate>
    <dc:creator>kalpeshbalar</dc:creator>
    <dc:date>2017-03-26T10:26:21Z</dc:date>
    <item>
      <title>LPC1769 as RS485 slave device</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-as-RS485-slave-device/m-p/619828#M24258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am trying to use LPC1769&amp;nbsp;as RS485 slave device. And LPC11C14 used as master device.&lt;/P&gt;&lt;P&gt;Attached are master and slave program files.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I enabble RECEIVER_ALWAYS_EN = 1 in slave then I am able to recive data on slave from the master.&lt;/P&gt;&lt;P&gt;But when I enable AUTO_SLVADDR_DETECT=1 in slave, I am not geting any data from master to slave.&lt;/P&gt;&lt;P&gt;What clould be wrong in attached master slave programs?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;KBalar&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338050"&gt;master.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338050"&gt;slave.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Mar 2017 10:26:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-as-RS485-slave-device/m-p/619828#M24258</guid>
      <dc:creator>kalpeshbalar</dc:creator>
      <dc:date>2017-03-26T10:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1769 as RS485 slave device</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-as-RS485-slave-device/m-p/619829#M24259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi KBalar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When in Auto Address Detection (AAD) mode the receiver will compare any address byte received (parity = ‘1’) to the 8-bit value programmed into the RS485ADRMATCH register so please make sure the UART master transmitter is correctly identifying the address character by setting the parity (9th) bit to ‘1’ and that the parity bit is set to ‘0’ for data characters.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Carlos Mendoza&lt;BR /&gt;Technical Support Engineer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Apr 2017 21:20:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-as-RS485-slave-device/m-p/619829#M24259</guid>
      <dc:creator>Carlos_Mendoza</dc:creator>
      <dc:date>2017-04-03T21:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1769 as RS485 slave device</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-as-RS485-slave-device/m-p/619830#M24260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The master is already setting parity to 1 while sending the address. Please refer below code to send address from master. (Please refer attached code in main post.)&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;uint8_t tmp, save;&lt;/P&gt;&lt;P&gt;save = tmp = LPC_USART-&amp;gt;LCR &amp;amp; UART_LCR_BITMASK;&lt;BR /&gt; tmp &amp;amp;= ~(UART_LCR_PARITY_EVEN);&lt;BR /&gt; LPC_USART-&amp;gt;LCR = tmp;&lt;/P&gt;&lt;P&gt;if (addr_toggle){&lt;BR /&gt; Chip_UART_SendBlocking(LPC_USART, (void*)SLAVE_ADDR_A, 1);&lt;BR /&gt; } else {&lt;BR /&gt; Chip_UART_SendBlocking(LPC_USART, (void*)SLAVE_ADDR_B, 1);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;while (!(LPC_USART-&amp;gt;LSR &amp;amp; UART_LSR_TEMT));&lt;BR /&gt; LPC_USART-&amp;gt;LCR = save;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;What could be the problem?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;KBalar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Apr 2017 07:28:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-as-RS485-slave-device/m-p/619830#M24260</guid>
      <dc:creator>kalpeshbalar</dc:creator>
      <dc:date>2017-04-22T07:28:32Z</dc:date>
    </item>
  </channel>
</rss>

