Difference between revisions of "Programming AVR micro-controllers"

From ShawnReevesWiki
Jump to navigationJump to search
Line 3: Line 3:
 
Lady Ada writes a tutorial for learning to program AVR micro-controllers, including setting up a CLI-based environment with gcc. <ref>http://www.ladyada.net/learn/avr/index.html</ref>
 
Lady Ada writes a tutorial for learning to program AVR micro-controllers, including setting up a CLI-based environment with gcc. <ref>http://www.ladyada.net/learn/avr/index.html</ref>
 
==Uploading programs==
 
==Uploading programs==
There are many ways to upload programs onto chips.
+
There are many ways to upload programs onto chips. The key is getting the bytes of the compiled program onto the target chip, usually done by an intermediating micro-controller known as a programmer.
 
===Arduino as ISP===
 
===Arduino as ISP===
 
The Arduino community provides a simple way to use an existing Arduino to program a new AVR chip, at least to burn an Arduino bootloader onto it. An AVR on a breadboard, optionally with a crystal oscillator, is connected by four wires to an Arduino, which takes the program from the computer and programs it onto the AVR.<ref>http://arduino.cc/en/Tutorial/ArduinoISP</ref>
 
The Arduino community provides a simple way to use an existing Arduino to program a new AVR chip, at least to burn an Arduino bootloader onto it. An AVR on a breadboard, optionally with a crystal oscillator, is connected by four wires to an Arduino, which takes the program from the computer and programs it onto the AVR.<ref>http://arduino.cc/en/Tutorial/ArduinoISP</ref>
  
 
Arduino forums user Lauszus wrote a lengthy tutorial on using ArduinoISP to program AVRs in general.<ref>http://forum.arduino.cc/index.php?topic=65099.0</ref>
 
Arduino forums user Lauszus wrote a lengthy tutorial on using ArduinoISP to program AVRs in general.<ref>http://forum.arduino.cc/index.php?topic=65099.0</ref>
 +
 +
===Dedicated AVR programmers===
 +
;Tiny AVR Programmer:Meant to program ATtiny45 and ATtiny85, 8-pin DIP controllers from Atmel. One of the cheapest programming platforms.
 +
:https://www.sparkfun.com/products/11801
  
 
==References==
 
==References==

Revision as of 09:19, 19 March 2014

This document is intended to collect tips on programming AVR micro-controllers, such as Atmel's ATMEGA328P.

Developing programs

Lady Ada writes a tutorial for learning to program AVR micro-controllers, including setting up a CLI-based environment with gcc. [1]

Uploading programs

There are many ways to upload programs onto chips. The key is getting the bytes of the compiled program onto the target chip, usually done by an intermediating micro-controller known as a programmer.

Arduino as ISP

The Arduino community provides a simple way to use an existing Arduino to program a new AVR chip, at least to burn an Arduino bootloader onto it. An AVR on a breadboard, optionally with a crystal oscillator, is connected by four wires to an Arduino, which takes the program from the computer and programs it onto the AVR.[2]

Arduino forums user Lauszus wrote a lengthy tutorial on using ArduinoISP to program AVRs in general.[3]

Dedicated AVR programmers

Tiny AVR Programmer
Meant to program ATtiny45 and ATtiny85, 8-pin DIP controllers from Atmel. One of the cheapest programming platforms.
https://www.sparkfun.com/products/11801

References