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
'




READ  Sound frequency For Basic PRO Compiler

Leave a Comment

*
= 4 + 8

Read previous post:
pulse width moduration(PWM) for lcd 2 line For Basic PRO Compiler

@ device pic16f877 define osc 4 define adc_bits 8 define adc_clock 3 define adc_sampleus 50 Define LCD_DREG PORTD ' Define...

Close
Scroll to top