Gast
#75635
Interruptshandling in C-Code und S-Code Die Interruptabarbeitung und Steuerung ist mir in C bekannt und klappt auch prima. Ich möchte sowohl in C als auch in ASM verschiedene Interrupts abarbeiten. Leider weiß ich nicht wie das in ASM hinhaut. comperlieren tut ers auch nicht Vielen Dank ------------------------------ makefile: ASRC = ..\routine\CF.S ------------------------------ ; ==================================================== ; SIG_OUTPUT_COMPARE0 INTERRUPT every 0.01s ; Increase u16 COUNTER1 .global SIG_OUTPUT_COMPARE0 <- (selbe wie in der iom128.h) SIG_OUTPUT_COMPARE0: push r24 push r25 lds r24,(COUNTER1+0) lds r25,(COUNTER1+1) ADIW r24,0x01 sts (COUNTER1+0),r24 sts (COUNTER1+1),r25 pop r25 pop r24 reti