Hi, I'm using attachInterrupt(2,handler,FALLING); on a Arduino Due board. I'm wiring pin 2 to 3,3v for testing, the problem is that when I reset the board the interrupt is triggered even the level is always HIGH.
Is there an explanation for this or I'm doing something wrong?
THX!
This problem seems to have been fixed in the nightly build I downloaded on 19 Oct 2014
I have a similar problem with RISING interrupts
I kludged it like so....
attachInterrupt(3, interrupt_server, RISING);//portC bit 28
Serial.print(" 0x");
Serial.println((uint32_t)REG_PIOC_FRLHSR,HEX);
Serial.print(" 0x");
Serial.println((uint32_t)PIOC->PIO_ESR,HEX);
PIOC->PIO_ESR = 0x10000000;
PIOC->PIO_REHLSR = 0x10000000;
Serial.print(" 0x");
Serial.println((uint32_t)REG_PIOC_FRLHSR,HEX);
Serial.print(" 0x");
Serial.println((uint32_t)PIOC->PIO_ESR,HEX);
0x0
0x0
0x10000000
0x10000000
use PIOx->PIO_FELLSR for falling where x is port a b c d and obviously the corresponding bit