<?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: S32K11x PORTA PIN2 interrupt</title>
    <link>https://community.nxp.com/t5/S32K/S32K11x-PORTA-PIN2-interrupt/m-p/1000083#M5927</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/shindeu66@gmail.com"&gt;shindeu66@gmail.com&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Could you please test each function separately?&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;PTA Interrupt&lt;/LI&gt;&lt;LI&gt;Transition to VLPS&lt;/LI&gt;&lt;LI&gt;PTA wakeup&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't tested the code but I see a few things:&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Why do you disable interrupts just before the MCU goes to VLPS?&lt;/LI&gt;&lt;LI&gt;As discussed here:&amp;nbsp;&lt;A href="https://community.nxp.com/thread/524303"&gt;S32K148 - switching between RUN and VLPS&lt;/A&gt;, don't use the Sleep-on-exit mode if you don't want the application to go back to VLPS again after the wake-up ISR.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Feb 2020 09:38:27 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2020-02-24T09:38:27Z</dc:date>
    <item>
      <title>S32K11x PORTA PIN2 interrupt</title>
      <link>https://community.nxp.com/t5/S32K/S32K11x-PORTA-PIN2-interrupt/m-p/1000080#M5924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ipr.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/103719iAD8ED21DA78AF6C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="ipr.JPG" alt="ipr.JPG" /&gt;&lt;/span&gt;Hello,&lt;/P&gt;&lt;P&gt;Mr. Daniel,&lt;/P&gt;&lt;P&gt;I have to configure for PORTA PIN 2 of s32k116, but it is not wake up through that port pin pressing.&lt;/P&gt;&lt;P&gt;Also in structure for NVIC max allowed index is 8 but in DMA_Interrupt_Mapping excel it mentioned 9.&lt;/P&gt;&lt;P&gt;Please tell me how to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;span class="lia-inline-image-display-wrapper" image-alt="s32kDMA.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/103664iBA2CD302D0ECC05F/image-size/large?v=v2&amp;amp;px=999" role="button" title="s32kDMA.JPG" alt="s32kDMA.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Shinde Umesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2020 11:22:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K11x-PORTA-PIN2-interrupt/m-p/1000080#M5924</guid>
      <dc:creator>shindeu66</dc:creator>
      <dc:date>2020-02-19T11:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: S32K11x PORTA PIN2 interrupt</title>
      <link>https://community.nxp.com/t5/S32K/S32K11x-PORTA-PIN2-interrupt/m-p/1000081#M5925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/shindeu66@gmail.com" rel="noopener noreferrer" target="_blank"&gt;shindeu66@gmail.com&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;On the S32K11x derivatives, there are single&amp;nbsp;ISER,&amp;nbsp;ICER,&amp;nbsp;ISPR,&amp;nbsp;ICPR registers and eight&amp;nbsp;IPR registers.&lt;/P&gt;&lt;P&gt;To enable the PORTA interrupt, you need to set the 9th bit of the ISER register.&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;S32_NVIC&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;ISER&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;9&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;IMG alt="pastedImage_3.png" src="https://community.nxp.com/t5/image/serverpage/image-id/102886iF62ECACE33CC0377/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_3.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Then, you can set its&amp;nbsp;priority in the IRQ1 bit-field of the IPR2 register.&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;S32_NVIC&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;IPR&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;S32_NVIC_IPR_PRI_1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;0b01000000&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;  &lt;SPAN class="comment token"&gt;// Priority level 1‍‍&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;As you can see below, there are only four priority levels.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;IMG alt="pastedImage_4.png" src="https://community.nxp.com/t5/image/serverpage/image-id/102916i5C8B02BFFD8B7F31/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_4.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the interrupt does not work in RUN, please share a test project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;BR, Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 14:32:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K11x-PORTA-PIN2-interrupt/m-p/1000081#M5925</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-11-02T14:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: S32K11x PORTA PIN2 interrupt</title>
      <link>https://community.nxp.com/t5/S32K/S32K11x-PORTA-PIN2-interrupt/m-p/1000082#M5926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Mr. daniel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sending you a sample project in the attachment.&lt;/P&gt;&lt;P&gt;The functionality I want to design is when switch PTA1 is detected mcu should go to VLPS mode.&lt;/P&gt;&lt;P&gt;after entering&amp;nbsp;VLPS if PTA2 is detected mcu should come back to normal run mode.&lt;/P&gt;&lt;P&gt;please have look and tell me the changes required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shinde Umesh&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/open?id=1wo5sQhsZhAzqZ9E4AHkUnb4utiz79DxR"&gt;https://drive.google.com/open?id=1wo5sQhsZhAzqZ9E4AHkUnb4utiz79DxR&lt;/A&gt;&lt;A href="https://drive.google.com/open?id=1wo5sQhsZhAzqZ9E4AHkUnb4utiz79DxR"&gt;lowpoerr&lt;/A&gt;&lt;A href="https://drive.google.com/open?id=1wo5sQhsZhAzqZ9E4AHkUnb4utiz79DxR"&gt;https://drive.google.com/open?id=1wo5sQhsZhAzqZ9E4AHkUnb4utiz79DxR&lt;/A&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="vlps.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/102629i16743C8B5F5DE917/image-size/large?v=v2&amp;amp;px=999" role="button" title="vlps.JPG" alt="vlps.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Feb 2020 05:18:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K11x-PORTA-PIN2-interrupt/m-p/1000082#M5926</guid>
      <dc:creator>shindeu66</dc:creator>
      <dc:date>2020-02-22T05:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: S32K11x PORTA PIN2 interrupt</title>
      <link>https://community.nxp.com/t5/S32K/S32K11x-PORTA-PIN2-interrupt/m-p/1000083#M5927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/shindeu66@gmail.com"&gt;shindeu66@gmail.com&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Could you please test each function separately?&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;PTA Interrupt&lt;/LI&gt;&lt;LI&gt;Transition to VLPS&lt;/LI&gt;&lt;LI&gt;PTA wakeup&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't tested the code but I see a few things:&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Why do you disable interrupts just before the MCU goes to VLPS?&lt;/LI&gt;&lt;LI&gt;As discussed here:&amp;nbsp;&lt;A href="https://community.nxp.com/thread/524303"&gt;S32K148 - switching between RUN and VLPS&lt;/A&gt;, don't use the Sleep-on-exit mode if you don't want the application to go back to VLPS again after the wake-up ISR.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2020 09:38:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K11x-PORTA-PIN2-interrupt/m-p/1000083#M5927</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-02-24T09:38:27Z</dc:date>
    </item>
  </channel>
</rss>

