Activity Forums Questions & Troubleshooting Software & Firmware Enabling PIN change interrupts

  • Enabling PIN change interrupts

  • localhost

    Member
    January 28, 2019 at 2:28 pm

    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.

  • mr-controllino

    Administrator
    January 28, 2019 at 3:57 pm

    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 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.

    regards

    Marco

Viewing 1 - 2 of 2 replies

Log in to reply.

Original Post
0 of 0 posts June 2018
Now