We have looked at the basics of AVR Interrupts, now let us go ahead and use the External Interrupts feature on the AVR MCUs.

Steps to configure the Interrupts:


The Registers

General Interrupt Control Register (GICR)

General Interrupt Flag Register(GIFR)

MCU Control Register (MCUCR)

We will connect two switches to the two interrupt pins and show the status on a LCD. The connections are shown in the image below.

Hook Up

The Code

Downloads