AVR instruction set with Arduino Duemilanove?

Hey guys,

New to the forums, but have been using the arduino website for a lot of resources. I am currently taking an on-line course and the instructor wanted us to get an AVR Atmega to perform some of the assignments. The problem that I address to the professor is that I currently have an Arduino Duemilanove, which I believe is based on an AVR platform. It turns out that the assignment requires us to program using the cpu instruction set. From my basic understanding with the Arduino is that it uses a C/C++ base programming language.

My professor states that…

“For this course, we want to see the connection between the code we write and the internal execution in the CPU, so we will be programming using the CPU’s instruction set. If you can do that on this baord, it’s fine.”

So… is it possible to do it with the Arduino?

I really appreciate everyone for taking the time to help me out! :slight_smile:

I’ve not done it myself but you can put individual assembly language statements in your Arduino sketch; see the last messages in this thread: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1212174920/29#29 and this one: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1244421914/2#2

It looks like the general opinion is that if you really want to use assembly language you should forget the Arduino IDE and use the AVR-GCC compiler directly or download Atmel’s own free IDE which is called AVR Studio.

Hopefully someone who has done some of this will chime in.

Andrew