<?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>MPC5xxx中的主题 Re: PinMux-API to set pin mode (Output/Input)</title>
    <link>https://community.nxp.com/t5/MPC5xxx/PinMux-API-to-set-pin-mode-Output-Input/m-p/1022015#M15341</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the "mode" of GPIO is controlled by input buffer enable bit IBE and by output buffer enable bit (OBE) in SIU_PCRn registers. This can be done using the functions mentioned above. Notice output buffer and input buffer can be enabled at the same time.&lt;/P&gt;&lt;P&gt;And also notice that GPIO can be configured as open drain using ODE bit in SIU_PCRn register. So, in fact, you don't need to reconfigure the pins in runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jan 2020 11:38:49 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2020-01-06T11:38:49Z</dc:date>
    <item>
      <title>PinMux-API to set pin mode (Output/Input)</title>
      <link>https://community.nxp.com/t5/MPC5xxx/PinMux-API-to-set-pin-mode-Output-Input/m-p/1022012#M15338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;I'm working with MPC5775E in S32 studio (FreeRTOS SDK),&lt;/P&gt;&lt;P&gt;By selecting the PinMux functional properties I can set the pin mode as either OUTPUT or INPUT. But I need to change the mode during run time, in order to write and read the same pin. Is there any API available for setting Pin Mode ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Dec 2019 09:43:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/PinMux-API-to-set-pin-mode-Output-Input/m-p/1022012#M15338</guid>
      <dc:creator>bdharma96</dc:creator>
      <dc:date>2019-12-26T09:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: PinMux-API to set pin mode (Output/Input)</title>
      <link>https://community.nxp.com/t5/MPC5xxx/PinMux-API-to-set-pin-mode-Output-Input/m-p/1022013#M15339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there are following functions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/101580i209DFE0A4F923448/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here is an example from hello world project:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/101581i6B621A8BAA63A9A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2020 06:29:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/PinMux-API-to-set-pin-mode-Output-Input/m-p/1022013#M15339</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2020-01-06T06:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: PinMux-API to set pin mode (Output/Input)</title>
      <link>https://community.nxp.com/t5/MPC5xxx/PinMux-API-to-set-pin-mode-Output-Input/m-p/1022014#M15340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; background-color: #ffffff; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 18.004px;"&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 18.004px;"&gt;Lukas Zadrapa,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #646464; background-color: #ffffff; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 18.004px;"&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;I'm trying to mimic I2C on MPC5775E using bitbang method. for that i need two gpio's(SCL,SDA) in which one is continued to be used as output, the other one has to be set as output and input during runtime to read the ACK signal from the slave.&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;for example&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;void I2C_out(unsigned char j) //I2C Output&lt;BR /&gt;{&lt;BR /&gt; int n;&lt;BR /&gt; unsigned char d;&lt;BR /&gt; d = j;&lt;/P&gt;&lt;P&gt;for(n = 0; n &amp;lt; 8; n++)&lt;BR /&gt; {&lt;BR /&gt; if ( (d &amp;amp; 0x80u) == 0x80u)&lt;BR /&gt; {&lt;BR /&gt; PINS_DRV_SetPins(ports[SDA_pin], (1 &amp;lt;&amp;lt; I2C[SDA]));&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; PINS_DRV_ClearPins(ports[SDA_pin], (1 &amp;lt;&amp;lt; I2C[SDA]));&lt;BR /&gt; }&lt;BR /&gt; d = (d &amp;lt;&amp;lt; 1);&lt;BR /&gt; PINS_DRV_ClearPins(ports[SCL_pin], (1 &amp;lt;&amp;lt; I2C[SCL]));&lt;BR /&gt; vTaskDelay(CMD_DELAY);&lt;BR /&gt; PINS_DRV_SetPins(ports[SCL_pin], (1 &amp;lt;&amp;lt; I2C[SCL]));&lt;BR /&gt; vTaskDelay(CMD_DELAY);&lt;BR /&gt; PINS_DRV_ClearPins(ports[SCL_pin], (1 &amp;lt;&amp;lt; I2C[SCL]));&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;// ? &lt;STRONG&gt;setPinModeInput(&amp;amp;MODULE_P15,5,IfxPort_InputMode_pullUp);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;PINS_DRV_SetPins(ports[SCL_pin], (1 &amp;lt;&amp;lt; I2C[SCL]));&lt;BR /&gt; while (PINS_DRV_ReadPins(ports[SDA_pin]) == 1);&lt;/P&gt;&lt;P&gt;// ? &lt;STRONG&gt;setPinModeOutput(&amp;amp;MODULE_P15,5,IfxPort_OutputMode_pushPull,IfxPort_OutputIdx_general);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;vTaskDelay(CMD_DELAY);&lt;BR /&gt; PINS_DRV_ClearPins(ports[SCL_pin], (1 &amp;lt;&amp;lt; I2C[SCL]));&lt;BR /&gt; vTaskDelay(CMD_DELAY);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; background-color: #ffffff; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 18.004px;"&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;I need to know whether there is any api to set PIN MODE in our s32ds. please reply if u can help me out.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2020 06:37:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/PinMux-API-to-set-pin-mode-Output-Input/m-p/1022014#M15340</guid>
      <dc:creator>bdharma96</dc:creator>
      <dc:date>2020-01-06T06:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: PinMux-API to set pin mode (Output/Input)</title>
      <link>https://community.nxp.com/t5/MPC5xxx/PinMux-API-to-set-pin-mode-Output-Input/m-p/1022015#M15341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the "mode" of GPIO is controlled by input buffer enable bit IBE and by output buffer enable bit (OBE) in SIU_PCRn registers. This can be done using the functions mentioned above. Notice output buffer and input buffer can be enabled at the same time.&lt;/P&gt;&lt;P&gt;And also notice that GPIO can be configured as open drain using ODE bit in SIU_PCRn register. So, in fact, you don't need to reconfigure the pins in runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2020 11:38:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/PinMux-API-to-set-pin-mode-Output-Input/m-p/1022015#M15341</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2020-01-06T11:38:49Z</dc:date>
    </item>
  </channel>
</rss>

