Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
RB4 to RB7 of Port B support Interrupt on change. Suppose, if there is any change in any of these 4 port pins would cause the microcontroller to enter in ISR.
One of the Applications of these port pin interrupts is push button. You can connect 4 push buttons each for one pin. Then, you can perform a particular task for particular pin press.
This Port pin interrupt would let you get rid of polling these four pins. Any how, as 16f877a supports only one Interrupt vector address, you are supposed to check which pin is pressed in ISR.
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.