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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/16/02 17:02
Read: times


 
#21838 - RE: Interupts and my sanity
Josh,

Jumper P1.0 to P3.2 so that when you set it low it causes an interrupt.

$mod51

org 0
jmp init

org 3
jmp blue

org 40H
init:
setb EX0
setb PX0
setb IT0
setb p1.0
setb EA

START:
mov r2,#0
reload:
mov r3,#0
loop:
mul ab
djnz r3,loop
djnz r2,reload
clr P1.0
AJMP START


BLUE:
INC R3
INC R3
INC R3
DEC R3
DEC R3
DEC R3
setb p1.0
RETI

end

regards,
p


List of 5 messages in thread
TopicAuthorDate
Interupts and my sanity            01/01/70 00:00      
RE: Interupts and my sanity            01/01/70 00:00      
RE: Interupts and my sanity            01/01/70 00:00      
RE: Interupts and my sanity            01/01/70 00:00      
RE: Interupts and my sanity            01/01/70 00:00      

Back to Subject List