0
Offline
Newbie
Karma: 0
Posts: 20
Arduino rocks (it really does!)
|
 |
« on: August 28, 2007, 05:48:32 pm » |
I've been looking at Arduino for my first microcontroller board and it looks great, but I have just one concern.
I like assembly programming, will I be able to program in AVR assembly directly? Can I use this board as a normal AVR development board in addition to using the IDE and high level language?
|
|
|
|
|
Logged
|
|
|
|
|
Forum Administrator
Cambridge, MA
Offline
Faraday Member
Karma: 8
Posts: 3532
|
 |
« Reply #1 on: August 28, 2007, 06:18:12 pm » |
Sure, you can use assembly. The Arduino software (IDE) doesn't really support assembly (though you should be able to do it with inline assembly in a .c file), but the hardware will run anything (any .hex file) you give it, and there's a makefile to build and upload code from the command line.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 20
Arduino rocks (it really does!)
|
 |
« Reply #2 on: August 28, 2007, 07:14:13 pm » |
Oh good, I was hoping for that answer  Besides not being able to use (many?) other AVR chips in the board, I don't see a single downside to Arduino. Plus it's full of open source goodness that gives me that fuzzy feeling. I'll go order one now.
|
|
|
|
|
Logged
|
|
|
|
|
Montréal, Qc
Offline
Full Member
Karma: 0
Posts: 185
Practice safe hex!
|
 |
« Reply #3 on: August 28, 2007, 09:01:45 pm » |
Assembly you said heh? Maybe you could come into the project by releasing a little tutorial/howto on getting started with Assembly on an AVR for the ASM neophytes? I can't speak for others but I'd totally digg it! Learning assembly is one of the reason I got into uC's, I just never ended up doing it :/
|
|
|
|
|
Logged
|
"Pilots believe in a clean living... they never drink wisky from a dirty glass."
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 20
Arduino rocks (it really does!)
|
 |
« Reply #4 on: August 28, 2007, 09:24:41 pm » |
Absolutely. I'm going to order from Sparkfun tomorrow (looks like they just got some more in, I could have sworn they were out yesterday), so I hope to be hacking on it by next week. After I figure out the AVR tools and how to get files programmed, I'll write up a document.
|
|
|
|
|
Logged
|
|
|
|
|
Montréal, Qc
Offline
Full Member
Karma: 0
Posts: 185
Practice safe hex!
|
 |
« Reply #5 on: August 28, 2007, 09:27:36 pm » |
Ladyada has a bunch in stock too if ever Sparkfun is out again tomorrow. http://www.adafruit.com
|
|
|
|
|
Logged
|
"Pilots believe in a clean living... they never drink wisky from a dirty glass."
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 20
Arduino rocks (it really does!)
|
 |
« Reply #6 on: August 29, 2007, 12:06:40 am » |
Oh cool, that site has some other stuff I'm interested in. I might as well get a minipov kit while I'm at it. I can modify it to make one of those super-cool spinning POV clocks.
|
|
|
|
|
Logged
|
|
|
|
|
Montréal, Qc
Offline
Full Member
Karma: 0
Posts: 185
Practice safe hex!
|
 |
« Reply #7 on: August 29, 2007, 12:16:54 am » |
If you're really getting into uC's and will want to use the chip standalone (without the arduino board but with the arduino API/bootloader) it might be worth investing in a programmer kit (which ever suits your needs will do, parallel probably being the easiest. She has some nice kits, that's for sure  Don't forget you can also just make your own if you have some spare parts :p
|
|
|
|
« Last Edit: August 29, 2007, 12:17:41 am by xSmurf »
|
Logged
|
"Pilots believe in a clean living... they never drink wisky from a dirty glass."
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 20
Arduino rocks (it really does!)
|
 |
« Reply #8 on: August 29, 2007, 12:46:58 am » |
I saw the schematic for the parallel programmer. Is that all that's needed, or is there more circuitry on the Arduino related to programming? If that's all that's needed for programming AVR chips, I don't think I'll even need a kit. I saw similar plans for a serial programmer with just a few zener diodes (even better, I wonder if I even have a parallel port on my new machine?).
But anyway, I'll be playing with the Arduino for a while first. I think I can live with the rather small bootloader program on there.
|
|
|
|
|
Logged
|
|
|
|
|
Montréal, Qc
Offline
Full Member
Karma: 0
Posts: 185
Practice safe hex!
|
 |
« Reply #9 on: August 29, 2007, 01:14:55 am » |
It is. Happy Programming!  (I bought a USBTiny as I don't have a Parallel port EDIT: And I was lazy :p)
|
|
|
|
« Last Edit: August 29, 2007, 01:16:57 am by xSmurf »
|
Logged
|
"Pilots believe in a clean living... they never drink wisky from a dirty glass."
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 20
Arduino rocks (it really does!)
|
 |
« Reply #10 on: August 29, 2007, 09:39:12 pm » |
OK, ordered. I went ahead and ordered some ATtiny13's as well, see if I can get those programmed. No dev board goodness, but I think I'll be able to get them working.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 3
Arduino rocks
|
 |
« Reply #11 on: September 14, 2007, 09:02:12 am » |
I think the answers to Horace's question answered this, but I want to be double sure...
I want to get into the micro controllers, and have decided on the AVR. If I start out with the Adruino, could I later use the board as a AVR development platform. I.E. remove the boot loader, and use WinAVR and straight C or C++ and gcc to code? or would I have to get a new board?
Thanks!
|
|
|
|
|
Logged
|
|
|
|
|
Forum Administrator
Cambridge, MA
Offline
Faraday Member
Karma: 8
Posts: 3532
|
 |
« Reply #12 on: September 14, 2007, 10:07:26 am » |
You can indeed. When it comes down to it, there's just an ATmega chip on the board, you can do whatever you want with it.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 4
kokopeli
|
 |
« Reply #13 on: April 09, 2010, 09:09:06 pm » |
Well I have somewhat the same question, so I will try to wake up this sleeping thread  Yikes - over three years old! A am going to try to move from MicroChip PIC and MPLAB IDE to Arduino and the Arduino IDE. I am using Ubuntu Linux version of the Arduino (0018) IDE, RBBB, BBB, and USB-BUB boards. I have lots of experience with PICs and MPLAB. Mostly with assembly language. I look at the manual and help for Arduino IDE help and I don't see an easy way to put assembly language in with the Arduino Ccode. I have some applications that I am sure will require the precise timing and speed of assembly language. I would like to write a mix of C and assembly and be able to call functions written in assembly from the C functions. Is there an easy way to add that functionality to the Arduino IDE? I would appreciate it if someone could point me to the information that I need to do this. Thanks, Walt Bankes
|
|
|
|
« Last Edit: April 09, 2010, 09:48:19 pm by wjbite »
|
Logged
|
|
|
|
|
|
|
|