<?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>LPCXpresso IDE中的主题 Re: Default interrupt priority is high?</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Default-interrupt-priority-is-high/m-p/582706#M25544</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Wed Oct 10 04:40:44 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;[FONT=Tahoma][SIZE=1]Clearly, you are expected to design your own priority assignments for the interrupts you want.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and assign them in your startup code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Non-enabled interrupts will not matter, but you may want to set [I]all[/I] priorities to 31 (the lowest)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at startup in case of oversights in your (or library) code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do not forget to set a priority for the SysTick handler (and the other 'system' handlers) if used;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;they use a different mechanism for setting priorities, but the CMSIS library funtion handles&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;these also (use negative interrupt id's).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps, Mike&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][/FONT]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 00:03:42 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T00:03:42Z</dc:date>
    <item>
      <title>Default interrupt priority is high?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Default-interrupt-priority-is-high/m-p/582705#M25543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by micrio on Tue Oct 09 10:07:52 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Apparently the default interrupt priority is set to the maximum; 0.&amp;nbsp;&amp;nbsp; The interrupt&amp;nbsp; priority registers 0-7 are all reset to zero.&amp;nbsp;&amp;nbsp; This sets all interrupts to maximum priority.&amp;nbsp;&amp;nbsp; Thus there is no use in;&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;NVIC_SetPriority(EINT2_IRQn, 0);&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;SPAN&gt;unless you set everything else to a lower priority.&amp;nbsp;&amp;nbsp; I have been banging my head on this for a while, now I know.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:03:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Default-interrupt-priority-is-high/m-p/582705#M25543</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Default interrupt priority is high?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Default-interrupt-priority-is-high/m-p/582706#M25544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Wed Oct 10 04:40:44 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;[FONT=Tahoma][SIZE=1]Clearly, you are expected to design your own priority assignments for the interrupts you want.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and assign them in your startup code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Non-enabled interrupts will not matter, but you may want to set [I]all[/I] priorities to 31 (the lowest)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at startup in case of oversights in your (or library) code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do not forget to set a priority for the SysTick handler (and the other 'system' handlers) if used;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;they use a different mechanism for setting priorities, but the CMSIS library funtion handles&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;these also (use negative interrupt id's).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps, Mike&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][/FONT]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:03:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Default-interrupt-priority-is-high/m-p/582706#M25544</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:03:42Z</dc:date>
    </item>
  </channel>
</rss>

