M0 interrupt pins?

Started by arf, June 30, 2021, 11:40:32 PM

arf

Are all the digital pins interrupts on the M0 Moteino?  Sorry if I missed it, but didn't see anything about that in the documentation.

Felix

Most are defined as interrupts, or can be interrupt enabled.

To check the available interrupts look in the following file in the Moteino SAMD M0 definition:

..Arduino\packages\Moteino\hardware\samd\1.6.3\variants\moteino_m0\variant.cpp

arf

#2
awesome thanks!

btw, I noticed a comment in there says SDA/SCL are 32/33 but the schematic shows it as 31/32
// 32/33 I2C (SDA/SCL and also EDBG:SDA/SCL)
  { PORTA, 22, PIO_SERCOM, PIN_ATTR_NONE, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_NONE }, // SDA: SERCOM3/PAD[0]
  { PORTA, 23, PIO_SERCOM, PIN_ATTR_NONE, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_NONE }, // SCL: SERCOM3/PAD[1]





Felix

The numbers are correct.
The schematic pins you mention are just the order of the pins on the SMD package, nothing to do with the pin order in the definition.
You will notice those same pins appear at positions 20,21 in the definition, with alternative functions.