开发者

Atmel C compiler manual?

开发者 https://www.devze.com 2023-02-27 04:53 出处:网络
I\'m just getting started with the Attiny84 on AVR Studio 5 (based off of Visual Studio).However, I cant find the C programmers manual for it so I can figure out how to write ISR\'s, address GPIO pins

I'm just getting started with the Attiny84 on AVR Studio 5 (based off of Visual Studio). However, I cant find the C programmers manual for it so I can figure out how to write ISR's, address GPIO pins, etc... Any ideas where I could find the manual for 开发者_如何学Cit?


Just looking at the AVR Studio 5 web page, it looks as though it can use the GCC compiler--not sure what other compilers it might be able to use.

The GCC compiler is an open-source compiler used for many platforms, so documentation is available for that from many places on the Internet.

The other thing I could suggest is taking a different approach: start by looking at some publicly available code for the AVR. AVR Studio 5 is in beta, but I expect it wouldn't be hugely different from what has already been in use for several years (AVR Studio 4 etc). AVR Freaks is a good resource for looking at AVR code done by others, for a wide range of applications.


It takes a bit of hunting down, but according to this press release, the integrated compiler is GCC. The GCC documentation is at http://gcc.gnu.org/onlinedocs/ for all versions.

In the 4.6.0 release, AVR specific sections are:

  • 3.17.2 AVR Options
  • 6.37.8 AVR Variable Attributes

The Atmel AVR Studio 5 web page claims that it has several hundred example projects included, I am sure than many of them include interrupt handler examples.


So the official manual is located here (provided by Atmel Applications Engineer):

http://www.nongnu.org/avr-libc/user-manual/modules.html

It had all the information I needed to get up and running.


I too am just getting started with AVR Studio 5. When doing GPIO, interrupts etc, I think you will want to leverage the code already provided in the ASF (Atmel Software Framework). Under the Project menu use the "Select Drivers from ASF..." to select the pieces you need. Alternately you can load sample projects targeted for your processor. I found the AVR Studio screencasts on the Atmel site (they are also on YouTube) worth watching.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号