So right now with the previous help my program is working properly. Now comes on of the larger debates that I have read about. Should interrupts be used for button detection or should I just use code. Now there is a part in my program were the PIC will goto sleep and wait for the WDT to awaken it, however I would like a button press to awaken the PIC early, to trigger an event, if need be. From what I understand only an interrupt can accomplish this.
Should I use code to detect a button press and the interrupt or just use the interrupt?
-Ken
Should I use code to detect a button press and the interrupt or just use the interrupt?
-Ken