Enabling PIN change interrupts

Stuck? We'll be happy to help!
Post Reply
Posts: 1
Joined: Mon Jan 28, 2019 2:25 pm

Enabling PIN change interrupts

Post by localhost » Mon Jan 28, 2019 2:28 pm


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.

User avatar
Posts: 7
Joined: Thu Dec 13, 2018 3:07 pm

Re: Enabling PIN change interrupts

Post by Mr. CONTROLLINO » Mon Jan 28, 2019 3:57 pm


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 Pin Change Interrupt (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.


Post Reply