How to use interrupts on an Arduino pin that doesn't have interrupts


I am trying to set up a flow meter and measure the water flow using interrupts. Right now, I have the flow meter connected to pin D32 on my Mega2560, but I realized that pin doesn't have interrupts. Is there any way to enable interrupts on this pin, or is my only option to rewire the flow meter?


You're awesome, thanks!

Sorry, you are right, it doesn't have interrupts. D32 is PC5 in the microcontroller. The ATmega2560 has pin change interrupts (a feature not used in the Arduino library) available only for ports B, J, and K (this would be digital pins 53, 52, 51, 50, 10, 11, 12, 13, 14, 15, and analog pins 8 through 15) plus the pins used for the external interrupts documented here.