In my project i want to clear my interrupts into setup itself and make it set in a certain function which i have called in loop. But i am occuring a problem that when i clear my interrupt i.e cli(); in void setup i encountered a problem that, my keyboard is getting deactivated. I am not able to resolve this issue it will be helpful for me if i can have some guidance regarding this.
rt009:
In my project i want to clear my interrupts into setup itself and make it set in a certain function which i have called in loop. But i am occuring a problem that when i clear my interrupt i.e cli(); in void setup i encountered a problem that, my keyboard is getting deactivated. I am not able to resolve this issue it will be helpful for me if i can have some guidance regarding this.
is it deactivating all my i/os???
Please post the program that is causing the problem
Hello rt009,
Yes, if you use cli(); in your program, all your interuppts will be disabled.