Full Version : Port of Atmel Butterfly Demo Program (GCC)
avr >>BEGINNER UTILITIES >>Port of Atmel Butterfly Demo Program (GCC)


Admin5- 04-17-2006
AVR-Butterfly Application gcc-portVersion 0.6.5

The AVR Butterfly comes with a preloaded application. The application source-code can be downloaded from the ATMEL Web-Site (AVR Butterfly - Application Rev06). It is written for the IAR EWAAVR 2.28a C-Compiler.
This is a port of the IAR code to avr-gcc using the avr-libc. If you plan to use major parts of the ported code in own projects please make sure to keep some notes in the source-files that it is/parts are ported code based on ATMEL source to avoid copyright problems.

LCD access with scrolling (same as STK502)

Menu-System and State-machine which can be extended easily with own functions

Real-Time clock/date

Sound ("Beep-Music") Playback via PWM

calibrated System clock from 32kHz Osc.

Dataflash via SPI

ADC for LDR and Temperature-Sensor

...



In addition information how to convert source-code for IAR to avr-gcc can be found in the code (includes, registers, working around the IAR _flash directive with progmem.h functions, etc.) And you get two more songs, which were commented out in the ATMEL code because of size restrictions but fit in the AVR memory if compiled with avr-gcc without loosing any functions of the original code.

Please use at least the Jul. 2004 edition of WINAVR to compile and link the port version 0.6.5 code.



Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.