External interrupt For Basic PRO Compiler

@ device pic16f877
define osc 4
define adc_bits 8 
trisb =$0f

L1     var  portb.6 
L2     var  portb.7
i           var  byte
on interrupt  goto int
intcon = %10010000

low    L1
low    L2
     toggle L1
     pause 500
     goto start

       toggle  L2
       pause 100 
       intcon.1 = 0      '  Clear  flag
       resume            '  Return  to  main program

About The Author

Ibrar Ayyub

I am an experienced technical writer with a Master's degree in computer science from BZU Multan University. I have written for various industries, mainly home automation, and engineering. I have a clear and simple writing style and am skilled in using infographics and diagrams. I am a great researcher and is able to present information in a well-organized and logical manner.

Follow Us: