Go Down

Topic: nano 33 iot interrupts (Read 270 times) previous topic - next topic

Willy_

Hello,

there is no section for the nano 33 iot in "products" forum. Why?

I just started with my nano 33 iot and after 5 min there was a problem. An interrupt at pin D12 did not work. So I tested all digital pins and the result is: pins 2, 3, 9, 10, and 11 work as interrupt pin but pins 4, 5, 6, 7, 8 and 12 not (tested with the example code from the reference).

We really need a section for the nano 33 iot in the forum and an update of the documentation would be nice (e.g. in the reference the section concerning "attachInterrupt()").

The nano 33 iot is a great product - Thanks :D



tinutac

#1
Jul 17, 2019, 04:55 pm Last Edit: Jul 17, 2019, 05:00 pm by tinutac
You might want to take a look at the pin definitions here (ignore the commented part in the begin, is not really correct and look in the PinDescription const).


According to that, if I understand correctly, indeed no interrupts for PA7 (D4), PA5 (D5), PA4 (D6), PA6 (D7), PA18 (D8), PA19 (D9).
For the analog ones (assuming you would want to use them as digitals), no interrupts for: PA2 (A0), PA11(A2), PA10 (A3), PB8 (A4/SDA), PA9 (A6)

Willy_

Well, looking into "variant.cpp" can help (I did it some time ago for the MKR WiFi 1010) but it is more easy to look in the documentation  ;)

Another problem (or feature...) are the pullup resistors at A4 and A5 (4.7 kOhm). So A4 and A5 are not really analog inputs but they may work fine with thermistors (for temperature measurement): no external resistor needed  :smiley-eek:

tinutac

According to the schematics A4/A5 are connected to the I2C bus of almost everything (NINA, imu, crypto) so I wouldn't really use them as analog inputs anyway.

I agree, documentation is easier to follow than the variants.cpp :)

Go Up