PDA

View Full Version : Teensy 2.0 INT6 in Arduino



slackman
01-02-2013, 01:37 AM
Hi,
i'm using the small Teensy 2.0 and am not able to enable the INT6 (PE6). Reading works properly but interrupt is not fired. This pin is 10k pulled up and i tried to attach a falling signal interrupt - no luck :-(

Reading the Pin works properly but polling is'n very cool - some keystroke will be lost... :-/

Config: Arduino 1.0.2, current Tennsyduino

any suggestion?

Michael

GabeF
07-11-2014, 04:26 AM
Hello,

Did you ever resolve this issue? I was also trying to use INT6 on the Teensy 2.0 and it failed to work.

Code:

#define CH_PIN 24

void setup(){
pinMode(CH_PIN, INPUT);
attachInterrupt(CH_PIN, CH, FALLING);
}

Any help would be greatly appreciated.

Best,
Gabe

manitou
07-19-2014, 10:35 PM
The forum prefers you provide a full compilable sketch to verify your problems ...

I don't think Teensy 2 has INT6, but Teensy++2.0 does, but it's on pin 18 (not 24). INT6 works for me with this test sketch



volatile uint32_t dings;

void ding() {
dings++;
}

void setup(){
Serial.begin(9600);
pinMode(18,INPUT_PULLUP);
attachInterrupt(18,ding,FALLING);
}

void loop(){
Serial.println(dings);
delay(2000);
}