<?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>interrupt</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/23782/interrupt</link><description> 
Why the program don&amp;#39;t enter in this intrrerupt?? 

 
this is my code 

 
void timer0_isr (void) interrupt 1 using 1
{
 int a=0,c;
 a++;
 // ram[a] = din(7);
c=9;
 if (a &amp;gt; 10) a=0;
}
 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: interrupt</title><link>https://community.arm.com/thread/144400?ContentTypeID=1</link><pubDate>Tue, 20 May 2008 09:30:19 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:59c75311-8832-44f0-bfc4-a71b78ef108a</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
that you SHOUT does not make it better to state your question in
an unrelated thread.&lt;/p&gt;

&lt;p&gt;
Erik&lt;/p&gt;

&lt;p&gt;
PS your question does not make sense repost in a new thread not
using CAPITALS and do remember &amp;quot;more words do not make you appear
stupid, they make you appear precise&amp;quot;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: interrupt</title><link>https://community.arm.com/thread/142013?ContentTypeID=1</link><pubDate>Tue, 20 May 2008 08:22:30 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ed47cc15-7310-4518-aa30-e4294e033555</guid><dc:creator>SHARIN POLKAY</dc:creator><description>&lt;p&gt;&lt;p&gt;
HOW CAN I LINK THE SOFTWARE WITH THE COMPILER?OR IS IT A BETTER
ONE?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: interrupt</title><link>https://community.arm.com/thread/138779?ContentTypeID=1</link><pubDate>Tue, 20 May 2008 06:13:56 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:635cf234-e44e-4e37-abe1-cab06a1ccd7d</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Quite interesting initialization.&lt;/p&gt;

&lt;p&gt;
Don&amp;#39;t you think that TH0 should be loaded with the &lt;b&gt;high&lt;/b&gt;
part of PERIOD and TL0 with the &lt;b&gt;low&lt;/b&gt; part? You initialize the
two registers with the same value...&lt;/p&gt;

&lt;p&gt;
By the way - if you have code that doesn&amp;#39;t work too well (which is
the reason that you ask for help), it may be a good idea to document
your code lines. Or are you saying that it is 100% obvious what TR0 =
1 means? And 6 months from now you will still instantly recall why
you assign the value 1? Or what the flag 0x02 menas that you assign
to TMOD?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: interrupt</title><link>https://community.arm.com/thread/135386?ContentTypeID=1</link><pubDate>Tue, 20 May 2008 06:04:16 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:1979ad0a-ad07-40ea-8673-f0d0da2f8fcf</guid><dc:creator>rotar tutzu</dc:creator><description>&lt;p&gt;&lt;pre&gt;
.
TH0 = (unsigned char) PERIOD;
  TL0 = (unsigned char) PERIOD;
  TMOD = TMOD | 0x02;
  TR0 = 1;
  ET0 = 1;
  EAL = 1;
&lt;/pre&gt;

&lt;p&gt;
.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: interrupt</title><link>https://community.arm.com/thread/124678?ContentTypeID=1</link><pubDate>Tue, 20 May 2008 05:23:08 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e08ec210-e297-4e86-8910-861b3c3abb2d</guid><dc:creator>Catcus Blip</dc:creator><description>&lt;p&gt;&lt;p&gt;
this is an isr (=&lt;b&gt;i&lt;/b&gt;nterrupt &lt;b&gt;s&lt;/b&gt;ervice
&lt;b&gt;r&lt;/b&gt;outine):&lt;/p&gt;

&lt;pre&gt;
void timer0_&lt;b&gt;isr&lt;/b&gt; (void) interrupt 1 using 1
{
 int a=0,c;
 a++;
    // ram[a] = din(7);
c=9;
 if (a &amp;gt; 10) a=0;
}
&lt;/pre&gt;

&lt;p&gt;
now post the code that initializes the timer, please.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: interrupt</title><link>https://community.arm.com/thread/113952?ContentTypeID=1</link><pubDate>Tue, 20 May 2008 05:20:21 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:8614abcc-8102-44e6-b730-841bfe79a064</guid><dc:creator>rotar tutzu</dc:creator><description>&lt;p&gt;&lt;p&gt;
WHAT is ISR?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: interrupt</title><link>https://community.arm.com/thread/100683?ContentTypeID=1</link><pubDate>Tue, 20 May 2008 04:52:55 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d4aca17e-96e3-4111-8295-5e88567397de</guid><dc:creator>Catcus Blip</dc:creator><description>&lt;p&gt;&lt;p&gt;
it is probably incorrect, which is why I asked you to show the
initialization code - not the ISR itself.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: interrupt</title><link>https://community.arm.com/thread/76317?ContentTypeID=1</link><pubDate>Tue, 20 May 2008 04:33:31 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:acc9317d-14b4-4f41-a3d3-71e08f64978a</guid><dc:creator>rotar tutzu</dc:creator><description>&lt;p&gt;&lt;p&gt;
is corect?&lt;br /&gt;
or i must write more???&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: interrupt</title><link>https://community.arm.com/thread/113958?ContentTypeID=1</link><pubDate>Tue, 20 May 2008 04:25:25 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f4186980-f60c-4f7e-9947-7ca7e65f6405</guid><dc:creator>rotar tutzu</dc:creator><description>&lt;p&gt;&lt;p&gt;
the code is this&lt;/p&gt;

&lt;pre&gt;
// Set Timer0 for the fix rate 1464.8 Hz = 12MHz / 2^13

//       TL0 = 0x27;
//      TH0 = 0xF1;
TMOD = 1;
ET0 = ON;  // Timer 0 Interrupt on
TR0 = ON;   // Timer 0 start
&lt;/pre&gt;

&lt;p&gt;
.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: interrupt</title><link>https://community.arm.com/thread/49925?ContentTypeID=1</link><pubDate>Tue, 20 May 2008 04:25:00 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d7366d8f-37f4-4ff2-8981-ff03a180ffb8</guid><dc:creator>Catcus Blip</dc:creator><description>&lt;p&gt;&lt;p&gt;
rotar,&lt;br /&gt;
You probably misconfigured your timer. Who don&amp;#39;t you show us the code
that does that?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: interrupt</title><link>https://community.arm.com/thread/100680?ContentTypeID=1</link><pubDate>Tue, 20 May 2008 04:16:46 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:aff0c0c5-ceab-4a2f-a8cf-858474509d56</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
If the processor never enters the interrupt routine, then the
error IS NOT inte the interrupt service routine, hence not in the
code you have posted.&lt;/p&gt;

&lt;p&gt;
Yes, your ISR can be buggy, but the reason why it isn&amp;#39;t run is
somewhere else!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: interrupt</title><link>https://community.arm.com/thread/76315?ContentTypeID=1</link><pubDate>Tue, 20 May 2008 03:37:06 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:64b35368-09f1-411f-95f8-150f68f83137</guid><dc:creator>rotar tutzu</dc:creator><description>&lt;p&gt;&lt;p&gt;
i write that value for c and i see the program canot execute
this&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: interrupt</title><link>https://community.arm.com/thread/51778?ContentTypeID=1</link><pubDate>Tue, 20 May 2008 03:34:30 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b40fddc5-7759-410e-98f3-abf454b75bbf</guid><dc:creator>Christoph Franck</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;Why the program don&amp;#39;t enter in this intrrerupt??&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
If your program never enters the interrupt service routine, how
are we supposed to tell that from the code of the routine ?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>