Programming AVR with Arduino

Now Reading
Programming AVR with Arduino



Program an AVR microcontroller with an Arduino! You can use almost any Arduino/AVR combination for this tutorial (I’m using an ATtiny2313 and Arduino Duemilanove). Follow along with the datasheet of your chip. Tutorial for Windows, Mac, and Linux.

Go to http://holachek.com/avr for more code, resources, and more.

Steps:
0. Introduction 0:06
1. Upload Arduino ISP to Arduino 1:26
2. Connect AVR 1:47
3. Install AVR toolchain 4:03
4. Configure Makefile 4:52
5. Write main.c 6:25
6. Upload code to AVR 8:39
7. Write more code 9:14

Code templates:
Makefile: https://gist.github.com/3304890
main.c: https://gist.github.com/3304608

AVR toolchain install links:
Windows: http://sourceforge.net/projects/winavr/files/WinAVR/
Mac: http://obdev.at/products/crosspack
Linux: http://ladyada.net/learn/avr/setup-unix.html

Fuse calculator: http://engbedded.com/fusecalc/

source

Comments

comments

What's your reaction?
Love It
0%
Like It
0%
Want It
0%
Had It
0%
Hated It
0%
About The Author
admin