Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

C programming on AVR

C programming on AVR

2008-03-21 by bronzefury

Hi,

I haven't seen a good website that teaches how to write C for the AVR 
and would like to get some opinion from the group about which book 
you'd recommend.  Sometimes, ratings on Amazon are a bit skewed.  I'd 
prefer to stick with AVR Studio and WinAVR. I already have the 
Kernighan & Ritchie book on C. 

From Amazon, I see the following available.  Which would you pick?

a) Embedded C Programming and the Atmel AVR by Richard Barnett, 2nd 
Edition, $70+

b) Embedded C Programming and the Atmel AVR by Richard Barnett, 1st 
Edition, $20+

c) C Programming for Microcontrollers Featuring ATMEL's AVR Butterfly 
and the free WinAVR Compiler by Joe Pardue (Paperback - Mar 2005) , 
$50+

Thanks,
bronze

Re: [AVR-Chat] C programming on AVR

2008-03-22 by Leon

----- Original Message ----- 
Show quoted textHide quoted text
From: "bronzefury" <bronzefury@yahoo.com>
To: <AVR-Chat@yahoogroups.com>
Sent: Friday, March 21, 2008 3:45 PM
Subject: [AVR-Chat] C programming on AVR


> Hi,
>
> I haven't seen a good website that teaches how to write C for the AVR
> and would like to get some opinion from the group about which book
> you'd recommend.  Sometimes, ratings on Amazon are a bit skewed.  I'd
> prefer to stick with AVR Studio and WinAVR. I already have the
> Kernighan & Ritchie book on C.

You don't need anything else, just look at a few embedded C examples and it 
should be obvious what you need to do.

Leon
--
Leon Heller
Amateur radio call-sign G1HSM
Yaesu FT-817ND and FT-857D transceivers
Suzuki SV1000S motorcycle
leon355@btinternet.com
http://www.geocities.com/leon_heller

Re: [AVR-Chat] C programming on AVR

2008-03-22 by James Wagner

On Mar 22, 2008, at 10:29 AM, Leon wrote:

> ----- Original Message -----
> From: "bronzefury" <bronzefury@yahoo.com>
> To: <AVR-Chat@yahoogroups.com>
> Sent: Friday, March 21, 2008 3:45 PM
> Subject: [AVR-Chat] C programming on AVR
>
> > Hi,
> >
> > I haven't seen a good website that teaches how to write C for the  
> AVR
> > and would like to get some opinion from the group about which book
> > you'd recommend. Sometimes, ratings on Amazon are a bit skewed. I'd
> > prefer to stick with AVR Studio and WinAVR. I already have the
> > Kernighan & Ritchie book on C.
>
> You don't need anything else, just look at a few embedded C examples  
> and it
> should be obvious what you need to do.
>
> Leon
> --
> Leon Heller
> Amateur radio call-sign G1HSM
> Yaesu FT-817ND and FT-857D transceivers
> Suzuki SV1000S motorcycle
> leon355@btinternet.com
> http://www.geocities.com/leon_heller
>
>
> 
As I recall, there is a C programming tutorial (book) written by  
"Smiley" for the Butterfly. It has been received well. You can find  
out about it on the AVRFreaks website.

Jim Wagner
Amateur call KA7EHK

[Non-text portions of this message have been removed]

Re: C programming on AVR

2008-03-22 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, "bronzefury" <bronzefury@...> wrote:
> Which would you pick?
I have seen the Smiley Micros book "C Programming For 
Microcontrollers" highly recommended and praised on the AVR Freaks 
forum.  The author posts there frequently and seems to be 
knowledgeable.

http://www.smileymicros.com

The AVR Freaks forum has a tutorial section that might be quite useful 
to you.

http://www.avrfreaks.net/index.php?name=PNphpBB2&file=index

Don Kinzer
ZBasic Microcontrollers
http://www.zbasic.net

Re: [AVR-Chat] C programming on AVR

2008-03-22 by Mike Harrison

