<?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>topic Re: NVIC, setting priority in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/NVIC-setting-priority/m-p/514108#M527</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Tue Dec 30 14:49:08 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;User manual is describing 32bit IPR registers, LPCOpen is using 8bit IP registers&amp;nbsp; :~&amp;nbsp; :~ &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Peripheral view is also showing this 8bit structure...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So if you use:&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;UART1_IRQn&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 22
SCT3_IRQn&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 19
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you should look at bit 5..7 of 8bit IP[19] and IP[22]&amp;nbsp;&amp;nbsp; &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps we'll see additional IRQ names in a future LPCXpresso version&amp;nbsp;&amp;nbsp; &lt;SPAN class="lia-unicode-emoji" title=":winking_face:"&gt;&lt;LI-EMOJI id="lia_winking-face" title=":winking_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;See also: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Flpc15-ipr-confusion" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.lpcware.com/content/forum/lpc15-ipr-confusion&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:10:12 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:10:12Z</dc:date>
    <item>
      <title>NVIC, setting priority</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NVIC-setting-priority/m-p/514104#M523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by DennisFrie on Tue Dec 30 11:14:09 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi guys&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to get my head around the interrupt priorities on LPC15xx. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In its most basic form, I have an interrupt from a timer, and an interrupt triggering on UART receive. The timer interrupt is fairly long and causes a lost char at high baud-rates, if the UART-interrupt is not triggered while in the timer interrupt. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Preferably, I would just set the UART receive interrupt with higher priority, but it doesn't seem to make any difference. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Both UART interrupt and the timer interrupt works as intended (except for the priority).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From my understanding, the interrupt priority can simply be set using the NVIC_SetPriority?&lt;/SPAN&gt;&lt;BR /&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(SCT3_IRQn, 2); // Low priority on timer
