<?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のトピックRe: Problem UART CTS and BLE module</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-UART-CTS-and-BLE-module/m-p/772022#M46944</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i need is to control only the CTS to prevent to overflow the buffer of the BLE module.&lt;/P&gt;&lt;P&gt;What i don't understand is why :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;when i set the &lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;PORT_PCR_MUX(3)&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;(&lt;/SPAN&gt;&lt;/SPAN&gt;pin CTS) OR the&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;UART4-&amp;gt;MODEM, the channel remain high&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;if i set&amp;nbsp;&lt;SPAN&gt;PORT_PCR_MUX(1) and not enable the&amp;nbsp;&lt;SPAN style="background-color: #f6f6f6;"&gt;UART4-&amp;gt;MODEM all works.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;the flow control is always on on the BLE module. Seems like when i enable the CTS pin on the CPU it be keeped high&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Apr 2018 14:35:43 GMT</pubDate>
    <dc:creator>ypkdani</dc:creator>
    <dc:date>2018-04-09T14:35:43Z</dc:date>
    <item>
      <title>Problem UART CTS and BLE module</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-UART-CTS-and-BLE-module/m-p/772020#M46942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a problem using the UART CTS with my K22FX512 and the BLE module RN4871.&lt;/P&gt;&lt;P&gt;I have enable the CTS pin with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;PORTC-&amp;gt;PCR[15] = PORT_PCR_MUX(3); /* set PORTC pin 15 to UART4_TX*/&lt;BR /&gt; PORTC-&amp;gt;PCR[14] = PORT_PCR_MUX(3); /* set PORTC pin 14 to UART4_RX*/&lt;BR /&gt; PORTC-&amp;gt;PCR[13] = PORT_PCR_MUX(3); /* set PORTC pin 12 to UART4_RTS*/&lt;BR /&gt; PORTC-&amp;gt;PCR[12] = PORT_PCR_MUX(3) | PORT_PCR_PE_MASK; /* set PORTC pin 13 to UART4_CTS*/&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;and&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;/* Enable CTS flow control */&lt;BR /&gt; UART4-&amp;gt;MODEM |= UART_MODEM_TXCTSE_MASK;&lt;BR /&gt; /* Enable receiver and transmitter */&lt;BR /&gt; UART4-&amp;gt;C2 |= (UART_C2_RIE_MASK | UART_C2_TE_MASK | UART_C2_RE_MASK);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;so the CTS is active and the RTS no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doing this happen that the CTS pin go high (despite the pull-down enable) and no communication begin.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i disable the CTS pin with&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;PORTC-&amp;gt;PCR[15] = PORT_PCR_MUX(3); /* set PORTC pin 15 to UART4_TX*/&lt;/SPAN&gt;&lt;BR style="background-color: #f6f6f6;" /&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;PORTC-&amp;gt;PCR[14] = PORT_PCR_MUX(3); /* set PORTC pin 14 to UART4_RX*/&lt;/SPAN&gt;&lt;BR style="background-color: #f6f6f6;" /&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;PORTC-&amp;gt;PCR[13] = PORT_PCR_MUX(1);&lt;/SPAN&gt;&lt;BR style="background-color: #f6f6f6;" /&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;PORTC-&amp;gt;PCR[12] = PORT_PCR_MUX(1)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all work and the CTS pin remain low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why this happen? the cpu active a pull-up when the CTS pin is enable?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: On my module RN4871 the flow control is always active.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2018 08:52:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-UART-CTS-and-BLE-module/m-p/772020#M46942</guid>
      <dc:creator>ypkdani</dc:creator>
      <dc:date>2018-04-06T08:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem UART CTS and BLE module</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-UART-CTS-and-BLE-module/m-p/772021#M46943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Daniele&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CTS is an input to the UART and so its state is presumably being controlled by the BLE module.&lt;BR /&gt;Therefore the module may be controlling its output in dependency to your RTS signal (depending on the wiring) in an unexpected manner.&lt;EM&gt; Try testing the RTS/CTS mode without the BLE so that you are sure what is controlling the signals.&lt;/EM&gt;&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>Fri, 06 Apr 2018 13:18:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-UART-CTS-and-BLE-module/m-p/772021#M46943</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-04-06T13:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem UART CTS and BLE module</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-UART-CTS-and-BLE-module/m-p/772022#M46944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i need is to control only the CTS to prevent to overflow the buffer of the BLE module.&lt;/P&gt;&lt;P&gt;What i don't understand is why :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;when i set the &lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;PORT_PCR_MUX(3)&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;(&lt;/SPAN&gt;&lt;/SPAN&gt;pin CTS) OR the&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;UART4-&amp;gt;MODEM, the channel remain high&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;if i set&amp;nbsp;&lt;SPAN&gt;PORT_PCR_MUX(1) and not enable the&amp;nbsp;&lt;SPAN style="background-color: #f6f6f6;"&gt;UART4-&amp;gt;MODEM all works.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;the flow control is always on on the BLE module. Seems like when i enable the CTS pin on the CPU it be keeped high&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2018 14:35:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-UART-CTS-and-BLE-module/m-p/772022#M46944</guid>
      <dc:creator>ypkdani</dc:creator>
      <dc:date>2018-04-09T14:35:43Z</dc:date>
    </item>
  </channel>
</rss>

