<?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>Kinetis Microcontrollers中的主题 Single-wire UART on KL26Z ?</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Single-wire-UART-on-KL26Z/m-p/344801#M16773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to use single-wire half-duplex UART mode on a FRDM-KL26Z board.&amp;nbsp; The KL16Z reference manual indicates there are a few relevant fields in the UART control register 1 to enable this functionality:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;LOOPS Loop Mode Select&lt;/STRONG&gt;&lt;BR /&gt;Selects between loop back modes and normal 2-pin full-duplex modes. When LOOPS is set, the transmitter output is internally connected to the receiver input.&lt;BR /&gt;0 = Normal operation - UART_RX and UART_TX use separate pins.&lt;BR /&gt;1 = Loop mode or single-wire mode where transmitter outputs are internally connected to receiver input. (See RSRC bit.) UART_RX pin is not used by UART.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;RSRC Receiver Source Select&lt;/STRONG&gt;&lt;BR /&gt;This bit has no meaning or effect unless the LOOPS bit is set to 1. When LOOPS is set, the receiver input is internally connected to the UART_TX pin and RSRC determines whether this connection is also&lt;BR /&gt;connected to the transmitter output.&lt;BR /&gt;0 = Provided LOOPS is set, RSRC is cleared, selects internal loop back mode and the UART does not use the UART_RX pins.&lt;BR /&gt;1 = Single-wire UART mode where the UART_TX pin is connected to the transmitter output and receiver input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to use a single-wire on the TxD pin for both sending and receiving data.&amp;nbsp; I think this corresponds to LOOPS = 1 and RSRC = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Processor Expert, I've added a Serial_LDD from the component library to my project.&amp;nbsp; The only setting which I can see which relates to single-wire mode is "Loop mode" which has four options:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Normal&lt;/LI&gt;&lt;LI&gt;Automatic Echo&lt;/LI&gt;&lt;LI&gt;Local loop-back&lt;/LI&gt;&lt;LI&gt;Remote loop-back&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Out of these, only Normal and Local Loop-back are available.&amp;nbsp; If I try to select the other two, PE reports that "The device doesn't support the selected loop mode".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not really clear how these Loop Mode options relate to the register settings.&amp;nbsp; Is "Normal" equivalent to LOOPS = 0 and RSRC = 0, with Local Loop-back equivalent to LOOPS = 1 and RSRC = 0 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, is there a way (other than writing to registers directly and not using PE) to enable LOOPS = 1 and RSRC = 1 ???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Sep 2014 08:37:59 GMT</pubDate>
    <dc:creator>geoffs</dc:creator>
    <dc:date>2014-09-25T08:37:59Z</dc:date>
    <item>
      <title>Single-wire UART on KL26Z ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Single-wire-UART-on-KL26Z/m-p/344801#M16773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to use single-wire half-duplex UART mode on a FRDM-KL26Z board.&amp;nbsp; The KL16Z reference manual indicates there are a few relevant fields in the UART control register 1 to enable this functionality:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;LOOPS Loop Mode Select&lt;/STRONG&gt;&lt;BR /&gt;Selects between loop back modes and normal 2-pin full-duplex modes. When LOOPS is set, the transmitter output is internally connected to the receiver input.&lt;BR /&gt;0 = Normal operation - UART_RX and UART_TX use separate pins.&lt;BR /&gt;1 = Loop mode or single-wire mode where transmitter outputs are internally connected to receiver input. (See RSRC bit.) UART_RX pin is not used by UART.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;RSRC Receiver Source Select&lt;/STRONG&gt;&lt;BR /&gt;This bit has no meaning or effect unless the LOOPS bit is set to 1. When LOOPS is set, the receiver input is internally connected to the UART_TX pin and RSRC determines whether this connection is also&lt;BR /&gt;connected to the transmitter output.&lt;BR /&gt;0 = Provided LOOPS is set, RSRC is cleared, selects internal loop back mode and the UART does not use the UART_RX pins.&lt;BR /&gt;1 = Single-wire UART mode where the UART_TX pin is connected to the transmitter output and receiver input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to use a single-wire on the TxD pin for both sending and receiving data.&amp;nbsp; I think this corresponds to LOOPS = 1 and RSRC = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Processor Expert, I've added a Serial_LDD from the component library to my project.&amp;nbsp; The only setting which I can see which relates to single-wire mode is "Loop mode" which has four options:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Normal&lt;/LI&gt;&lt;LI&gt;Automatic Echo&lt;/LI&gt;&lt;LI&gt;Local loop-back&lt;/LI&gt;&lt;LI&gt;Remote loop-back&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Out of these, only Normal and Local Loop-back are available.&amp;nbsp; If I try to select the other two, PE reports that "The device doesn't support the selected loop mode".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not really clear how these Loop Mode options relate to the register settings.&amp;nbsp; Is "Normal" equivalent to LOOPS = 0 and RSRC = 0, with Local Loop-back equivalent to LOOPS = 1 and RSRC = 0 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, is there a way (other than writing to registers directly and not using PE) to enable LOOPS = 1 and RSRC = 1 ???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 08:37:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Single-wire-UART-on-KL26Z/m-p/344801#M16773</guid>
      <dc:creator>geoffs</dc:creator>
      <dc:date>2014-09-25T08:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Single-wire UART on KL26Z ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Single-wire-UART-on-KL26Z/m-p/344802#M16774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Geoff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try to use the PE component shown as below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46266i011BD5F2858B0EE5/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&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>Fri, 26 Sep 2014 07:05:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Single-wire-UART-on-KL26Z/m-p/344802#M16774</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2014-09-26T07:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: Single-wire UART on KL26Z ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Single-wire-UART-on-KL26Z/m-p/344803#M16775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kan.&amp;nbsp; Am I correct in thinking that using the Init_UART peripheral initialization component means I can not then use a higher-level Processor Expert component (eg Serial_LDD or AsynchroSerial) ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 10:33:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Single-wire-UART-on-KL26Z/m-p/344803#M16775</guid>
      <dc:creator>geoffs</dc:creator>
      <dc:date>2014-09-26T10:33:26Z</dc:date>
    </item>
  </channel>
</rss>

