4

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?)

terrace
  • 1,334
  • 1
  • 15
  • 28
  • 1
    http://electronics.stackexchange.com/questions/2012/start-off-with-embedded-c-with-atmega32-atmega-avr-series http://electronics.stackexchange.com/questions/8909/good-resources-for-learning-about-my-stk500 http://electronics.stackexchange.com/questions/9172/resources-to-learn-about-the-avr-risc-architecture – Toby Jaffey Jan 26 '11 at 23:50

4 Answers4

1

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.

Peter Mortensen
  • 1,676
  • 3
  • 17
  • 23
old_timer
  • 8,203
  • 24
  • 33
  • fixed my loader to work with the uno and pro. – old_timer Feb 05 '11 at 06: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. – old_timer Feb 05 '11 at 08:43
1

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.

The_Major
  • 11
  • 2
0

Another interesting book, for beginner, is Make: AVR programming.
I liked it.

There is also a online repository for the book's code on GitHub.

Antonio
  • 1,626
  • 9
  • 15
0

I know this is an old post. But just in case someone hit it for the same question. I learnt from a Cornell U online youtube video by Bruce Land, recorded in 2012 and was a very good lecture series.

https://www.youtube.com/watch?v=dT0xxaG1DhM

senderj
  • 101