<?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>LPC MicrocontrollersのトピックRe: LPC1857 NVIC Priority Registers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-NVIC-Priority-Registers/m-p/533026#M10544</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by SteveO on Thu Apr 16 05:53:30 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the link.&amp;nbsp; I calculated that IPR0-IPR13 would be needed to support the interrupts implemented on the LPC1857.&amp;nbsp; Using a JTAG debugger, I have discovered it is possible to write and read back as high as IPR15.&amp;nbsp; IPR16 and higher do not seem to be implemented.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be good for NXP to correct Table 73 in the next revision of UM10430.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:19:34 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:19:34Z</dc:date>
    <item>
      <title>LPC1857 NVIC Priority Registers</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-NVIC-Priority-Registers/m-p/533024#M10542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by SteveO on Wed Apr 15 16:49:49 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Having difficulty figuring out the NVIC interrupt priority registers on the LPC1857.&amp;nbsp; I'm not using CMSIS or other library code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The LPC1857 User Manual (rev 2.6) says the NVIC supports 53 vectored interrupts.&amp;nbsp; Table 73 shows eight priority registers (IPR0-IPR7).&amp;nbsp; According to Table 73, "Each register contains the 3-bit priority fields for 4 interrupts."&amp;nbsp; 8 * 4 = 32, which is less than the 53 interrupts supported by the chip.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I peeked at CMSIS and other library code, and it looks like there are really more than 8 NVIC IPR registers.&amp;nbsp;&amp;nbsp; I think there are really registers IPR0-IPR13 and the datasheet is wrong where it says there is only IPR0-IPR7.&amp;nbsp; Can anyone confirm this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:19:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-NVIC-Priority-Registers/m-p/533024#M10542</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1857 NVIC Priority Registers</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-NVIC-Priority-Registers/m-p/533025#M10543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by starblue on Wed Apr 15 23:35:09 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The NVIC is part of the core, so you should better look at ARM documentation for that:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Finfocenter.arm.com%2Fhelp%2Ftopic%2Fcom.arm.doc.dui0552a%2FCihgjeed.html" rel="nofollow" target="_blank"&gt;http://infocenter.arm.com/help/topic/com.arm.doc.dui0552a/Cihgjeed.html&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In a nutshell, there are up to 60 of these registers for up to 240 interrupts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Personally I prefer CMSIS functions for core functionality like this, it is standardized across Cortex-M and works well in my experience.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:19:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-NVIC-Priority-Registers/m-p/533025#M10543</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1857 NVIC Priority Registers</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-NVIC-Priority-Registers/m-p/533026#M10544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by SteveO on Thu Apr 16 05:53:30 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the link.&amp;nbsp; I calculated that IPR0-IPR13 would be needed to support the interrupts implemented on the LPC1857.&amp;nbsp; Using a JTAG debugger, I have discovered it is possible to write and read back as high as IPR15.&amp;nbsp; IPR16 and higher do not seem to be implemented.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be good for NXP to correct Table 73 in the next revision of UM10430.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:19:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-NVIC-Priority-Registers/m-p/533026#M10544</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1857 NVIC Priority Registers</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-NVIC-Priority-Registers/m-p/533027#M10545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by starblue on Thu Apr 16 06:35:31 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: SteveO&lt;/STRONG&gt;&lt;BR /&gt;I have discovered it is possible to write and read back as high as IPR15.&amp;nbsp; IPR16 and higher do not seem to be implemented.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, interrupts are implemented in groups of 32 (mostly). There is a register ICTR which tells you how many groups there are, see "ARM v7-M Architecture Reference Manual" DDI0403.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And from "The Definitive Guide to ARM Cortex -M3 and Cortex-M4 Processors", 3rd Edition by Joseph Yiu:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"you can obtain the exact number of interrupts available by writing to interrupt control registers such as interrupt enable/pending registers while the PRIMASK register is set (to disable the interrupt from taking place), and read back to see exactly how many bits are implemented in the interrupt enable/pending registers."&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:19:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-NVIC-Priority-Registers/m-p/533027#M10545</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:19:35Z</dc:date>
    </item>
  </channel>
</rss>

