in my project i included the interrupt service routine in the library file.But now even though iam enabling interrupts in main function iam not entering into the interrupt service routine or rather interrupt itself is not occuring ,can any one tell me the reason.
"iam not entering into the interrupt service routine or rather interrupt itself is not occuring" If the interrupt itself is not occurring, then of course you will not enter the service routine! The service routine is only ever entered when the interrupt occurs! Are you sure you have correctly enabled the interrupt, and everything else necessary for an interrupt to happen?
i included the interrupt service routine in the library file that may and may not work. since the ISR is not "called" the ISR missing will not result in it being loaded. Erik
I tried with the interrupt service routine outside the library.In that case interrupt is occuring but giving warnings like unreferenced symbol and reference made to unreferenced symbol my project has one Cfile one assembly file and a library file. In assembly file iam calling some functions which are there in the library file it is showing the warnings for these functions only. Is it required to enable the interrupts in the library when iam doing it in the Cfile ie; my main function
In assembly file iam calling some functions which are there in the library file it is showing the warnings for these functions only. Then your assembly file, and/or the source for the functions in that library, almost certainly failed to follow the rules about C/assembly interaction that you should have found in the C51 manual. Read them again. Carefully, this time. Check your code. If that still doesn't help, show us actual error messages, instead of just describing them superficially, and may some actual code, too.
really tricky problem (it does not show as anything but "not found") If you have 2 assembler modules in a library that mistakingly has the same NAME decalration (not the filename), they will both be there but only one will respond. I have dropped all use of NAME and let the default filename be the "name" just beacuse of this. Erik