This example demonstrates how to use the common IOPORT service for port control.
The common IOPORT service is described in Common IOPORT API section.
All Atmel SAM, MEGA, XMEGA and UC3 devices can be used. This example has been tested with the following setup:
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.
This software was written for the GNU GCC and IAR for SAM and AVR. Other compilers may or may not work.
For further information, visit Microchip.
Support and FAQ: https://www.microchip.com/support/