Turn-key PCB assembly services in prototype quantities or low-volume to mid-volume production runs

How to program external interrupts on AVR

Daniel has sent us a link on his newly prepared AVR ATmega168 Interrupt Routine programming. Programming microcontrollers without interrupts is unimaginable because that’s what microcontrollers actually are designed for – to process various interrupts including external events, timers, data transfer. All well designed programs do these tasks with help of interrupts. In this tutorial there is a smooth line up of things you need to know before you start programming external interrupts. As you know MCU can trigger interrupt on various pin change conditions like transition from low to high state and vice versa, or on any change, or simply when pin is low. So tutorial will explain how to set register values for your wanted interrupt conditions and what cautions has to be taken care off to avoid common issues. Tutorial is filled with several code examples to get started instantly. Continue reading