aha ... schau mal unter config int0 in die Hilfe:
Syntax
CONFIG INTx = state
Where X can be 0,1 and 4 to 7 in the MEGA chips.
Remarks:
state
LOW LEVEL to generate an interrupt while the pin is held low. Holding the pin low will generate an interrupt over and over again.
FALLING to generate an interrupt on the falling edge.
RISING to generate an interrupt on the rising edge.
CHANGE to generate an interrupt on the change of the edge.
ergo :
config int0=falling
der Int wird ausgelöst wenn int0 fällt und nur dann![]()
Lesezeichen