<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>[LPC2129] nested interrupts with RealView</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/24999/lpc2129-nested-interrupts-with-realview</link><description> 
Hello everyone, this is my first time I&amp;#39;m programming any
microcontroller, my task is probably quite simple - I have to use
nested interrupts. I&amp;#39;m using interrupt from Timer0 nad ADC. I have to
run ADC interrupt during executing Timer0 ISR. I&amp;#39;ve read</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: [LPC2129] nested interrupts with RealView</title><link>https://community.arm.com/thread/114804?ContentTypeID=1</link><pubDate>Fri, 27 Mar 2009 08:32:55 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c1735281-9136-42a5-86a1-7a0bfafb4b5e</guid><dc:creator>Kris Grooby</dc:creator><description>&lt;p&gt;&lt;p&gt;
Maybe I should change something in startup? If yes - how?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [LPC2129] nested interrupts with RealView</title><link>https://community.arm.com/thread/101753?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2009 10:46:31 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:17167045-ee93-47ce-8894-c4c2c1f54c67</guid><dc:creator>Kris Grooby</dc:creator><description>&lt;p&gt;&lt;p&gt;
Unfortunately I still can&amp;#39;t write correct and working code. Now
interrupt from ADC has higher priority than Timer0, but it isn&amp;#39;t
launched during interrupt from timer.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [LPC2129] nested interrupts with RealView</title><link>https://community.arm.com/thread/77293?ContentTypeID=1</link><pubDate>Tue, 24 Mar 2009 11:24:28 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:5bffd72d-85b6-4d15-bdac-fab2dbcdb1d8</guid><dc:creator>Kris Grooby</dc:creator><description>&lt;p&gt;&lt;p&gt;
Thanks for fast reply. &amp;quot;I have to&amp;quot; because my teacher wannts me to
do it in this way. I hope your suggestion will help. I&amp;#39;ll be able to
verify it tomorrow in school.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [LPC2129] nested interrupts with RealView</title><link>https://community.arm.com/thread/55699?ContentTypeID=1</link><pubDate>Tue, 24 Mar 2009 11:04:24 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:90d39b44-2e8f-47db-ba87-7a2325036576</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
First off, you say you have to use nested interrupts, but do not
explain why. &amp;quot;Have to&amp;quot; is a very common description for problems
where the poster in reality do not &amp;quot;have to&amp;quot;, but are quickly running
in the wrong direction caused by an earlier incorrect
decision/assumption. Always motivating your requests can greatly
improve the quality of the answers you receive.&lt;/p&gt;

&lt;p&gt;
Secondly, the VIC irq slot 0 (your timer) has higher priority than
VIC irq slot 1 (your ADC). Why not give the ADC the higher priority
if you want it to win over the timer.&lt;/p&gt;

&lt;p&gt;
But if you have only two interrupts, you specify that one FIQ
(Fast Interrupt reQuest) in which case it can directly interrupt
without the overhead of you manually allowing nesting interrupts. A
FIQ handler will have the best possible response time.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>