<?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: DMX signal reverse polarity detection in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/DMX-signal-reverse-polarity-detection/m-p/844907#M33603</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might want to look at an RS-485 interface chip that has support for crossed data wires.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Support for swapped data wires is pretty rare in DMX - even if you support it, the other devices in the chain probably don't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: DMX-512 hardware often does have opto-isolators.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jun 2020 19:04:08 GMT</pubDate>
    <dc:creator>chrispflieger</dc:creator>
    <dc:date>2020-06-24T19:04:08Z</dc:date>
    <item>
      <title>DMX signal reverse polarity detection</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/DMX-signal-reverse-polarity-detection/m-p/844903#M33599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone have a neat way of determining if a DMX signal is inverted? (Data+ and Data- interchanged, so that the received signal is inverted)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Aug 2018 10:34:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/DMX-signal-reverse-polarity-detection/m-p/844903#M33599</guid>
      <dc:creator>ianbenton</dc:creator>
      <dc:date>2018-08-12T10:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: DMX signal reverse polarity detection</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/DMX-signal-reverse-polarity-detection/m-p/844904#M33600</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 don't believe the DMX protocol will tolerate an inverted signal. When the optical isolator inverts the signal level, you will have to add a standard inverter if you remove the isolator.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Sol&lt;/P&gt;&lt;P&gt;&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>Mon, 20 Aug 2018 20:10:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/DMX-signal-reverse-polarity-detection/m-p/844904#M33600</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2018-08-20T20:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: DMX signal reverse polarity detection</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/DMX-signal-reverse-polarity-detection/m-p/844905#M33601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There isn't an opto-isolator - it's RS485!&lt;/P&gt;&lt;P&gt;If the data is received through a lead with Data+ and Data- reversed, then the line break at the start of the frame looks like an idle period, and the idle period between frames looks like a line break. DMX is still valid if it has a long line-break and a short idle period. So it's quite tricky to spot a reversed signal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2018 14:09:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/DMX-signal-reverse-polarity-detection/m-p/844905#M33601</guid>
      <dc:creator>ianbenton</dc:creator>
      <dc:date>2018-08-21T14:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: DMX signal reverse polarity detection</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/DMX-signal-reverse-polarity-detection/m-p/844906#M33602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Is this&amp;nbsp;info still wanted?&lt;/P&gt;&lt;P&gt;We have a DMX project that achieves auto-DMX polarity using a MKE04 that works well and uses no extra parts.&lt;/P&gt;&lt;P&gt;The only problem is the DMX bus no longer fails high (as it is inverted) - not found this an issue though, we just signal to the user that the polarity is inverted, in most cased they don't even bother to correct it.&lt;/P&gt;&lt;P&gt;If this info is still needed I'll expand on the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ken...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2020 16:32:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/DMX-signal-reverse-polarity-detection/m-p/844906#M33602</guid>
      <dc:creator>kenchill</dc:creator>
      <dc:date>2020-06-09T16:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: DMX signal reverse polarity detection</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/DMX-signal-reverse-polarity-detection/m-p/844907#M33603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might want to look at an RS-485 interface chip that has support for crossed data wires.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Support for swapped data wires is pretty rare in DMX - even if you support it, the other devices in the chain probably don't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: DMX-512 hardware often does have opto-isolators.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2020 19:04:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/DMX-signal-reverse-polarity-detection/m-p/844907#M33603</guid>
      <dc:creator>chrispflieger</dc:creator>
      <dc:date>2020-06-24T19:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: DMX signal reverse polarity detection</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/DMX-signal-reverse-polarity-detection/m-p/844908#M33604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the answer for those interested:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The usefulness of auto dmx-polarity is dependant on application.&lt;/P&gt;&lt;P&gt;A lot of our devices get used in architectural lighting systems and are packaged in different forms, the simplest being a small cylinder 13mm dia. x 30mm long with bare leads, there can be 100's of these used in a single installation - and often get incorrectly wired - they are RDM enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The UART in your processor needs to be able to invert the Rx input (and Tx output if using RDM), if not an external xor gate will be needed.&lt;/P&gt;&lt;P&gt;A&amp;nbsp;three-stage filter is used on the dmx packets signature. Framing errors, overrun errors, slot count and start-code are added to the filter&amp;nbsp;on&amp;nbsp;the &lt;STRONG&gt;following&lt;/STRONG&gt; dmx packet's break. Using a simple algorithm to compare the filter entries it can be determined if&amp;nbsp;any changes in signature are caused by noise or data errors (noise is a random&amp;nbsp;event and can happen anywhere in the packet). Packets with data errors are counted and when a preset value is reached it can be assumed that the dmx-polarity is wrong - whereby the the UART Rx and Tx inverters are enabled, sometimes you can get a good dmx-packet with incorrect dmx-polarity so this needs to be taken into account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It can sometimes take 10 or more packets to determine if the dmx-polarity is reversed. Our devices only update their outputs when the filter determines a good dmx packet&amp;nbsp;has been received, which means it is delayed but this has little issue with most lighting systems and also synchronises them.&lt;/P&gt;&lt;P&gt;RDM packets get processed immediately and are not added to the filter, if there are errors after a correct RDM start-code this will be picked up&amp;nbsp;during RDM processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may seem a pretty crude solution but it works very well, keep things simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ken...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jun 2020 10:03:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/DMX-signal-reverse-polarity-detection/m-p/844908#M33604</guid>
      <dc:creator>kenchill</dc:creator>
      <dc:date>2020-06-27T10:03:14Z</dc:date>
    </item>
  </channel>
</rss>

