Tell me more ×
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free, no registration required.

I've been using Arduino for awhile and now I'm interested in programming AVR microcontrollers without the Arduino framework.

What is a good reference for beginning AVR programming in C? A book is preferred, but online resources are also welcome.

I'm looking for something that will start with basic setup on a *NIX platform, start with examples and cover a number of core topics. Something similar to K&R, but oriented toward microcontrollers would work well.

(Related question: Linux / Mac AVR Programming Suite?)

share|improve this question

2 Answers

See http://www.dwelch.com/arduino/. No C programming, but I do use Linux, and it does get you out of the Arduino framework. It doesn't work with all the cards, though. LilyPad, yes, Pro Mini, yes, but not the Uno and not the Pro.

share|improve this answer
fixed my loader to work with the uno and pro. – dwelch Feb 5 '11 at 6:50
added a C programming example to the bottom of the web page. Are you looking to learn the C programming language, or do you mean just not programming C in their sandbox/environment but good old command line linux. The examples and loader program on the page I linked were compiled and loaded from a linux host. – dwelch Feb 5 '11 at 8:43

Have a look at Joe Pardue's C programming for microcontrollers at Smiley Micros

http://www.smileymicros.com/index.php?module=pagemaster&PAGE_user_op=view_page&PAGE_id=26&MMN_position=2:2

It has a windows bias but as it relies on WinAVR and therefore AVRdude it is easy to use from a nix perspective with the avr-gcc toolchain.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.