Microchip® Advanced Software Framework

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

Introduction

This example demonstrates how to use the common IOPORT service for port control.

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
  • SAM3X evaluation kit
  • SAM4L evaluation kit
  • SAM4L Xplained Pro kit
  • SAM4L8 Xplained Pro kit
  • SAM4E evaluation kit
  • SAM4N Xplained Pro kit
  • STK600 evaluation Kit (Tested with STK600-ATMEGA128RFA1)
  • ATmega256RFR2 Xplained Pro kit
  • SAM4C evaluation kit
  • SAM4CP16BMB evaluation board (no button version)
  • SAMG53 Xplained Pro kit
  • SAMG55 Xplained Pro kit
  • SAM4CMP16C demo board
  • SAM4CMS16C demo board
  • SAMV71 Xplained Ultra kit
  • SAME70 Xplained Pro kit

Description of the example

This example flashes a group of LEDs present on a port with flash speed of 1Hz. For STK600 with STK600-ATMEGA128RFA1, need to connect a 10 Pin cable from PORTB to Led header Additionally a group of inputs can inspected from a debug session.

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/