chipKIT® Development Platform

Inspired by Arduino™

External interrupt using "attachInterrupt" doesn't work.

Created Thu, 18 Aug 2011 23:08:18 +0000 by Fixe


Fixe

Thu, 18 Aug 2011 23:08:18 +0000

Hi! I have a problem with the function "attachInterrupt"(in chipkitmax32,mpide 0.22), it doesn`t work. An example program:

int pin = 13; volatile int estado = LOW;

void setup() { Serial.begin(9600); pinMode(pin, OUTPUT); attachInterrupt(0, parpadeo, LOW); }

void loop() { digitalWrite(pin, estado); Serial.println(digitalRead(2));

}

void parpadeo()

Can anybody help me? Thanx


GeneApperson

Fri, 19 Aug 2011 07:38:09 +0000

The attachInterrupt function isn't working correctly in the last release of the MPIDE software. The function has been fixed, and will be working in the next release, which should be out in the next day or two. There is a test build on github with the fixed version if you want to try it out before the next release.

Gene Apperson Digilent


Fixe

Fri, 19 Aug 2011 09:35:26 +0000

Thank you very much!