<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>nRF52840 and RS-485 protocol</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60873/nrf52840-and-rs-485-protocol</link><description>Hi everyone, 
 I have some devices that are communicated through RS485. nRF52840 DK supports RS485 communication? 
 Do you have suggestions of how should I connect those devices with nRF52840? 
 Thanks in advance 
 Nick</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 Jul 2022 15:59:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60873/nrf52840-and-rs-485-protocol" /><item><title>RE: nRF52840 and RS-485 protocol</title><link>https://devzone.nordicsemi.com/thread/377239?ContentTypeID=1</link><pubDate>Fri, 15 Jul 2022 15:59:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbb29217-4774-4393-96a3-8e536f98c087</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;The nRF52840 port pin input/output specification is very similar to the RS485 chip you are using when nRF52840 VCC and RS485 VL are both 1.8 volts. Output low 0.4 volts, output high 1.4 volts worst case. VSS is of course GND, VDD is VCC ie 1.8 volts, just different naming convention.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/nRF52840-Pin-i_2D00_o-Spec.JPG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 and RS-485 protocol</title><link>https://devzone.nordicsemi.com/thread/377230?ContentTypeID=1</link><pubDate>Fri, 15 Jul 2022 14:24:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b9afbb6-97b4-4ef7-981c-5383af90c9d0</guid><dc:creator>TANGyouyou</dc:creator><description>&lt;p&gt;&lt;span class="transSent" data-group="0-0"&gt;&lt;span&gt;Thank you very much for your patient explanation, I understand what you want to express, I would like to ask, my NRF52840 power supply 1.8V, when the output logic is &amp;quot;1&amp;quot;, what is the level range?&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="transSent" data-group="0-1"&gt;&lt;span&gt; Looking forward to your reply, thank you&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 and RS-485 protocol</title><link>https://devzone.nordicsemi.com/thread/377028?ContentTypeID=1</link><pubDate>Thu, 14 Jul 2022 15:50:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcfb86c2-8464-4a3a-883d-74197599feaf</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;It works, the data sheet naming can be confusing.&lt;/p&gt;
