Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Common IOPORT service example 3 for SAM4S_EK Documentation

Introduction

This example demonstrates how to use the common IOPORT service for pin input and output.

Main Files

services/ioport/ioport.h

The common IOPORT service is described in Common IOPORT API section.

Device Info

All Atmel SAM, MEGA, XMEGA and UC3 devices can be used. This example has been tested with the following setup:

  • Xplain evaluation kit
  • EVK1100 evaluation kit
  • SAM3N evaluation kit
  • SAM4S evaluation kit
  • SAM4E evaluation kit
  • SAM4L evaluation kit
  • SAM4L Xplained Pro kit
  • SAM4L8 Xplained Pro kit
  • SAM3X evaluation kit
  • SAM4N Xplained Pro kit
  • STK600 evaluation Kit (Tested with STK600-ATMEGA128RFA1)
  • ATmega256RFR2 Xplained Pro kit
  • SAM4C evaluation kit
  • SAMG53 Xplained Pro kit
  • SAMG55 Xplained Pro kit
  • SAMV71 Xplained Ultra kit
  • SAME70 Xplained Pro kit

Description of the example

This example reads input from a button and outputs it on a LED.

Compilation Info

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

Contact Information

For further information, visit Microchip.
Support and FAQ: https://www.microchip.com/support/