Microchip® Advanced Software Framework

 All Files Functions Typedefs Enumerations Enumerator Macros Groups
Clock example for the ATmega640 Documentation

STK600 development board

Introduction

This example demonstrates how to set up correct clock settings for the megaAVR devices. The goal of this example is to use the libc delay functions.

Files:

Brief description of the example application

The example application set up the correct clock setting to use the libc delay functions. The only thing this application will do is to demonstrate how to call the libc delay functions. There are no output in form of leds. To verify operation of this example it is recommended to use debugging and break on different lines.

Note
Optimization must to be enabled for the delay functions to work correctly, please refer to libc for more information.

Compilation Info

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

Contact Information

For further information, visit Microchip.