Edge interrupts not working?
Seairth
Posts: 2,474
in Propeller 2
dat orgh 0 org setb dirb, #0 'make that pin an output setb dirb, #1 waitx ##25_000_000 'wait 1/2 second for INB to figure itself out setedg #%0_10_1_11011 'falling edge on inb[27] mov ijmp1, #isr setint1 #%010 'edge-triggered event 'loop waitint ' jmp @loop loop waitedg notb outb, #1 'toggle LED waitx ##5_000_000 'wait 1/10th of a second for lazy debounce polledg 'clear jmp @loop 'repeat isr notb outb, #0 'toggle LED waitx ##5_000_000 'wait 1/10th of a second for lazy debounce polledg 'clear reti1
Given the above code, the ISR never executes. WAITEDG and POLLEDG are working, though.
Comments
I'm documenting this today.
(note: yeah, I knew you were documenting it. I was just being impatient. )
Actually, I haven't even gotten back to the documentation today, yet, because I've been working on the assembler syntax.