External Interrupts not available on certain pins

Hello fellow Arduino users,

I have a question about external interrupts on the Arduino Nano 33 IoT. According to the file variant.cpp are the following pins not available for external interrupts while it has an input for the EIC controller:

  • D0/RX
  • D1/TX
  • D3
  • D4
  • D5
  • D6
  • D7
  • D8
  • D12
  • A0/D14
  • A2/D16
  • A3/D17
  • A4/D18
  • A6/D20

So it is from the microcontroller side possible to place an external interrupt but Arduino lists them as not an external interrupt. Is there a reason why this is done? Or is the reason just that there are duplicate interrupt inputs?

Which pins are available as interrupts using attachInterrupts() is shown here:
https://docs.arduino.cc/language-reference/en/functions/external-interrupts/attachInterrupt/

The referred document shows that the following digital pin support external interrupts:

Nano 33 IoT	2, 3, 9, 10, 11, 13, A1, A5, A7	

Why are A1, A5, A7 termed as digital pins instead of analog pins?

The pins can be used as standard digital pins in addition to their ADC capabilities. It is unfortunate that the decision was made to use this An naming for the pins that happen to have an ADC capability in the early days of the Arduino project. Worse still, the mistake is being further propagated recently by starting to use a Dn naming for the pins without ADC.

Because an interrupt is inherently digital rather than analogue.

A0 through A7 are normally defined as digital pins but with analog inputs. In other words have these pins analog inputs for the internal ADC or comparator is that other pins do not have.

But nonetheless, the original question remains, why does Arduino not support external interrupts while the SAMD21 datasheet and official Arduino Nano 33 IoT pinout says that these pins support external interrupts?

An external interrupting signal is digital in nature which I understand. This siignal is connected with A1-pin which is routed to the interrupt logic of the MCU because of the inclusion of this function: attachInterrupt(digitalPinToInterrupt(A1), arg2, arg3); in the sketch.

By default (at power up time), the A1-pin is connected with Digital IO Module of the MCU. When the ADC is enabled, the same A1-pin is connected with the ADC Module.

I like to call them simply as pin-2, pin-3, ..., pin-A1, pin-A5, pin-A7 of the edge conncetor of the Arduino Board.