An interrupt service routine is supposed to be very, very fast. The crystal oscillated a number of times; it's time to advance the time. The serial pin was toggled; it's time to read a character.
Putting an infinite loop in an ISR just plain will not work.
The IR library already uses interrupts to catch the incoming IR data. When sufficient data has been received, that data is available to use.
You would be better off testing for their being valid data to use, and using that data in loop(), rather than trying to use (incorrectly) any kind of interrupt.
If the problem is that your LED signage code is not responding to IR data, then the code needs to be restructured. Interrupts are not the answer to making the code stop dillydallying and start doing something different.
thank you very very very much sir for your quick reply... I was working on it a couple of days now I know its not possible... =( =( Is there any possible choice for my project to work sir?? The deadline is fast approaching sir, I really needed your help...Thank you sir..
If we had a better idea of what it is you want to do, what you have tried and how things went wrong, we might be able to help.
In other words, post code.
thank you to all of you... My project is digital led signage that can change the message wired or wireless sir...I manage to display the digital led signage sir my problem was how to change the message... I was planning to use the interrupt but now I know it is not possible I dont know what to do... Thank you very very very much guys... =( =(
jogz44:
My project is digital led signage that can change the message wired or wireless sir...I manage to display the digital led signage sir my problem was how to change the message... I was planning to use the interrupt but now I know it is not possible I dont know what to do...
You can use interrupts to do things, but not the way you were. Perhaps more details, a circuit so we know what you are doing, and what code you have?
Good day sir...here is the code sir..I am very sorry sir for the late reply, I was very busy because I help my classmates in preparing our upcoming festival...
thank you very much ma'am jen, the tutorial was all about wireless communication...I alreadey watch the interrupt tutorial ma'am and it was very helpful but I didnt know that my ideas were wrong..