<?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>S32KのトピックRe: S32K116 UART Communication protocol emulation over FLEXIO</title>
    <link>https://community.nxp.com/t5/S32K/S32K116-UART-Communication-protocol-emulation-over-FLEXIO/m-p/942710#M5088</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jayashree pasane&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="vertical-align: inherit;"&gt;PINCFG&lt;/SPAN&gt; and &lt;SPAN style="vertical-align: inherit;"&gt;PINPOL are for the logical behaves of the pin, but as long as you are using this pin as open drain, it will need a pull up to work. You can use the internall pullup of the MCU, it is enabled with the PE and PS of the PORT_PCRn field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="vertical-align: inherit;"&gt;Hope this helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="vertical-align: inherit;"&gt;Best regards&lt;/SPAN&gt;&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Oct 2019 22:04:45 GMT</pubDate>
    <dc:creator>jorge_a_vazquez</dc:creator>
    <dc:date>2019-10-25T22:04:45Z</dc:date>
    <item>
      <title>S32K116 UART Communication protocol emulation over FLEXIO</title>
      <link>https://community.nxp.com/t5/S32K/S32K116-UART-Communication-protocol-emulation-over-FLEXIO/m-p/942709#M5087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="vertical-align: inherit;"&gt;&lt;SPAN style="vertical-align: inherit;"&gt;I'm trying to emulate UART over flexi on the S32116EVB developer kit.&lt;/SPAN&gt; &lt;SPAN style="vertical-align: inherit;"&gt;&lt;SPAN style="vertical-align: inherit;"&gt;I want to keep the TX of UART by default high (open drain) and then start putting data on tx line.&lt;/SPAN&gt; &lt;SPAN style="vertical-align: inherit;"&gt;As explained in the reference manual I have the following bits in the register to make it supprort opendrain.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="vertical-align: inherit;"&gt;&lt;SPAN style="vertical-align: inherit;"&gt;FLEXIO-&amp;gt; SHIFTCTL [0] |&lt;/SPAN&gt; &lt;SPAN style="vertical-align: inherit;"&gt;= FLEXIO_SHIFTCTL_PINCFG (0x01);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="vertical-align: inherit;"&gt;&lt;SPAN style="vertical-align: inherit;"&gt;FLEXIO-&amp;gt; SHIFTCTL [0] |&lt;/SPAN&gt; &lt;SPAN style="vertical-align: inherit;"&gt;= FLEXIO_SHIFTCTL_PINPOL (0x01);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="vertical-align: inherit;"&gt;&lt;SPAN style="vertical-align: inherit;"&gt;When I do the setting as mentioned above in the register&lt;/SPAN&gt; &lt;SPAN style="vertical-align: inherit;"&gt;, TX line remains at low state and no communication happens (failed to transmit)&lt;/SPAN&gt;&lt;SPAN style="vertical-align: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Config_11.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/92892iA24A943C8ED44443/image-size/large?v=v2&amp;amp;px=999" role="button" title="Config_11.PNG" alt="Config_11.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="vertical-align: inherit;"&gt;&lt;SPAN style="vertical-align: inherit;"&gt;&lt;SPAN style="vertical-align: inherit;"&gt;I want to set the state of the pin to default high.&lt;/SPAN&gt; &lt;SPAN style="vertical-align: inherit;"&gt;and start transmission over tx line, Currently this is not possible without external pull up resistor.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="required.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/92936iD0E9ADF031343735/image-size/large?v=v2&amp;amp;px=999" role="button" title="required.PNG" alt="required.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="vertical-align: inherit;"&gt;So can anyone tell me, if it is true that&amp;nbsp;I always need an external pullup register to achieve communication as given in the above picture?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="vertical-align: inherit;"&gt;I am attaching my sample setting too for tx line&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="vertical-align: inherit;"&gt;clock enable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="vertical-align: inherit;"&gt;PCC-&amp;gt; PCCn [PCC_PORTA_INDEX] | = 1 &amp;lt;&amp;lt; PCC_PCCn_CGC_SHIFT;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="vertical-align: inherit;"&gt;// PORTD_0 set as FLEXIO&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="vertical-align: inherit;"&gt;&lt;SPAN style="vertical-align: inherit;"&gt;PORTD-&amp;gt; PCR [2] | = 0x00000400;&lt;/SPAN&gt; &lt;SPAN style="vertical-align: inherit;"&gt;/ * Port D2: MUX = FLEXIO * /&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="vertical-align: inherit;"&gt;// Enable clock to the FXIO&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="vertical-align: inherit;"&gt;(PCC-&amp;gt; PCCn [PCC_FlexIO_INDEX]) | = 0x41000000;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="vertical-align: inherit;"&gt;FLEXIO-&amp;gt; CTRL | = FLEXIO_CTRL_DBGE (1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="vertical-align: inherit;"&gt;FLEXIO-&amp;gt; SHIFTSTAT = 0x0F;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="vertical-align: inherit;"&gt;// TRANSMITTER&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="vertical-align: inherit;"&gt;// shifter configuration&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="vertical-align: inherit;"&gt;FLEXIO-&amp;gt; SHIFTCTL [0] | = (FLEXIO_SHIFTCTL_TIMSEL (0) | FLEXIO_SHIFTCTL_TIMPOL (0) | FLEXIO_SHIFTCTL_PINSEL (0x03) | FLEXIO_SHIFTCTL_SMOD (0x02));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="vertical-align: inherit;"&gt;FLEXIO-&amp;gt; SHIFTCTL [0] | = FLEXIO_SHIFTCTL_PINCFG (0x01);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="vertical-align: inherit;"&gt;FLEXIO-&amp;gt; SHIFTCTL [0] | = FLEXIO_SHIFTCTL_PINPOL (0x01);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="vertical-align: inherit;"&gt;FLEXIO-&amp;gt; SHIFTCFG [0] | = (FLEXIO_SHIFTCFG_INSRC (0) | FLEXIO_SHIFTCFG_SSTOP (0x03) | FLEXIO_SHIFTCFG_SSTART (0x02));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="vertical-align: inherit;"&gt;// set baud rate&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="vertical-align: inherit;"&gt;// FLEXIO-&amp;gt; TIMCMP [0] = 0x00000F04;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="vertical-align: inherit;"&gt;// timer configuration&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="vertical-align: inherit;"&gt;FLEXIO-&amp;gt; TIMCFG [0] | = (FLEXIO_TIMCFG_TIMOUT (0) | FLEXIO_TIMCFG_TIMDEC (0) | FLEXIO_TIMCFG_TIMDIS (0x02) | FLEXIO_TIMCFG_TIMENA (0x02) | FLEXIO_TIMCFG_TSTOP (0x02) | FLEXIO_TIMCFG_TSTART (0x01));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="vertical-align: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Oct 2019 22:27:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K116-UART-Communication-protocol-emulation-over-FLEXIO/m-p/942709#M5087</guid>
      <dc:creator>jayashreepasane</dc:creator>
      <dc:date>2019-10-19T22:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: S32K116 UART Communication protocol emulation over FLEXIO</title>
      <link>https://community.nxp.com/t5/S32K/S32K116-UART-Communication-protocol-emulation-over-FLEXIO/m-p/942710#M5088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jayashree pasane&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="vertical-align: inherit;"&gt;PINCFG&lt;/SPAN&gt; and &lt;SPAN style="vertical-align: inherit;"&gt;PINPOL are for the logical behaves of the pin, but as long as you are using this pin as open drain, it will need a pull up to work. You can use the internall pullup of the MCU, it is enabled with the PE and PS of the PORT_PCRn field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="vertical-align: inherit;"&gt;Hope this helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="vertical-align: inherit;"&gt;Best regards&lt;/SPAN&gt;&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2019 22:04:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K116-UART-Communication-protocol-emulation-over-FLEXIO/m-p/942710#M5088</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2019-10-25T22:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: S32K116 UART Communication protocol emulation over FLEXIO </title>
      <link>https://community.nxp.com/t5/S32K/S32K116-UART-Communication-protocol-emulation-over-FLEXIO/m-p/942711#M5089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jorge,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again for the response.&lt;/P&gt;&lt;P&gt;I tried to enable the internal pull up, but still I face the same issue. I am trying to use Evaluation board S32K116EVB.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jayashree P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2019 08:26:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K116-UART-Communication-protocol-emulation-over-FLEXIO/m-p/942711#M5089</guid>
      <dc:creator>jayashreepasane</dc:creator>
      <dc:date>2019-11-22T08:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: S32K116 UART Communication protocol emulation over FLEXIO</title>
      <link>https://community.nxp.com/t5/S32K/S32K116-UART-Communication-protocol-emulation-over-FLEXIO/m-p/942712#M5090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;jayashree pasane&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to have the flexIO &lt;SPAN style="vertical-align: inherit;"&gt;TX of UART by default high you need to set:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="vertical-align: inherit;"&gt;FLEXIO-&amp;gt; SHIFTCTL [0] | = FLEXIO_SHIFTCTL_PINCFG (0x00);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="vertical-align: inherit;"&gt;FLEXIO-&amp;gt; SHIFTCTL [0] | = FLEXIO_SHIFTCTL_PINPOL (0x03);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="vertical-align: inherit;"&gt;With this config, you will have TX high by default and when transmission happens, it will act as your second scope.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="vertical-align: inherit;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="vertical-align: inherit;"&gt;Jorge Alcala&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2019 18:37:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K116-UART-Communication-protocol-emulation-over-FLEXIO/m-p/942712#M5090</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2019-11-25T18:37:57Z</dc:date>
    </item>
  </channel>
</rss>

