<?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>ISR Question</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/23515/isr-question</link><description> 
I am trying to generate an interrupt when Timer2 overflows. I
cannot get the application to jump to my Timer2 ISR if I have serial
interrupts enabled, though. I make sure to clear my RI and TI bits in
my serial ISR. 

 
Is there anything else I&amp;#39;m overlooking</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: ISR Question</title><link>https://community.arm.com/thread/124553?ContentTypeID=1</link><pubDate>Mon, 31 Mar 2008 15:22:47 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a12beb4e-1d43-4e1a-85d4-2283d284f246</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
with the information you have provided, the problem can not
possibly exist. Thus something must be missing.&lt;/p&gt;

&lt;p&gt;
I guess you will have to post your code (no tabs and see above
&amp;quot;place source ......&amp;quot;)&lt;/p&gt;

&lt;p&gt;
Erik&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ISR Question</title><link>https://community.arm.com/thread/113786?ContentTypeID=1</link><pubDate>Mon, 31 Mar 2008 13:32:17 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:725f7587-c6c7-4ae7-a1b3-f986e2ba2974</guid><dc:creator>Paul Marley</dc:creator><description>&lt;p&gt;&lt;p&gt;
Sorry I miss read your reply. No my serial ISR is not huge. It
just reads the SBUF1 into a char array buffer and clears the RI pin.
My main loop then deals with the data.&lt;/p&gt;

&lt;p&gt;
Everything does work when T2 is set to high priority. Ideas?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ISR Question</title><link>https://community.arm.com/thread/100438?ContentTypeID=1</link><pubDate>Mon, 31 Mar 2008 13:22:35 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:3f5e55b7-b450-45e7-b6d1-a971e56c36e7</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;My Timer2 ISR .....&lt;/i&gt;&lt;br /&gt;
2) is your &lt;b&gt;serial&lt;/b&gt; ISR huge?&lt;/p&gt;

&lt;p&gt;
also, what happens if you set the T2 int to high priority? NOTE:
this will NOT be &amp;quot;the cure&amp;quot; it is a diagnostic measure.&lt;/p&gt;

&lt;p&gt;
Erik&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ISR Question</title><link>https://community.arm.com/thread/76138?ContentTypeID=1</link><pubDate>Mon, 31 Mar 2008 13:07:30 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:06d32ada-bc76-4315-8639-c39897182089</guid><dc:creator>Paul Marley</dc:creator><description>&lt;p&gt;&lt;p&gt;
Erik,&lt;/p&gt;

&lt;p&gt;
Thanks for the quick response.&lt;/p&gt;

&lt;p&gt;
Everything works when ES1 = 0 and I&amp;#39;m using Timer1 for UART baud
generation. My Timer2 ISR just sets a flag that is checked by the
main thread which then starts the ADC to get my voltage reading.
Nothing too complicated. No printf&amp;#39;s in either ISR&amp;#39;s.&lt;/p&gt;

&lt;p&gt;
Paul&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ISR Question</title><link>https://community.arm.com/thread/51646?ContentTypeID=1</link><pubDate>Mon, 31 Mar 2008 12:59:09 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d3bb323f-5454-4fd2-8a6f-c8e76b06b0b5</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;if I have serial interrupts enabled&lt;/i&gt;&lt;br /&gt;
I assume this means that it works when you do not enable the UART
ints.&lt;/p&gt;

&lt;p&gt;
1) you do not happen to use T2 for the UART&lt;br /&gt;
2) is your serial ISR huge?&lt;br /&gt;
3) if you have printf&amp;#39;s in an ISR get rid of them&lt;/p&gt;

&lt;p&gt;
Erik&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>