Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/18/00 15:15
Read: times


 
#5135 - int0 vs int1 is there a diffrent
I have the following code
(on atmel 89c55) :

;when I press the int0 button I have 2
;interrupts one on button low and one
;on button high. when I press the int1
;button I have my code running only
;when the button in up. I want both to
;do like int1

org 0h
jmp ext0

org 13h
jmp ext1

org 100H
start : ; something here
mov IE,#85h ; EA = 1, ex0,1 = 1
jmp $

ext0 : mov lp1,#80h ; button down
check0: jb int0,bad0
djnz lp1,check0
jnb int0,$ ; wait until button up
; here we have the real code
; here I draw a point on the lcd to see that the program is in here
bad0 : reti

ext1 : mov lp1,#80h ; button down
check1: jb int1,bad1
djnz lp1,check1
jnb int1,$ ; wait until button up
; here we have the real code
; here I draw a point on the lcd to see that the program is in here
bad1 : reti

end




List of 3 messages in thread
TopicAuthorDate
int0 vs int1 is there a diffrent            01/01/70 00:00      
RE: int0 vs int1 is there a diffrent            01/01/70 00:00      
RE: int0 vs int1 is there a diffrent            01/01/70 00:00      

Back to Subject List