you only need to change the trigger level in the interrupt. EICRA contains the 2 bits that determine the trigger. So each time in the interrupt, let it trigger to the other flank.
that is basicly the same as pin change interrupt. or get a newer chip. m128 is a bit ancient. or write the code yourself if you think that is less work.
↧