&lt;p&gt;Pin VCC: &lt;em&gt;(Pins B6-B8): Supply Voltage. Recommended operating voltage is 3V to 3.6V for LTM2881-3 and 4.5V to 5.5V for LTM2881-5. Internally bypassed to GND with 2.2&amp;micro;F&lt;/em&gt;&lt;br /&gt;Use here at 3.3 volts (not nRF52840 VCC)&lt;/p&gt;
&lt;p&gt;Pin VL&lt;em&gt; (Pin A7): Logic Supply. Interface supply voltage for pins RO, RE, TE, DI, DE, DOUT, and ON. Recommended operating voltage is 1.62V to 5.5V. Internally bypassed to GND with 2.2&amp;micro;F&lt;/em&gt;&lt;br /&gt;Use here at nRF52840 VCC = 1.8 volts and the digital signals between nRF52840 and RS485 digital inputs are compatible:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;VL&lt;/strong&gt; = nRF52840 VCC = &lt;strong&gt;1.8 volts&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;VIL Logic Input Low Voltage&lt;/strong&gt; 1.62V &amp;le; VL &amp;le; 5.5V Max value = &lt;strong&gt;0.4 volts&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;VIH Logic Input High Voltage&lt;/strong&gt; DI, DE, RE = 0.67&amp;bull;VL = &lt;strong&gt;1.2 volts&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;VOL Output Low Voltage&lt;/strong&gt; = &lt;strong&gt;0.4 volts&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;VOH Output High Voltage&lt;/strong&gt; = VL-0.4 = &lt;strong&gt;1.4 volts&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;(Note DIN is not the same as DI)&lt;/p&gt;
&lt;p&gt;Note &lt;strong&gt;do not connect&lt;/strong&gt;&amp;nbsp;RS485 VL to RS485 VCC, they are different voltages&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 and RS-485 protocol</title><link>https://devzone.nordicsemi.com/thread/376946?ContentTypeID=1</link><pubDate>Thu, 14 Jul 2022 12:32:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2055d151-b72a-412f-8f54-3d032b9972e1</guid><dc:creator>TANGyouyou</dc:creator><description>&lt;p&gt;&lt;span class="transSent" data-group="0-0"&gt;&lt;span&gt;I am sorry, I still have a little doubt, NRF52840 and RS485 communication is only nrF52840 output voltage is 1.8V, find compatible with 1.8V transceiver RS485 chip, (as I said before, I use the CHIP LTM2881,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="transSent" data-group="0-1"&gt;&lt;span&gt; Related Datasheet also in the previous answer) is level compatibility only ok?&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="transSent" data-group="0-2"&gt;&lt;span&gt; Then nrF52840 UART communication protocol and RS485 communication protocol is matched, how to consider this?&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="transSent" data-group="0-3"&gt;&lt;span&gt; Looking forward to your reply&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 and RS-485 protocol</title><link>https://devzone.nordicsemi.com/thread/376687?ContentTypeID=1</link><pubDate>Wed, 13 Jul 2022 02:40:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99f011f4-075b-43fb-ba09-01a494fa533c</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Yes; as long as both RS485 and nRF52840 VCC and GND are the same then direct connections are ok. 1.8 volts on both is perfectly ok.&lt;/p&gt;
&lt;p&gt;As an aside, the internal core runs at 1.3 volts so the external voltage (1.8 volts in your case) is typically stepped down with the on-board DC-DC convertor from 1.8 volts to 1.3 volts. Were you to use an external 3 volt supply, the 3 volts would be stepped down to 1.3 volts in the same manner but note the overall power consumption would be the same in both cases as fewer mA would be required at 3 volts than at 1.8 volts. The only difference would be if other devices on VCC consumed more power at 3v instead of 1.8v. You can ignore this comment, but this is often overlooked and if you happened to be using a 3.3 volt coin cell then an external 1.8 volt regulator is often pointless.&lt;/p&gt;
&lt;p&gt;The /RE and DE can be controlled by any two i/o pins; they can also be connected together and controlled by a single i/o pin. The only reason to use 2 pins is if you want to listen (validate) your own transmission. My other post (link above) shows how to do this. See&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/46911/rs485-transmit-enable"&gt;rs485-transmit-enable&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Edit: I should add that RS485 allows very high baud rates. For symmetric transmit and receive baud rates the nRF52840 only allows up to 1MBaud, but if you can accept asymmetric baud rates you can use higher baud rates on transmit (eg 4MBaud) while only allowing 1MBaud on receive. If that is of interest I can post details.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 and RS-485 protocol</title><link>https://devzone.nordicsemi.com/thread/376685?ContentTypeID=1</link><pubDate>Wed, 13 Jul 2022 01:53:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cd2b656-bc81-467e-b9b8-e3b7c7c2b659</guid><dc:creator>TANGyouyou</dc:creator><description>&lt;p&gt;&lt;span class="transSent" data-group="0-0"&gt;&lt;span&gt;My NRF52840 is powered by 1.8V voltage. How can I communicate with MAX485?&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="transSent" data-group="0-1"&gt;&lt;span&gt; I have thought of using ilM2881-5 RS485 chip that is compatible with 1.8V voltage when I consulted the data, which is compatible with 1.8V voltage for transceiver. I wonder whether this scheme is feasible. If it is feasible, can THE RX TX of NRF52840 be directly connected with the RO DI pin of LTM2881 chip?&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="transSent" data-group="0-2"&gt;&lt;span&gt; How to determine the control pins in NRF52840?&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="transSent" data-group="0-3"&gt;&lt;span&gt; Looking forward to your reply&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a title="LTM2881" href="https://www.analog.com/media/en/technical-documentation/data-sheets/2881fj.pdf" rel="noopener noreferrer" target="_blank"&gt;https://www.analog.com/media/en/technical-documentation/data-sheets/2881fj.pdf&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 and RS-485 protocol</title><link>https://devzone.nordicsemi.com/thread/376665?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2022 16:59:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96106ce7-1020-44f9-9be8-981efb57e363</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Use the same supply (VCC and GND) for the MAX485 and the nRF52840 (typically 3 volts) and then the pins can be connected directly together (nRF52840 Rx to MAX485 R0, Tx to DI. IO pins control /RE and DE, again direct connection.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://datasheets.maximintegrated.com/en/ds/MAX1487-MAX491.pdf"&gt;MAX1487-MAX491&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 and RS-485 protocol</title><link>https://devzone.nordicsemi.com/thread/376610?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2022 12:42:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b76dbe17-d642-4592-bf05-6355c49d33aa</guid><dc:creator>TANGyouyou</dc:creator><description>&lt;p&gt;&lt;span class="transSent" data-group="0-0"&gt;&lt;span&gt;I&amp;#39;m sorry to disturb you, so I want to know whether you have solved this problem now.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="transSent" data-group="0-1"&gt;&lt;span&gt; The RX TX on NRF52840 cannot be directly connected to the RO DI pin of MAX485 chip, right?&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="transSent" data-group="0-2"&gt;&lt;span&gt; So what&amp;#39;s the solution?&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="transSent" data-group="0-3"&gt;&lt;span&gt; Looking forward to your reply&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 and RS-485 protocol</title><link>https://devzone.nordicsemi.com/thread/247549?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2020 12:29:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc496444-1ef8-4eab-b12d-6918a20ede8a</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Nick&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The scope of the UART on the nRF5x is simple point to point (RS232) serial communication, not the industrial standards for multidrop and serial networks (RS422, RS485). Nordic does therefore not offer any examples or solutions with RS485.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;There are multiple other threads here on the DevZone regarding RS485 support on the nRF52 series. Unfortunately, we don&amp;#39;t have support implemented in the SDK, but you can check out &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/46911/rs485-transmit-enable"&gt;this thread&lt;/a&gt; for a suggestion by another user on how this can be done.&lt;/p&gt;
&lt;p&gt;Other suggestions: You might be able to use an Enable pin and blocking mode in order to solve this, although it&amp;#39;s not a very elegant solution. You can&amp;nbsp;&lt;span&gt;configure the &amp;quot;driver&amp;quot; pins as inputs in this case. Set them up as inputs, change them to outputs before transmitting, then set them back to inputs when the transmission is complete.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>