<?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>Is it possible to invert the UART/UARTE logic in the nRF52832?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51735/is-it-possible-to-invert-the-uart-uarte-logic-in-the-nrf52832</link><description>We have a need to invert the TTL logic for the serial interface. All our &amp;quot;Unique&amp;quot; SWI serial interfaces use an inverted logic e.g. idle state 0 instead of idle state 1. 
 This has a number of benefits for us in the systems our hardware is designed to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Sep 2019 06:44:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51735/is-it-possible-to-invert-the-uart-uarte-logic-in-the-nrf52832" /><item><title>RE: Is it possible to invert the UART/UARTE logic in the nRF52832?</title><link>https://devzone.nordicsemi.com/thread/208376?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2019 06:44:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a02ec70-9c8a-4ead-a861-9d1e04272390</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi again&lt;/p&gt;
&lt;p&gt;The PWM/SAADC UART implementation was shared in an older Devzone case if you&amp;#39;re interested:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/40385/nrf52832-bit-band-uart-problem-19200-baudrate"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/40385/nrf52832-bit-band-uart-problem-19200-baudrate&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to invert the UART/UARTE logic in the nRF52832?</title><link>https://devzone.nordicsemi.com/thread/208100?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2019 06:43:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49133350-a756-4e86-933e-0d1a73bcd5cb</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The method described by Dmitry is doable, but as he mentions it will affect current consumption quite a lot.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A while back there was a project in Nordic to implement an extra UART in the nRF52 using the PWM and SAADC modules. The PWM was used to generate the TX signal, by only using 0 or 100% duty cycle and matching the PWM update frequency to the baudrate.&amp;nbsp;The SAADC was used to sample the RX.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Since both the PWM and SAADC use easyDMA they can run concurrently with the SoftDevice.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will have to do some digging internally to see where the example was published and get back to you. If you only need to send data once in a while I think this driver should work fine.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to invert the UART/UARTE logic in the nRF52832?</title><link>https://devzone.nordicsemi.com/thread/207863?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2019 09:28:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e218b2dd-2057-4350-aef3-e7d038a8fa99</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;If you have 4 free pins, you can try to create two &amp;quot;hardware inverters&amp;quot; inside 52832 with two pairs of GPIOTE channels - one will generate an event for low-to-high transition on input pin and trigger a CLR task for output pin, and vice-versa. Though I can&amp;#39;t say how it will affect power consumption...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to invert the UART/UARTE logic in the nRF52832?</title><link>https://devzone.nordicsemi.com/thread/207781?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2019 05:37:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19a272bb-612c-4392-97b4-c0de70813d33</guid><dc:creator>LoungingHound</dc:creator><description>&lt;p&gt;OK I think a softdevice will still work for us. We have a very defined Transmit and Receive window, so unexpected interrupts are not going to occur. (We poll the peripheral and it responds, and while waiting for a response the processor only has two non critical monitoring tasks to complete). The problem with a hardware inversion is the increased power consumption, which then require additional hardware to shut down to sleep mode (we are working in the 5-10 uA range in sleep mode which is critical as this device can be running for many years on a single charge). This is going to add to the product cost and board real estate, both of which are very limited. &lt;/p&gt;
&lt;p&gt;We did try some other work around&amp;#39;s but each seems to cause other issues and we keep coming back to the same point.&lt;/p&gt;
&lt;p&gt;Thanks for your feedback.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to invert the UART/UARTE logic in the nRF52832?</title><link>https://devzone.nordicsemi.com/thread/207776?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2019 04:20:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b4d6e2a-5752-49c1-892c-0ce0b47db2af</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;No you can&amp;#39;t invert it by changing configuration, the UART module only supports standard UART modes. Many, many people have bitbanged UART interfaces on the nRF series however you will have to deal, if you do it, with the softdevice interrupting you when you least want it. I&amp;#39;d just add a hardware inverter, by far the easiest way to accomplish this.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>