The Following Video is demonstration on working with external interrupts with 8051(KEIL - Assembly) on Proteus Assembly
CODE:
org 0000h
ljmp main
org 0003h
ljmp inter0i
org 0013h
ljmp inter1i
org 0030h
main : mov ie,#85h
mov r0,#04h
mov a,#05h
add a,r0
mov p1,a
mov p2,#00h
jc skip
halt : sjmp $
inter0i : mov r0,#04h
mov a,#05h
subb a,r0
mov p1,a
mov p2,#00h
jc skip
reti
inter1i : mov b,#05h
mov a,#04h
mul ab
mov p1,a
mov p2,#00h
reti
skip : setb p2.0
sjmp halt
end
For any queries can mail us on
prishr47@gmail.com
Ещё видео!