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
start:  
     toggle L1
     pause 500
     goto start
end

disable
int:
       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 holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter