4
votes
\$\begingroup\$

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

\$\endgroup\$
1
vote
\$\begingroup\$

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.

\$\endgroup\$
  • \$\begingroup\$ fixed my loader to work with the uno and pro. \$\endgroup\$ – old_timer Feb 5 '11 at 6:50
  • \$\begingroup\$ 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. \$\endgroup\$ – old_timer Feb 5 '11 at 8:43
1
vote
\$\begingroup\$

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.

\$\endgroup\$
0
votes
\$\begingroup\$

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.

\$\endgroup\$
0
votes
\$\begingroup\$

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

\$\endgroup\$
  • 1
    \$\begingroup\$ Link only answers are discouraged as these link can become dead and the answer become useless. \$\endgroup\$ – Bence Kaulics Aug 30 '16 at 10:14

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