Hello everybody, nice to finally have a valid question that wasn't answered before (or at least I couldn't find using the search here).
So I need to upload .hex (NOT the bootloader) file to an atmega8515, cheaply, since it will probably be an one time only type of thing, ruling out the need to build devices such as usbasp, or buying other programmers.
I've read the tutorials here, but they are geared towards uploading the bootloader only.
arduino.cc/en/Tutorial/ArduinoToBreadboard
The diagrams shown here are specific about using the atmega168, and no explanation about what each pin connection is doing makes it very hard for me to adapt it to the 8515 pins.
arduino.cc/en/Tutorial/ArduinoISP
I'm thinking I can do this using the ATmega328p with the Arduino bootloader on it and use an Arduino as an USB-to-serial convertor,
AVRdude, MegaISP, the 8515 itself and a breadboard or build a simple target board like:
evilmadscientist/avrtargetboards
Here are the problems/questions:
-cant find a description on what each pin on the arduino will do when is "avr-isp mode"
-the 8515 is in a 40 pin DIP package form, I could not find a good schematic/ plan on building a target board for it, or protoboard plans. most are for 28 DIP. Do I need a crystal oscillators for this?
-I managed to get the spec sheet for the 8515, but cant figure how to manage things on the arduino side. I'm confused :o
any help will be much appreciated, here are the details of what I have and need to do:
-I need to connect pins:
ISP connector ATMEGA8515 pin number
MOSI 6
RST 9
SCK 8
MISO 7
GND 20
VDD 40
So how do I go about this on the arduino? how do I set the connections from the arduino to the microcontroller? what should I run as software on the arduino for it to work with AVRdude? Do I need other components besides the duemillanove, protoboard, wires? can I set fusebits with this? whew, I know its a heck of a lot of newbeesh questions, but I really appreciate your help.
here is what I have to work with:
-arduino duemillanove
-protoboard, wires
-mac (osx 10.5)
-atmega8515
Cheers,
OCT