external intrrupt pins on teensy 3.5

Status
Not open for further replies.

ais-systems

New member
Hello respetec members,

I would like to know which pins are dedicated to "external interrupt" in teensy 3.5. Thanks
 
Not sure what you mean by dedicated to "external interrupts"

But if you look at the hardware table: https://www.pjrc.com/teensy/techspecs.html
You will see there are 58 digital IO pins on the Teensy 3.5 and there are 58 Interrupt pins.

So the simple answer is you can use any digital pin to generate interrupts. Note: Each pin does not have a Unique interrupt associated with it. So if you have multiple pins that can generate the same Interrupt, you need to deduce which one happened.

The nice thing is, you can simply use the function: attachInterrupt(pin, <ptr to ftn>, mode), and it will do that work for you.

Kurt
 
Thanks, you meant 48 pins. You are right, we can use all digital pins as interrupt pins. The reason I asked was in Arduino (e.g. uno), we cannot use all digital pins as external interrupt pins although we have many digital pins.
 
The reason I asked was in Arduino (e.g. uno), we cannot use all digital pins as external interrupt pins although we have many digital pins.

The older Teensy 2.0 boards are very similar in this way to Arduino's older products like Uno, only a small number of the pins can be used as interrupts.

The Teensy 3.x boards are powerful 32 bit ARM microcontrollers, similar to the powerful chip on Arduino Due. Turns out, Arduino Due and all the Teensy 3.x have interrupt capability on every pin.

Teensy LC is a low-end ARM microcontroller (no hardware divide, fewer instructions, etc) basically the same as the processor on Arduino Zero & M0 & MKR1000. There too, things are very similar. Most not quite all of the digital pins are usable as interrupts, on both Teensy LC and Arduino's M0 boards.

At least regarding interrupts, the capability is actually very close, if you compare boards from the same class of hardware capability.
 
Status
Not open for further replies.
Back
Top