Hello,
I want to programm the interrups for the at89c51cc03 in C. But I can't find how i have to do this.
i have the configuration from the datasheet. but how look the "interrupt funktion header"??
There is nothing in standard 'C' about interrupts - therefore it will always be implementation-specific and you will always have to refer to the appropriate Compiler Manual.
In this case, it's: http://www.keil.com/support/man/docs/c51/c51_le_interruptfuncs.htm
See also: http://www.keil.com/download/
thanks.. but for what stands interrupt 1 using 2 behind the (void)
but for what stands interrupt 1 using 2 behind the (void)
That should all be explained in the text surrounding the code snippet.
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.
The using keyword tells the compiler that the function shall use the specified register bank.
Detailed explanations can be found in the compiler manual, as they would be way too long to post here.
View all questions in Keil forum