Thursday, April 11, 2013

PIC16F877A pin change interrupt example

Given below is a sample program written for learning pin change interrupt in PIC16F877A. This program will toggle the LED connected to PORT D of PIC with respect to changes in PORTB (7:4) pins. Interrupt is generated by a push button switch. The program is written for HITECHC compiler. A sample circuit to test this program is also given at the end.

Download related MPLAB project and KiCad files.

You are free to point out the mistakes and ask doubts.
Technoburst will not be responsible for any damages both physically or financially occurred due to the use of this circuit/program.


Anonymous said...

to toggle PORTD, you can do the following:


as simple as this...

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | coupon codes