<?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のトピックUnable to read eTPU pin as input mode</title>
    <link>https://community.nxp.com/t5/MPC5xxx/Unable-to-read-eTPU-pin-as-input-mode/m-p/698549#M8735</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are using MPC5777C. S32DS v1.2.&lt;/P&gt;&lt;P&gt;We want to make&amp;nbsp;ETPUA4 pin 118 as an input.&lt;/P&gt;&lt;P&gt;We are using etpu GPIO code generated from etpu function selector as a reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have managed to make&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;ETPUA4&lt;/STRONG&gt; in output mode &amp;amp; able to make it high &amp;amp; low.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But when we confugure it in input mode. We are not able to read the pin status.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fs_etpu_init( my_etpu_config, (uint32_t *)etpu_code, sizeof(etpu_code), \&lt;BR /&gt; (uint32_t *)etpu_globals, sizeof(etpu_globals));&lt;/P&gt;&lt;P&gt;my_system_etpu_start();&lt;/P&gt;&lt;P&gt;SIU.PCR[118].B.IBE = 1; // ETPUA4 as an input pin&lt;BR /&gt; SIU.PCR[118].B.PA = 1; // primary function as ETPUA4&lt;/P&gt;&lt;P&gt;fs_etpu_gpio_init(4,FS_ETPU_PRIORITY_HIGH);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;fs_etpu_gpio_input_immed(4);&lt;BR /&gt; if(eTPU-&amp;gt;CHAN[4].SCR.B.IPS==1) // read status register&lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp;SIU.GPDO[154].B.PDOn = 1; // USER LED OFF&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp;SIU.GPDO[154].B.PDOn = 0; // USER led ON&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above is the code that we are using to read the pin status.&lt;/P&gt;&lt;P&gt;Please suggest if anything is missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Rahul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Oct 2017 06:15:32 GMT</pubDate>
    <dc:creator>rahulmankumbare</dc:creator>
    <dc:date>2017-10-05T06:15:32Z</dc:date>
    <item>
      <title>Unable to read eTPU pin as input mode</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Unable-to-read-eTPU-pin-as-input-mode/m-p/698549#M8735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are using MPC5777C. S32DS v1.2.&lt;/P&gt;&lt;P&gt;We want to make&amp;nbsp;ETPUA4 pin 118 as an input.&lt;/P&gt;&lt;P&gt;We are using etpu GPIO code generated from etpu function selector as a reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have managed to make&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;ETPUA4&lt;/STRONG&gt; in output mode &amp;amp; able to make it high &amp;amp; low.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But when we confugure it in input mode. We are not able to read the pin status.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fs_etpu_init( my_etpu_config, (uint32_t *)etpu_code, sizeof(etpu_code), \&lt;BR /&gt; (uint32_t *)etpu_globals, sizeof(etpu_globals));&lt;/P&gt;&lt;P&gt;my_system_etpu_start();&lt;/P&gt;&lt;P&gt;SIU.PCR[118].B.IBE = 1; // ETPUA4 as an input pin&lt;BR /&gt; SIU.PCR[118].B.PA = 1; // primary function as ETPUA4&lt;/P&gt;&lt;P&gt;fs_etpu_gpio_init(4,FS_ETPU_PRIORITY_HIGH);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;fs_etpu_gpio_input_immed(4);&lt;BR /&gt; if(eTPU-&amp;gt;CHAN[4].SCR.B.IPS==1) // read status register&lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp;SIU.GPDO[154].B.PDOn = 1; // USER LED OFF&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp;SIU.GPDO[154].B.PDOn = 0; // USER led ON&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above is the code that we are using to read the pin status.&lt;/P&gt;&lt;P&gt;Please suggest if anything is missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Rahul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 06:15:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Unable-to-read-eTPU-pin-as-input-mode/m-p/698549#M8735</guid>
      <dc:creator>rahulmankumbare</dc:creator>
      <dc:date>2017-10-05T06:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to read eTPU pin as input mode</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Unable-to-read-eTPU-pin-as-input-mode/m-p/698550#M8736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, it is needed to add&lt;/P&gt;&lt;P&gt;pinstate = fs_etpu_gpio_pin_history (4);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function fs_etpu_gpio_input_immed only latches the pin value into variable PINSTATE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 12:57:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Unable-to-read-eTPU-pin-as-input-mode/m-p/698550#M8736</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2017-10-06T12:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to read eTPU pin as input mode</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Unable-to-read-eTPU-pin-as-input-mode/m-p/698551#M8737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;Hi,&lt;/P&gt;&lt;P&gt;Now we have tried with following code but still pinstate variable haviong value &lt;STRONG&gt;0&lt;/STRONG&gt; only.&lt;/P&gt;&lt;P&gt;I am connecting a switch to GPIO1 &amp;amp; pressing it, so that value on GPIO1 gets changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while(1)&lt;BR /&gt; {&lt;BR /&gt; fs_etpu_gpio_input_immed (GPIO1);&lt;BR /&gt; while(eTPU-&amp;gt;CHAN[GPIO1].SCR.B.CIS == 0); /* wait for eTPU_A Channel 1 interrupt status bit to be set */&lt;BR /&gt; eTPU-&amp;gt;CHAN[GPIO1].SCR.B.CIS = 1;&lt;BR /&gt; eTPU-&amp;gt;CHAN[GPIO1].SCR.B.DTRS =1;&lt;/P&gt;&lt;P&gt;pinstate = fs_etpu_gpio_pin_history (GPIO1);&lt;/P&gt;&lt;P&gt;delay();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2017 07:08:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Unable-to-read-eTPU-pin-as-input-mode/m-p/698551#M8737</guid>
      <dc:creator>rahulmankumbare</dc:creator>
      <dc:date>2017-10-09T07:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to read eTPU pin as input mode</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Unable-to-read-eTPU-pin-as-input-mode/m-p/698552#M8738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And this way you don't see valid result in LSB bit of pinstate variable? Do you have properly setup SIU_PCR register for this pin?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 08:48:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Unable-to-read-eTPU-pin-as-input-mode/m-p/698552#M8738</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2017-10-10T08:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to read eTPU pin as input mode</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Unable-to-read-eTPU-pin-as-input-mode/m-p/698553#M8739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;SIU.PCR[118].B.IBE = 1; // ETPUA4 as an input pin&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;SIU.PCR[118].B.PA = 1; // primary function as ETPUA4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Above is the &lt;SPAN&gt;SIU_PCR register setting.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Rahul&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 11:32:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Unable-to-read-eTPU-pin-as-input-mode/m-p/698553#M8739</guid>
      <dc:creator>rahulmankumbare</dc:creator>
      <dc:date>2017-10-10T11:32:42Z</dc:date>
    </item>
  </channel>
</rss>

