<?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>Interrupts for AT89C51CC03</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/37692/interrupts-for-at89c51cc03</link><description> 
Hello, 

 
I want to programm the interrups for the at89c51cc03 in C. 
But I can&amp;#39;t find how i have to do this. 

 
i have the configuration from the datasheet. but how look the
&amp;quot;interrupt funktion header&amp;quot;?? 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Interrupts for AT89C51CC03</title><link>https://community.arm.com/thread/144355?ContentTypeID=1</link><pubDate>Wed, 20 Feb 2008 06:28:50 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b377daa0-042a-43da-9adb-a95debe79fc9</guid><dc:creator>Christoph Franck</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;I posted the above before I realized you has posted the same in
a post below the one I replied to.&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Repetition is the mother of all studies. Things like the above
cannot be stressed enough.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interrupts for AT89C51CC03</title><link>https://community.arm.com/thread/141951?ContentTypeID=1</link><pubDate>Wed, 20 Feb 2008 06:12:52 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:7be3fd16-2328-49d6-98be-2d3a0ec7190b</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
I posted the above before I realized you has posted the same in a
post below the one I replied to.&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: Interrupts for AT89C51CC03</title><link>https://community.arm.com/thread/138685?ContentTypeID=1</link><pubDate>Wed, 20 Feb 2008 06:11:07 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d4465aa5-fa32-4fc8-9f34-c09cd21bb9f8</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;why should i use hours for hours to search for the
answer?&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
because in the search for the answer you need right now, you will
learn where to find the answers to future questions.&lt;/p&gt;

&lt;p&gt;
Nobody I know will know everyting in the manuals, but any decent
user will know (or, at least, have an idea) where in the manuals to
look for an answer.&lt;/p&gt;

&lt;p&gt;
Familiarrity with the manuals is &lt;b&gt;essential&lt;/b&gt; to being
productive.&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: Interrupts for AT89C51CC03</title><link>https://community.arm.com/thread/149843?ContentTypeID=1</link><pubDate>Wed, 20 Feb 2008 05:20:43 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:cbaef46d-4c47-442a-8a22-6db5cbee09ad</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
especially as you&amp;#39;ve stated it so clearly and explicitly
yourself!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interrupts for AT89C51CC03</title><link>https://community.arm.com/thread/149355?ContentTypeID=1</link><pubDate>Wed, 20 Feb 2008 05:19:22 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:48e2db06-e576-4582-9eca-0b6186a1dedc</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
Because, sooner or later, people will realise that you&amp;#39;re just
wasting their time, and will stop doing your work for you.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interrupts for AT89C51CC03</title><link>https://community.arm.com/thread/138684?ContentTypeID=1</link><pubDate>Wed, 20 Feb 2008 05:06:15 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:42894be7-a803-4c13-8ee4-83510660abf0</guid><dc:creator>Christoph Franck</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;but most users know exactly the answer, why should i use hours
for hours to search for the answer?&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Because then you will know where to find the answer and where to
refer to if you have more questions.&lt;/p&gt;

&lt;p&gt;
And why should other users waste their (possibly valuable) time
explaining something that is explained in very excruciating detail in
the one document that every user of the compiler should read before
typing the first character of a program ?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interrupts for AT89C51CC03</title><link>https://community.arm.com/thread/130267?ContentTypeID=1</link><pubDate>Wed, 20 Feb 2008 05:01:03 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:deb5fc74-92ca-4b6d-9c8e-11d8058f7031</guid><dc:creator>Julian Gebhardt</dc:creator><description>&lt;p&gt;&lt;p&gt;
but most users know exactly the answer, why should i use hours for
hours to search for the answer?&lt;/p&gt;

&lt;p&gt;
but know i&amp;#39;ve got the answer ;)&lt;/p&gt;

&lt;p&gt;
thanks a lot&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interrupts for AT89C51CC03</title><link>https://community.arm.com/thread/124460?ContentTypeID=1</link><pubDate>Wed, 20 Feb 2008 04:57:59 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a8e3d4b8-1bf6-4ed5-9e18-aa9bc8a9945d</guid><dc:creator>Christoph Franck</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;why should i learn: &amp;quot;How to use the manual&amp;quot;&lt;br /&gt;
while there is a forum where i can ask the user ;)&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Because most users will find it impolite if you ask them to read
the manual to you. Usually, if you do not want to deal with the
specifics of the compiler or the hardware, you go and hire (that
implies paying for the service) a consultant.&lt;/p&gt;

&lt;p&gt;
Also, the manual will give you much, much more detailed answers to
many, many questions in much, much shorter time than this forum
will.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interrupts for AT89C51CC03</title><link>https://community.arm.com/thread/113673?ContentTypeID=1</link><pubDate>Wed, 20 Feb 2008 04:54:30 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a26d18c9-c6ae-4e6f-a1d9-3538b1b3326b</guid><dc:creator>Julian Gebhardt</dc:creator><description>&lt;p&gt;&lt;p&gt;
why should i learn: &amp;quot;How to use the manual&amp;quot;&lt;br /&gt;
while there is a forum where i can ask the user ;)&lt;/p&gt;

&lt;p&gt;
back to topic:&lt;br /&gt;
thanks for the fast reply.&lt;br /&gt;
i will look there i find the time ;)&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interrupts for AT89C51CC03</title><link>https://community.arm.com/thread/100286?ContentTypeID=1</link><pubDate>Wed, 20 Feb 2008 04:48:56 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e4fd7f9f-f9b7-455d-995d-45ce143831fd</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
There is a &amp;#39;&lt;b&gt;Search&lt;/b&gt;&amp;#39; facility on this website - it includes
the online manuals.&lt;/p&gt;

&lt;p&gt;
All of the manuals are available online here:&lt;br /&gt;
&lt;a href="http://www.keil.com/support/man/"&gt;http://www.keil.com/support/man/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
From there, you can easily find the C51 Compiler manual:&lt;br /&gt;
&lt;a href="http://www.keil.com/support/man/docs/c51/"&gt;http://www.keil.com/support/man/docs/c51/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
Look at the contents list down the left-hand side.&lt;/p&gt;

&lt;p&gt;
Clearly, neither &lt;b&gt;interrupt&lt;/b&gt; nor &lt;b&gt;using&lt;/b&gt; are standard
keywords - so look in the section on &lt;i&gt;&amp;quot;&lt;b&gt;Language
Extensions&lt;/b&gt;&amp;quot;&lt;/i&gt;:&lt;br /&gt;
&lt;a href="http://www.keil.com/support/man/docs/c51/c51_extensions.htm"&gt;http://www.keil.com/support/man/docs/c51/c51_extensions.htm&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
Note that one of the bullet points is called &lt;i&gt;&amp;quot;&lt;/i&gt;Function
Attributes&amp;quot; - try that link!&lt;/p&gt;

&lt;p&gt;
There is also a list of all the keyword extensions here:&lt;br /&gt;
&lt;a href="http://www.keil.com/support/man/docs/c51/c51_le_keywords.htm"&gt;http://www.keil.com/support/man/docs/c51/c51_le_keywords.htm&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
You don&amp;#39;t have to learn the manual by heart, but you need to spend
some time studying it so that you know where to find things!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interrupts for AT89C51CC03</title><link>https://community.arm.com/thread/100282?ContentTypeID=1</link><pubDate>Wed, 20 Feb 2008 04:27:01 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:50869f98-1685-404a-8943-a63236b6bad9</guid><dc:creator>Christoph Franck</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;but for what stands interrupt 1 using 2 behind the
(void)&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
That should all be explained in the text surrounding the code
snippet.&lt;/p&gt;

&lt;p&gt;
The interrupt keyword tells the compiler that the following
function is, in fact, an interrupt service routine that services the
interrupt with the given number.&lt;/p&gt;

&lt;p&gt;
The using keyword tells the compiler that the function shall use
the specified register bank.&lt;/p&gt;

&lt;p&gt;
Detailed explanations can be found in the compiler manual, as they
would be way too long to post here.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interrupts for AT89C51CC03</title><link>https://community.arm.com/thread/76012?ContentTypeID=1</link><pubDate>Wed, 20 Feb 2008 04:14:11 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:5faf624a-00dc-4f9f-b89b-cb97a68653af</guid><dc:creator>Julian Gebhardt</dc:creator><description>&lt;p&gt;&lt;p&gt;
thanks..&lt;br /&gt;
but for what stands &lt;i&gt;interrupt 1 using 2&lt;/i&gt; behind the (void)&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interrupts for AT89C51CC03</title><link>https://community.arm.com/thread/49445?ContentTypeID=1</link><pubDate>Wed, 20 Feb 2008 03:10:53 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ef185a29-6d2d-4a09-a039-0dc50c1db257</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
There is nothing in standard &amp;#39;C&amp;#39; about interrupts - therefore it
will always be implementation-specific and you will
&lt;i&gt;&lt;b&gt;always&lt;/b&gt;&lt;/i&gt; have to refer to the appropriate &lt;b&gt;Compiler
&lt;i&gt;Manual&lt;/i&gt;&lt;/b&gt;.&lt;/p&gt;

&lt;p&gt;
In this case, it&amp;#39;s:&lt;br /&gt;
&lt;a href="http://www.keil.com/support/man/docs/c51/c51_le_interruptfuncs.htm"&gt;http://www.keil.com/support/man/docs/c51/c51_le_interruptfuncs.htm&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
See also: &lt;a href="http://www.keil.com/download/"&gt;http://www.keil.com/download/&lt;/a&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>