Activity › Forums › Questions & Troubleshooting › Software & Firmware › Enabling PIN change interrupts
-
Enabling PIN change interrupts
-
Hello, You mention on your “examples/tutorials” page that “On the other hand the pin change interrupts can be enabled on many more pins.” (c.f. https://www.controllino.biz/tutorials/#1539865917813-1a5b68ae-0b15)
Is there any tutorial on how to do that ? I have a Controllino MAXI. I am not able to use pins other than D0, D1, INT0, INT1, SDA and SCL as interrupt pins.
Any help will be welcome.
Thank you.
-
Hello,
If you look for the ATmega2560 pinout you can see there are a lot of PCINTxx pins. All of them are able to be used as
PinChangeInterrupt (PCINT).You only have to look for “Pin Change Interrupt Arduino MEGA”. there are a lot of examples how to do that depending on your needs.
There are also ready to use libraries to do that.
regards
Marco
Log in to reply.