Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
External Interrupt Example for megaRF STK600 Documentation

Introduction

This simple example shows how to use the External Interrupt Driver for external interrupt

Main files:

Interrupt Driver

The interrupt driver can be found here.

Device Info

AVR MEGARF device can be used. This example has been tested with the following setup:

  • STK600 evaluation Kit (Tested with STK600-ATMEGA128RFA1)
  • ATmega256RFR2 Xplained Pro kit

Setup

user defined External interrupt INTx pin is enabled The on board switch connected to the external interrupt pin is used in this example

description Description of the example

when on board switch is pressed, interrupt INTx will be triggered when switch is released and LED on the board will blinks once.

Compilation Info

This software was written for the GNU GCC and IAR for AVR. Other compilers may or may not work.

Contact Information

For further information, visit Microchip.