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

asked Jan 26, 2011 at 21:38
\$\endgroup\$
1

4 Answers 4

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.

Peter Mortensen
1,6933 gold badges17 silver badges23 bronze badges
answered Feb 3, 2011 at 4:55
\$\endgroup\$
2
  • \$\begingroup\$ fixed my loader to work with the uno and pro. \$\endgroup\$ Commented Feb 5, 2011 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\$ Commented Feb 5, 2011 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.

answered Feb 4, 2011 at 10:54
\$\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.

answered Aug 30, 2016 at 8:08
\$\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

answered Aug 30, 2016 at 9:00
\$\endgroup\$
1
  • 1
    \$\begingroup\$ Link only answers are discouraged as these link can become dead and the answer become useless. \$\endgroup\$ Commented Aug 30, 2016 at 10:14

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.