avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Using AVR Tools


From: E. Weddington
Subject: Re: [avr-gcc-list] Using AVR Tools
Date: Thu, 22 Jan 2004 09:45:15 -0700

On 22 Jan 2004 at 7:48, ks_347 wrote:

>  Thanks for help everyone.
>  1) So basically I am trying to write a simple program so that I can put "hi"
>  through serial communication.I am going to use C for writing the SW. So do I
>  need to read avr-libc thoroughly? Do I need to write my own Stdtypes.h ?

Not necessarily thoroughly. However, I would suggest looking in a couple of 
sections: Program Space Strings, and Integer Types. You don't have to write 
your own stdtypes.h. Just #include <inttypes.h>.

Also take a look at some of the UART source code that can be found in various 
User Projects in the AVR Freaks website, Academy tab (up top).
 
>  2) Basically this gnu compiler will have all the functions to set various
>  bits/register for different operation, is that correct?

No. Setting, clearing and toggling bits in a register (or any variable for that 
matter) is done through C's bitwise operators. I suggest looking in a good C 
reference for that. Alternatively, you can look at:
<http://www.avrfreaks.net/phorum/read.php?f=3&i=25730&t=25697#25730>

 
>  3) I also read that tutorial provided by E. Weddington on downloading,
>  installing WINAVR. That tutorial talked about adding various tools in
>  Tools->Options menu. What exactly is that? Do I need to do anything other 
> than
>  that? I guess it is for assembling the code and generating the hex file from
>  the C code.

Have a look at this tutorial by Colin O'Flynn:
<http://www.avrfreaks.net/Tools/ToolFiles/376/install_config_WinAVR.pdf>

HTH


reply via email to

[Prev in Thread] Current Thread [Next in Thread]