Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
QDEC Example for UC3C_EK Documentation

Introduction

This is the documentation for the data structures, functions, variables, defines, enums, and typedefs for the quadrature decoder (QDEC) driver. It also comes bundled with an application-example of usage.

This example demonstrates how to use the QDEC driver in timer mode.

Main Files

  • qdec.c: Quadrature Decoder driver;
  • qdec.h: Quadrature Decoder driver header file;
  • qdec_example.c: Quadrature Decoder example application.

Compilation Information

This software is written for GNU GCC for AVR32 and for IAR Embedded Workbench for Atmel AVR32. Other compilers may or may not work.

Device Information

All AVR32 devices with an QDEC and an INTC can be used.

CPU speed: 60 MHz

  • On UC3C_EK, check LED0_GPIO pin with an oscilloscope. The QDEC is used in Timer Mode in 32-bit. It generates an interrupt on a compare Match. At each interrupt a new value is reloaded in compare register.

Contact Information

For further information, visit Atmel AVR32.