avrdude -p atmega128 -P usb -c usbasp -U lfuse:r:low:r -U hfuse:r:high:r
This makes two binary files called low and high
avrdude -p atmega128 -P usb -c usbasp -U lfuse:r:low:r -U hfuse:r:high:r
This makes two binary files called low and high
from http://www.avrfreaks.net/index.php?name=PNphpBB2&file=printview&t=66780&start=0
stu_san – Jul 23, 2008 – 05:51 PM
Post subject: RE: Sample Codes for ATmega128/1
Okay, you asked for it… My Complete List O’ Newbie Links!
First of all, learn how to ask questions the smart way. Visit this site (There are translations into most languages, so not being able to read English is not an excuse.)
Beginner sites/topics:
Embedded Electronics – Beginning with everything
Book: Arnie Aardvark’s AVR Aper?u
Book and Dev Kits: Smiley Micros – Smiley frequently posts on this forum!
Arduino development board with a large community support
ZBasic microcontrollers, Basic programmed, AVRs inside
Learning C:
Programming Tutorial: C Made Easy
And don’t forget books!
The C Programming Language is almost a necessity.
Writing Solid Code I personally recommend this. Lots of good tips.
Again, check out Smiley’s book.
AVRFreaks Tutorials:
The AVR Tutorials forum of avrfreaks.net contains a lot of stuff for you:
[TUT] [SOFT] WinAVR Beginner’s Quick Start Guide for ATMEGA128
[TUT] [SOFT] Setting Up AVRStudio to use GCC
[TUT] [HARD] AVR Programming Methods (Loading Code On Your AVR)
[TUT] [C] Bit manipulation (AKA “Programming 101 For Embedded Code”)
[TUT] [C] Modularizing C Code: Managing large projects
[TUT] [C++] AVR C++ Micro How-To
Interrupt Handler Syntax, By Compiler
[TUT] [SOFT] Using the USART – Serial communications
[TUT] [SOFT] Using the USART – Interrupt driven serial comms
[TUT] [C] Newbie’s Guide to AVR Timers
[TUT] [C] Creating an RTC using an internal counter/timer
[TUT] [C] Using the EEPROM memory in AVR-GCC
[TUT] [C] GCC and the PROGMEM Attribute
[TUT] [C] Newbie’s Guide to the AVR ADC
Good stuff from the AVR-Libc Manual:
AVR-libc Manual: Frequently Asked Questions
AVR-libc Manual: Memory, Malloc, and External SRAM
AVR-libc Manual: Delay Routines
AVR-libc Manual: How to Build a Library
AVR-libc Manual: Mixing C and Assembly
Other good topics:
BASCOM-AVR – Basic for AVR processors
KAVRCalc – Calculator of AVR-specific stuff
Introduction to the “Volatile” Keyword
GCC Optimization flags – what they mean
[TUT] [C] Creating an RTC using an internal counter/timer
[DIS] [ASM] Dirty Math Tricks: Adventures in Division by Ten
Care and Feeding Of Watchdog Timers
Atmel App Notes – all sorts of good topics here!
Porting code from IAR to Avr-GCC
These tutorials may not answer all your questions, but they will allow you to get further faster. You’ll be able to ask better questions!
A list of RTOS links for AVR processors:
First off, check out the RTOS list in the Tuorials section: [TUT][SOFT] RTOS for AVR
All of the following are in the above tutorial
FreeRTOS: A Free RTOS for microcontrollers
AvrX: Real-Time Kernel for AVR processors
YAVRTOS: Yet Another Atmel AVR Real-Time Operating System
AVRAsmOS: A tiny OS for small AVRs
pc/OS RTOS Kernel (for larger AVR processors >= mega128)
uSmartX: Non-Preemptive Priority-based Multitask RTOS
Opex – good for smaller RAM, marked “beta”
uC/OS – Extensively tested, certified for avionics, but *not* cheap
Advanced Topics:
[MAN][HARD][SOFT] Hardware Random Number Generation
Charlieplexing: Reduced Pin-Count LED Display Multiplexing
How to use MMC/SDC (Attaching SD cards through the SPI)