<?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のトピックHow to set Interrupt priorities in CortexM0 plus (KEA-128)?</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-set-Interrupt-priorities-in-CortexM0-plus-KEA-128/m-p/606923#M35804</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I want to Change the Interrupt priority of KEA-128? Can you tell me How to do it ???&lt;/P&gt;&lt;P&gt;I got to know from datasheet that I have to write a value to NVIC_IPR2 register but how and what value to be written is not clearly given ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you Explain this with an uart interrupt as an example and say how to write and which registers to write for it???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Oct 2016 18:51:43 GMT</pubDate>
    <dc:creator>vigneshbalaji</dc:creator>
    <dc:date>2016-10-26T18:51:43Z</dc:date>
    <item>
      <title>How to set Interrupt priorities in CortexM0 plus (KEA-128)?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-set-Interrupt-priorities-in-CortexM0-plus-KEA-128/m-p/606923#M35804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I want to Change the Interrupt priority of KEA-128? Can you tell me How to do it ???&lt;/P&gt;&lt;P&gt;I got to know from datasheet that I have to write a value to NVIC_IPR2 register but how and what value to be written is not clearly given ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you Explain this with an uart interrupt as an example and say how to write and which registers to write for it???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 18:51:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-set-Interrupt-priorities-in-CortexM0-plus-KEA-128/m-p/606923#M35804</guid>
      <dc:creator>vigneshbalaji</dc:creator>
      <dc:date>2016-10-26T18:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to set Interrupt priorities in CortexM0 plus (KEA-128)?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-set-Interrupt-priorities-in-CortexM0-plus-KEA-128/m-p/606924#M35805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vignesh,&lt;/P&gt;&lt;P&gt;I suggest that you are using the CMSIS API to set the interrupt priorities, the API is&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;CODE class=""&gt;void&lt;/CODE&gt; &lt;CODE class=""&gt;NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority);&lt;/CODE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are not familiar with the ARM NVIC and interrupt system and API, I recommend you have a look e.g. at &lt;A class="link-titled" href="https://mcuoneclipse.com/2016/08/14/arm-cortex-m-interrupts-and-freertos-part-1/" title="https://mcuoneclipse.com/2016/08/14/arm-cortex-m-interrupts-and-freertos-part-1/"&gt;https://mcuoneclipse.com/2016/08/14/arm-cortex-m-interrupts-and-freertos-part-1/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 05:26:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-set-Interrupt-priorities-in-CortexM0-plus-KEA-128/m-p/606924#M35805</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2016-10-27T05:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to set Interrupt priorities in CortexM0 plus (KEA-128)?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-set-Interrupt-priorities-in-CortexM0-plus-KEA-128/m-p/606925#M35806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One thing to note about the CMSIS API is that it doesn't make it 'obvious' what the 'range' of priority values needs to be. &amp;nbsp;You will find that for these M0-core devices you have 0,1,2 and 3 to work with -- lower numbers, higher priority. &amp;nbsp;That is, the API 'shifts' the supplied priority into the available 'upper bits' of the NVIC architecture:&lt;/P&gt;&lt;P&gt;SCB-&amp;gt;SHP[_SHP_IDX(IRQn)] = ((uint32_t)(SCB-&amp;gt;SHP[_SHP_IDX(IRQn)] &amp;amp; ~(0xFFUL &amp;lt;&amp;lt; _BIT_SHIFT(IRQn))) |&lt;BR /&gt; (((priority &amp;lt;&amp;lt; (8U - __NVIC_PRIO_BITS)) &amp;amp; (uint32_t)0xFFUL) &amp;lt;&amp;lt; _BIT_SHIFT(IRQn)));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 12:59:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-set-Interrupt-priorities-in-CortexM0-plus-KEA-128/m-p/606925#M35806</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2016-10-28T12:59:25Z</dc:date>
    </item>
  </channel>
</rss>