NVIC_SetPriority(UART1_IRQn, 1); // Higher priority on UART 
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- but it doesn't seem to make any difference. Have I missed something obvious here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:10:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NVIC-setting-priority/m-p/514104#M523</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: NVIC, setting priority</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NVIC-setting-priority/m-p/514105#M524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Tue Dec 30 13:17:27 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: DennisFrie&lt;/STRONG&gt;&lt;BR /&gt;From my understanding, the interrupt priority can simply be set using the NVIC_SetPriority?&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes&amp;nbsp; :) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: DennisFrie&lt;/STRONG&gt;&lt;BR /&gt;Have I missed something obvious here?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If debugger is showing your IPR values, no&amp;nbsp; :(( &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:10:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NVIC-setting-priority/m-p/514105#M524</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: NVIC, setting priority</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NVIC-setting-priority/m-p/514106#M525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by DennisFrie on Tue Dec 30 14:02:28 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for pointing out the obvious thing to check first - as it turns out, the bit haven't been set. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[img]&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fdl.dropboxusercontent.com%2Fu%2F3947315%2FInterruptPriority.png%5B%2Fimg%5D" rel="nofollow" target="_blank"&gt;https://dl.dropboxusercontent.com/u/3947315/InterruptPriority.png[/img]&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Oh well, time to debug...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:10:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NVIC-setting-priority/m-p/514106#M525</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: NVIC, setting priority</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NVIC-setting-priority/m-p/514107#M526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by DennisFrie on Tue Dec 30 14:23:05 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking at the function, it seems to be SCB -&amp;gt; SHP and NVIC -&amp;gt; IP that's used. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SHP is commented as "System hanbdlers priority registers and IP as Interrupt priority register - but IP is saved as an 8 bit value...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; __IO uint8_t&amp;nbsp; IP[240];&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;lt; Offset: 0x300 (R/W)&amp;nbsp; Interrupt Priority Register (8Bit wide) */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
__STATIC_INLINE void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority)
{
&amp;nbsp; if(IRQn &amp;lt; 0) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; SCB-&amp;gt;SHP[((uint32_t)(IRQn) &amp;amp; 0xF)-4] = ((priority &amp;lt;&amp;lt; (8 - __NVIC_PRIO_BITS)) &amp;amp; 0xff); } /* set Priority for Cortex-M&amp;nbsp; System Interrupts */
&amp;nbsp; else {
&amp;nbsp;&amp;nbsp;&amp;nbsp; NVIC-&amp;gt;IP[(uint32_t)(IRQn)] = ((priority &amp;lt;&amp;lt; (8 - __NVIC_PRIO_BITS)) &amp;amp; 0xff);&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* set Priority for device specific Interrupts&amp;nbsp; */
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:10:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NVIC-setting-priority/m-p/514107#M526</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: NVIC, setting priority</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NVIC-setting-priority/m-p/514108#M527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Tue Dec 30 14:49:08 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;User manual is describing 32bit IPR registers, LPCOpen is using 8bit IP registers&amp;nbsp; :~&amp;nbsp; :~ &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Peripheral view is also showing this 8bit structure...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So if you use:&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;UART1_IRQn&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 22
SCT3_IRQn&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 19
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you should look at bit 5..7 of 8bit IP[19] and IP[22]&amp;nbsp;&amp;nbsp; &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps we'll see additional IRQ names in a future LPCXpresso version&amp;nbsp;&amp;nbsp; &lt;SPAN class="lia-unicode-emoji" title=":winking_face:"&gt;&lt;LI-EMOJI id="lia_winking-face" title=":winking_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;See also: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Flpc15-ipr-confusion" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.lpcware.com/content/forum/lpc15-ipr-confusion&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:10:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NVIC-setting-priority/m-p/514108#M527</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: NVIC, setting priority</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NVIC-setting-priority/m-p/514109#M528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by DennisFrie on Tue Dec 30 14:59:32 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Yup, what I figured - but using the IP doesn't quite seem to work as expected..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Only writing to certain IP-indexes seems to make a difference. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As an example. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Before seting IP[19]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[img]&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fdl.dropboxusercontent.com%2Fu%2F3947315%2FStep1.png%5B%2Fimg%5D" rel="nofollow" target="_blank"&gt;https://dl.dropboxusercontent.com/u/3947315/Step1.png[/img]&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After seting IP[19] - no difference at all&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[img]&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fdl.dropboxusercontent.com%2Fu%2F3947315%2FStep2.png%5B%2Fimg%5D" rel="nofollow" target="_blank"&gt;https://dl.dropboxusercontent.com/u/3947315/Step2.png[/img]&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After seting IP[20] - value changed..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[img]&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fdl.dropboxusercontent.com%2Fu%2F3947315%2FStep3.png%5B%2Fimg%5D" rel="nofollow" target="_blank"&gt;https://dl.dropboxusercontent.com/u/3947315/Step3.png[/img]&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I feel stupid - but I've no idea what's going on...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Only IP[16], IP[20] etc. seems to make a difference - I guess IP[0], IP[4] etc. would work too. hmm&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:10:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NVIC-setting-priority/m-p/514109#M528</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: NVIC, setting priority</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NVIC-setting-priority/m-p/514110#M529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Tue Dec 30 15:06:42 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: DennisFrie&lt;/STRONG&gt;&lt;BR /&gt;I feel stupid - but I've no idea what's going on...&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You are not showing the correct peripheral view registers&amp;nbsp; :) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;While changing&amp;nbsp; SCT3_IRQn / 19 you are not showing IP19 (which is named incorrect IPR19 in Peripheral view)...&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:10:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NVIC-setting-priority/m-p/514110#M529</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: NVIC, setting priority</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NVIC-setting-priority/m-p/514111#M530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by DennisFrie on Tue Dec 30 15:18:50 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If that's the case, how come NVIC_IPR5 changes, when writing to IP[20]?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking at NVIC_IPR19 while writing IP[19] gives the same result, no change. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Running a quick for-loop and changing 40 indexes, only 9 changes. Looks a lot like only the first 8 bits can be written when using the IP access.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[img]&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fdl.dropboxusercontent.com%2Fu%2F3947315%2FOnlyChangesSome.png%5B%2Fimg%5D" rel="nofollow" target="_blank"&gt;https://dl.dropboxusercontent.com/u/3947315/OnlyChangesSome.png[/img]&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:10:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NVIC-setting-priority/m-p/514111#M530</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: NVIC, setting priority</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NVIC-setting-priority/m-p/514112#M531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Tue Dec 30 15:45:42 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry, can't follow you&amp;nbsp; &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Changing IRQ 19 / 20 / 22&amp;nbsp; is changing IP[] here as expected&amp;nbsp; :(( &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And a loop is changing them all to 0xe0...&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;for(i=0; i&amp;lt;40;i++)
 {
&amp;nbsp; NVIC-&amp;gt;IP&lt;I&gt; = 0xFF;
 }
&lt;/I&gt;&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which LPCXpresso version are you using?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:10:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NVIC-setting-priority/m-p/514112#M531</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: NVIC, setting priority</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NVIC-setting-priority/m-p/514113#M532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by DennisFrie on Tue Dec 30 16:13:08 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Changing as expected? Writing 0xFF 4 times to a 32 bit register, I would expect to see 0xFFFFFFFF when done? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If IP[0] = NVIC_IPR0, IP[1] = NVIC_IPR1 etc. I would expect the for-loop with 40 runs, to update more than 10 NVIC_IPRx values. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using LPCxpresso 7.2. I can see quite a few changes have been made since, also some related to NVIC vectors and the viewer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would probably be a good idea to upgrade, but as the firmware is used in production, it's a PITA to go through all the firmware verification when upgrading&amp;nbsp; :p &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:10:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NVIC-setting-priority/m-p/514113#M532</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: NVIC, setting priority</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NVIC-setting-priority/m-p/514114#M533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Tue Dec 30 16:54:42 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure what version 7.2 is doing&amp;nbsp; :bigsmile: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Version 7.5 is working correct here (except that Peripheral view is still showing IPR[] instead IP[])... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would strongly recommend to update (at least to verify your problem)...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:10:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NVIC-setting-priority/m-p/514114#M533</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: NVIC, setting priority</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NVIC-setting-priority/m-p/514115#M534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by DennisFrie on Wed Dec 31 06:07:03 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;OK, thanks a lot for your time and help. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll give the new version of LpcXpresso a try next year - probably tomorrow, if the hangover is acceptable&amp;nbsp; ;-) &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:10:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NVIC-setting-priority/m-p/514115#M534</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: NVIC, setting priority</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NVIC-setting-priority/m-p/514116#M535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Wed Dec 31 13:47:36 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: DennisFrie&lt;/STRONG&gt;&lt;BR /&gt;I'll give the new version of LpcXpresso a try next year - probably tomorrow, if the hangover is acceptable&amp;nbsp; ;-)&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good news for your hangover&amp;nbsp;&amp;nbsp; :D &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your problem is a version 7.2 Peripheral view problem. Version 7.5 is working without problems&amp;nbsp; :) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NVIC view is showing the first byte of the word (IPR), not every byte (IP). So we don't see 3 of 4 bytes...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A workaround in 7.2 is to add an Memory monitor with address 0xe000e400 = IP[0] and change &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Format... -&amp;gt; Column size&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to 1 (=bytes).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now you can see how the loop is filling IP[] bytes&amp;nbsp; :bigsmile: &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:10:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NVIC-setting-priority/m-p/514116#M535</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: NVIC, setting priority</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NVIC-setting-priority/m-p/514117#M536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by DennisFrie on Thu Jan 01 10:03:38 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I updated to version 7.5 today and register-view makes a lot more sense now&amp;nbsp; ;-) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That cleared up the issue of actually verifying the register-settings. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been testing quite a bit today and have to admit - that the issue was related to another 5 Hz task-routine, that temporarily disabled all interrupts, effectively resulting in a lost char (I know, kinda embarrassing)....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That should do it and everything now seems to be working as intended. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I sure appreciate the help, much appreciated&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:10:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NVIC-setting-priority/m-p/514117#M536</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:10:17Z</dc:date>
    </item>
  </channel>
</rss>

