<?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: Virtual shortcircuit ? in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Virtual-shortcircuit/m-p/483155#M15874</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you make pinout or other hardware changes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you add an external circuit to connect the lines when needed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Gary Segal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Dec 2015 22:23:14 GMT</pubDate>
    <dc:creator>GarySegal</dc:creator>
    <dc:date>2015-12-14T22:23:14Z</dc:date>
    <item>
      <title>Virtual shortcircuit ?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Virtual-shortcircuit/m-p/483151#M15870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #3a0699;"&gt;I am using MK64FN1MOVMD12 device.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #3a0699;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;I want to pass through data between PTE9---&amp;gt;PTC17 and PTC16---&amp;gt;PTE8 WITHOUT any CPU intervention&lt;/STRONG&gt;&lt;/SPAN&gt;, sort of like a virtual short circuit between the pins. Diagram below (virtual connections are drawn by the RED, GREEN, PURPLE, ORANGE lines):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #3a0699;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Kinetis.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/28042iB460468463FCEA37/image-size/large?v=v2&amp;amp;px=999" role="button" title="Kinetis.jpg" alt="Kinetis.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #3a0699;"&gt;I have tried configuring the PINS as UARTs and then used DMA but this approach entails setting up the baud rate (which I don't want to do as my chip is unaware of any baud rate), secondly I have tried configuring them as GPIOs and then using DMA but again the shortcoming is GPIO DMA trigger acts PORT wise not PIN wise.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #3a0699;"&gt;What is the smartest way of doing it other than physically shorting the pins.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #3a0699;"&gt; Any MQX/Kinetis experts want to pitch in ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #3a0699;"&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/mjbcswitzerland"&gt;mjbcswitzerland&lt;/A&gt;​, &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/soledad"&gt;soledad&lt;/A&gt;​, &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/DavidSeymour"&gt;DavidSeymour&lt;/A&gt;​, &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/RadekS"&gt;RadekS&lt;/A&gt;​, &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/macl"&gt;macl&lt;/A&gt;​, &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/Jorge_Gonzalez"&gt;Jorge_Gonzalez&lt;/A&gt; , &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/sito"&gt;sito&lt;/A&gt;​, &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/danielchen"&gt;danielchen&lt;/A&gt;​, &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/foosechek"&gt;foosechek&lt;/A&gt;​, &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/ed_smith_mqx_level2"&gt;ed_smith_mqx_level2&lt;/A&gt;​&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #3a0699;"&gt;I am sure, I am NOT the first one to have this sort of application !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #3a0699;"&gt;Thanks and Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #3a0699;"&gt;Nitin&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2015 19:22:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Virtual-shortcircuit/m-p/483151#M15870</guid>
      <dc:creator>nitinharish</dc:creator>
      <dc:date>2015-12-14T19:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Virtual shortcircuit ?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Virtual-shortcircuit/m-p/483152#M15871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nitin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide details on the type of signals you want to connect?&amp;nbsp; What are the minimum and maximum frequency?&amp;nbsp; Are there any latency limits?&amp;nbsp; If there are any other details about the signals that will help, please share.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no "virtual short circuit" available between GPIO pins on Kinetis devices.&amp;nbsp; There are ways to move data between pins without CPU intervention by using the various communication ports and DMA, but each port brings different trade offs.&amp;nbsp; I see from another thread you started that you've explored using UARTs, but it does not appear to meet your requirements.&amp;nbsp; If you can provide more information, that will let us determine if your requirements can be meet by the K64's hardware.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Gary Segal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2015 21:25:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Virtual-shortcircuit/m-p/483152#M15871</guid>
      <dc:creator>GarySegal</dc:creator>
      <dc:date>2015-12-14T21:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Virtual shortcircuit ?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Virtual-shortcircuit/m-p/483153#M15872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #3a0699;"&gt;Thanks &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/GarySegal"&gt;GarySegal&lt;/A&gt;​,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #3a0699;"&gt;My data is SERIAL, which can vary from 4800 to 115200 baud but at any given time I do not know what is the baud.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #3a0699;"&gt;DMA with serial needs Baud rate registers to be set, which I cannot do!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699; font-family: 'trebuchet ms', geneva;"&gt;DMA with GPIO triggers on port basis and even destination is also PORT wise NOT pin wise.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699; font-family: 'trebuchet ms', geneva;"&gt;I have both of the above working BUT both do NOT meet my requirements.&lt;/SPAN&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2015 21:36:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Virtual-shortcircuit/m-p/483153#M15872</guid>
      <dc:creator>nitinharish</dc:creator>
      <dc:date>2015-12-14T21:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Virtual shortcircuit ?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Virtual-shortcircuit/m-p/483154#M15873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nitin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it not possible to move the PTC16 (UART 3 Rx) input to PTB10 (UART 3 Rx input)?&lt;/P&gt;&lt;P&gt;Wouldn't that solve all problems in allowing the DMA-port-mirroring method to work on all 4 links?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2015 21:51:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Virtual-shortcircuit/m-p/483154#M15873</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-12-14T21:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Virtual shortcircuit ?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Virtual-shortcircuit/m-p/483155#M15874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you make pinout or other hardware changes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you add an external circuit to connect the lines when needed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Gary Segal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2015 22:23:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Virtual-shortcircuit/m-p/483155#M15874</guid>
      <dc:creator>GarySegal</dc:creator>
      <dc:date>2015-12-14T22:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Virtual shortcircuit ?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Virtual-shortcircuit/m-p/483156#M15875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699; font-family: 'trebuchet ms', geneva;"&gt;Thanks &lt;/SPAN&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/mjbcswitzerland"&gt;mjbcswitzerland&lt;/A&gt;&lt;SPAN style="color: #3a0699; font-family: 'trebuchet ms', geneva;"&gt;​, I wish that was possible but it is NOT, as all other ports are used for something else at this point.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699; font-family: 'trebuchet ms', geneva;"&gt;I was wondering if their is some sort of autobauding possible with DMA/serial ?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 16:02:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Virtual-shortcircuit/m-p/483156#M15875</guid>
      <dc:creator>nitinharish</dc:creator>
      <dc:date>2015-12-15T16:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Virtual shortcircuit ?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Virtual-shortcircuit/m-p/483157#M15876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699; font-family: 'trebuchet ms', geneva;"&gt;Thanks &lt;/SPAN&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/GarySegal"&gt;GarySegal&lt;/A&gt;&lt;SPAN style="color: #3a0699; font-family: 'trebuchet ms', geneva;"&gt;​, Both are NOT possible at this stage. We have many boards already produced.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #3a0699;"&gt;I was hoping this to be very simple but surely it is NOT !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3a0699; font-family: 'trebuchet ms', geneva;"&gt;Any&lt;/SPAN&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #3a0699;"&gt; other trick up your sleeve ?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 16:04:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Virtual-shortcircuit/m-p/483157#M15876</guid>
      <dc:creator>nitinharish</dc:creator>
      <dc:date>2015-12-15T16:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Virtual shortcircuit ?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Virtual-shortcircuit/m-p/483158#M15877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nitin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There may be a "final" possibility:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Use the DMA based port-mirrorring on three of the four channels, leaving your PTC3 to PTD7 not yet solved.&lt;/P&gt;&lt;P&gt;2. Configure PTC3 as CMP1_IN1 input.&lt;BR /&gt;Program the comparator's DAC to half-rail, connected to the CMP's other input.&lt;/P&gt;&lt;P&gt;Configure the comparator to generate DMA on rising and falling edges&lt;/P&gt;&lt;P&gt;Use the DMA to trigger the same port toggle as the other channels do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would result in the same behavior but using the CMP as trigger on PTC3 rather than the port input trigger that the others can use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 17:34:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Virtual-shortcircuit/m-p/483158#M15877</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-12-15T17:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Virtual shortcircuit ?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Virtual-shortcircuit/m-p/483159#M15878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nitin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hmm, this is really a tough set of requirements you've got.&amp;nbsp; This is a unique set of constraints that I've not seen at other customers nor have I found similar issues on this community or NXP internal problem databases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best approach is to find a way to use the UARTs, as that will give the most reliable data transfer.&amp;nbsp; If the baud doesn't change frequently, an auto-baud approach could work but you might loose some data during rate changes.&amp;nbsp; Further, the K64's UARTs don't have an auto-baud feature, so it would have to be implemented in software.&amp;nbsp; Auto-baud is not in MQX 4.2, so you'd have to implement it yourself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It might be possible to over sample the input lines and then drive this over sampled data to the output lines.&amp;nbsp; For example, a timer could be programmed to generate DMA requests at a frequency of 115,200x16 or faster (1.8432MHz).&amp;nbsp; The DMA would then read the RX pins and write to the TX pins.&amp;nbsp; However, since all of your pins are not on the same port, this would have to use two DMA transfer for PTC and PTD.&amp;nbsp; The 2nd DMA transfer would need a 2nd timer channel to trigger it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure how well this would work as the resulting transmit signals would be time quantized to the DMA period.&amp;nbsp; Some baud rates might not fair well through this.&amp;nbsp; Higher DMA rates might help, but of course this comes with the cost of greater bus bandwidth.&amp;nbsp; Depending on what else is going on in the system the DMA transfers could have a system level impact.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Gary Segal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 18:55:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Virtual-shortcircuit/m-p/483159#M15878</guid>
      <dc:creator>GarySegal</dc:creator>
      <dc:date>2015-12-16T18:55:34Z</dc:date>
    </item>
  </channel>
</rss>

