I'm working on a wall control project that runs on a battery. Therefore, I want the system to be in sleep mode while there is no user input.
I'm using a PIC18F45Q43 which has 3 external interrupts, but I have 4 action buttons that should wake the system up from sleep.
Is it possible to put the PIC in sleep mode and poll for the 4th button at the same time? I know that sounds counterintuitive, but maybe there is a way?
Or will it be power efficient to have a timer interrupt wake the PIC McmCU up and check if the 4th button got pressed?
Please guide. Power saving is a critical requirement.