interrupts using pic16f877

pinky

New Member
my project requires one external interrupt .
how can i give to pic 16f877 and how can i identify that interrupt is occurs or not

thanks
 
pinky said:
my project requires one external interrupt .
how can i give to pic 16f877 and how can i identify that interrupt is occurs or not

You could use one of the PortB pins for your external input, then use "Interrupt on change on PortB" - if you check the MicroChip application notes there's a fair few dealing with this. It will interrupt on any change, either positive or negative going, you can easily detect which you want in the interrupt routine - it's all explained quite well in the application notes.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…