Difference between revisions of "AVR External Interrupts"
Line 1: | Line 1: | ||
[[Category:AVR Tutorials]] | [[Category:AVR Tutorials]] | ||
− | We have looked at the [[basics of AVR Interrupts]], now let us go ahead and use the External Interrupts feature on the AVR MCUs. 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. | + | 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= | =Hook Up= | ||
=The Code= | =The Code= | ||
=Downloads= | =Downloads= |
Revision as of 15:03, 19 March 2016
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:
Contents
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.