Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: Teensy 2.0 INT6 in Arduino

  1. #1
    Junior Member
    Join Date
    Jan 2013
    Posts
    1

    Teensy 2.0 INT6 in Arduino

    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

  2. #2
    Junior Member
    Join Date
    Jul 2014
    Posts
    1
    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

  3. #3
    Senior Member+ manitou's Avatar
    Join Date
    Jan 2013
    Posts
    1,642
    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

    Code:
    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);
     }

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •