Monday, 17 October 2016

Pin Change Interrupts

I'd totally forgotten at the AtMega328 (and the AtMega in general) have Pin Change interrupts on all GPIO pins. You have to do some work in the interrupt handler to work out which pins changed state, but it does mean than handling four quadrature inputs on an Arduino might not be impossible.

Which is almost a shame, as I'm really getting into embedded Rust and my Launchpad project only works on a Stellaris Launchpad, not an Arduino.

No comments:

Post a Comment