<?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中的主题 (LPC2148) Fast interrupt and vectored interrupt both from timer0 peripherial?</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2148-Fast-interrupt-and-vectored-interrupt-both-from-timer0/m-p/549691#M13874</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeHolt on Wed Sep 03 07:20:26 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to use a FIQ for a capture-event (Pin 0.2) along with FreeRTOS, which uses a vectored interrupt from timer0 for tick-generation. The LPC2148 manual states: Each peripheral device has one interrupt line connected to the Vectored Interrupt Controller, but may have several internal interrupt flags. So is it possible to register both a fast and a vectored interrupt for timer0? I tried that already but got system freezes. What I also tried was to modify portISR in the following way:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if ( T0IR &amp;amp; portTIMER_MATCH_ISR_BIT ) { ... }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;else { ... }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;which works, but is not accurate/fast enough. I also cannot switch FreeRTOS to use timer1 for the tick-generation, as timer1 is already used for different purposes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to know if I just have to try a little harder or give up the FIQ right away. Any help is greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:50:46 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:50:46Z</dc:date>
    <item>
      <title>(LPC2148) Fast interrupt and vectored interrupt both from timer0 peripherial?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2148-Fast-interrupt-and-vectored-interrupt-both-from-timer0/m-p/549691#M13874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeHolt on Wed Sep 03 07:20:26 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to use a FIQ for a capture-event (Pin 0.2) along with FreeRTOS, which uses a vectored interrupt from timer0 for tick-generation. The LPC2148 manual states: Each peripheral device has one interrupt line connected to the Vectored Interrupt Controller, but may have several internal interrupt flags. So is it possible to register both a fast and a vectored interrupt for timer0? I tried that already but got system freezes. What I also tried was to modify portISR in the following way:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if ( T0IR &amp;amp; portTIMER_MATCH_ISR_BIT ) { ... }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;else { ... }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;which works, but is not accurate/fast enough. I also cannot switch FreeRTOS to use timer1 for the tick-generation, as timer1 is already used for different purposes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to know if I just have to try a little harder or give up the FIQ right away. Any help is greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:50:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2148-Fast-interrupt-and-vectored-interrupt-both-from-timer0/m-p/549691#M13874</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:50:46Z</dc:date>
    </item>
  </channel>
</rss>

