Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
SCIF Example3 for UC3L_EK Documentation

Introduction

This is the documentation for the data structures, functions, variables, defines, enums, and typedefs for the SCIF driver.
It also gives an example of usage of the SCIF & PM module on UC3 products. This example shows how to configure the System Control Interface(SCIF) to:

  • configure and start the OSC32K 32kHz oscillator,
  • set-up a generic clock at 32kHz with the OSC32K osc as a source,
  • output the generic clock to a pin.
  • toggle all four leds 10 times, then switch the device into the static sleep mode (while still maintaining the OSC32 32kHz oscillator).

Compilation Info

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

Device Info

All AVR32 devices with a PM module and a SCIF module can be used. This example has been tested with the following setup:

  • AT32UC3L-EK board

Setup Information


CPU speed: 115 kHz

On the AT32UC3L-EK setup, the generic clock is output to the GCLK_1_0 pin. This is the GPIO pin 6/pin pa06/pin#10 on a UC3L QFP48 package.

  • Check the GCLK1_0 pin with an oscilloscope, it oscillates at the frequency 32kHz as long as the device is not in static sleep mode.
  • Check the XIN32_2 pin with an oscilloscope: it still oscillates at the frequency 32kHz even when the device is in static sleep mode (~500mV peek-to-peek signal).

Contact Info

For more info about Atmel AVR32 visit Atmel AVR32
Support and FAQ: https://www.microchip.com/support/