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.

Comments

Popular posts from this blog

Embedded Rust in 2018

Where next for the Monotron

Monotron at Rust Belt Rust