Hello again, how can i make the PIC18 wakeup from a sleep if 2 keypads are attached on PORTB and PORTA and any change in their state (any button pressed from them) wakes up the PIC. This is my first time playing with sleep and wakeup functions. Please kindly help me.
for anyone who needs to do something similar here is the link for the code:
For hardware, i just ANDed all the interrupting push buttons and gave them to RB0 (INT0). I had two keypads on PORTA and PORTC. Took 4 pins from first keypad and 4 pins from second and put them in an AND gate and attached the output at RB0.