On Sat, 22 Mar 2008 18:29:21 +0100, you wrote:

>----- Original Message ----- 
>From: "bronzefury" <bronzefury@yahoo.com>
>To: <AVR-Chat@yahoogroups.com>
>Sent: Friday, March 21, 2008 3:45 PM
>Subject: [AVR-Chat] C programming on AVR
>
>
>> Hi,
>>
>> I haven't seen a good website that teaches how to write C for the AVR
>> and would like to get some opinion from the group about which book
>> you'd recommend.  Sometimes, ratings on Amazon are a bit skewed.  I'd
>> prefer to stick with AVR Studio and WinAVR. I already have the
>> Kernighan & Ritchie book on C.
>
>You don't need anything else, just look at a few embedded C examples and it 
>should be obvious what you need to do.

I'd disagree - C  for  embedded apps, especially on 8-bit targets, has some very important
limitations that aren't typically covered by general C books, which don't tell you what to NOT do to
in order to make things fit and run effifciently in small systems. 

 A book aimed specifically at embedded apps (on any target CPU) will provide valuable information.
Many of the C compiler vendors have appnotes and guides, and even if you're not using their product,
much of the information and techniques will be generally applicable.

Re: [AVR-Chat] Re: C programming on AVR

2008-03-22 by Sander Pool

Yes, this is the book I was talking about. The freely available first 
chapter is enough to get your started and decide if the book and 
platform is for you. Great marketing by the author.

    Sander

Don Kinzer wrote:
Show quoted textHide quoted text
>
> --- In AVR-Chat@yahoogroups.com <mailto:AVR-Chat%40yahoogroups.com>, 
> "bronzefury" <bronzefury@...> wrote:
> > Which would you pick?
> I have seen the Smiley Micros book "C Programming For
> Microcontrollers" highly recommended and praised on the AVR Freaks
> forum. The author posts there frequently and seems to be
> knowledgeable.
>
> http://www.smileymicros.com <http://www.smileymicros.com>
>
> The AVR Freaks forum has a tutorial section that might be quite useful
> to you.
>
> http://www.avrfreaks.net/index.php?name=PNphpBB2&file=index 
> <http://www.avrfreaks.net/index.php?name=PNphpBB2&file=index>
>
> Don Kinzer
> ZBasic Microcontrollers
> http://www.zbasic.net <http://www.zbasic.net>
>
>

Re: C programming on AVR

2008-03-22 by bronzefury

Thanks for the input.  I will definitely look into choice c).  Choice 
a) had many more positive ratings than c) on Amazon but c) seems to 
be a good start.

I know C from a long time ago - during hobby programming projects and 
in college classes so I've forgotten quite a bit.  Being an ASIC guy, 
learning AVR assembly was quite easy but I don't think it can scale 
as easily to more complicated projects.  

Btw, I see a lot of opinion here about learning C.  My goal is to 
learn how to use C on an AVR - restrictions and all.


--- In AVR-Chat@yahoogroups.com, "bronzefury" <bronzefury@...> wrote:
>
> Hi,
> 
> I haven't seen a good website that teaches how to write C for the 
AVR 
> and would like to get some opinion from the group about which book 
> you'd recommend.  Sometimes, ratings on Amazon are a bit skewed.  
I'd 
> prefer to stick with AVR Studio and WinAVR. I already have the 
> Kernighan & Ritchie book on C. 
> 
> From Amazon, I see the following available.  Which would you pick?
> 
> a) Embedded C Programming and the Atmel AVR by Richard Barnett, 2nd 
> Edition, $70+
> 
> b) Embedded C Programming and the Atmel AVR by Richard Barnett, 1st 
> Edition, $20+
> 
> c) C Programming for Microcontrollers Featuring ATMEL's AVR 
Butterfly 
Show quoted textHide quoted text
> and the free WinAVR Compiler by Joe Pardue (Paperback - Mar 2005) , 
> $50+
> 
> Thanks,
> bronze
>

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.