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.


Popular posts from this blog

Where next for the Monotron

Embedded Rust in 2018

I decided to make an 1980's Home Computer in Rust - Part 1