pekdb

AVR Examples

Click on .ASM to look at example.

16-bit timer using the EEPROM, AT90S2343.
16-bit multiply test, AT90S8515.
Use the A/D in Free Run Mode, AT90S8535.
Count an average value, AT90S8515.
Use the internal EEPROM, AT90S8515.
Search for constants in flash, AT90S8515.
Interface to D/A MAX548, AT90S8515.
Look for max & min values, AT90S8515.
Communicate with the PC printerport, AT90S8515.
Running Lights, AT90S8515.
Interface a stepping motor, AT90S8515.
16-bit timer example, AT90S8515.
UART communication routines.
UART communication routines 2.
UART communication example 1, AT90S8515.
UART communication example 2, AT90S8515.
UART communication example 3, AT90S8515.


The following programs should be compiled with the GCC compiler.
Click on .C to look at example.

16-bit Fast PWM, ATtiny24.
Read data from flash with lpm instruction, ATmega48.
Use the SPI in slave mode, ATtiny26.
External interrupts, ATtiny26.
Analog comparator with interrupt, ATtiny26.
Differential ADC with gain, ATtiny26.
PWM with PLL example, ATtiny26.
Use the SPI in master mode, ATmega48.
A/D example, ATmega48.
Use comparator for capture interrupt, ATmega48.
External interrupts and sleepmode, ATmega48.
UART example without API, ATmega88.
Example of external interrupts, ATmega88.
Use the internal EEPROM, ATmega88.
Interface to M24256 EEPROM (example of I2C), ATmega88.
Interface to DS1621 (example of I2C), ATmega88.
16-bit timer with interrupts and sleepmode, ATmega88.
Firmware update via UART, ATtiny2313.
Program the Flash and use memory segments, ATtiny2313.
16-bit timer with interrupt, ATtiny2313.
Pin change interrupts, ATtiny2313.
UART example without library functions, ATtiny2313.

Copyright (c) 2004 PerErik Klarenfjord, All Rights Reserved
All trademarks are the property of their owners
Any actions you take after reading this website are your own responsibility
MADE IN SWEDEN
Hosted by GMQ