Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.