Programming an atmega with the Arduino IDE
from this post (http://letsmakerobots.com/node/5593 ) by Rudolph i learned that you can program an atmega with the arudino IDE even if you haven't got an arduino board.
What i have here with me now is an atmega328, a serial programmer (precisely this one: http://www.sparkfun.com/commerce/product_info.php?products_id=14 ).
The point is that I do not know how to connect the programmer to the atmega328. I've seen that arduino boards usually have a 3 by 2 array (6 pin total) of male headers while my programmer has a 5 by 2 socket (10 pin total). I've arranged the pins this way (http://www.olimex.com/dev/images/avr-icsp-10.gif ) but i'm not totally sure it is correct, since the header "size" is different.
...and since i'm afraid to screw up the chip i'm asking you if it is correct before trying to make it work. (I'm pretty sure it's right, cause no matter what size it is, connections shouldn't change, but i feel it's safer for the chip to ask you before i do anything).
Also: i've written "avrisp" in the preferences.txt file under the upload entry (wasn't really upload but something similar, but i guess you got what i mean). I think it should be correct for the type of programmer i have.
Thank you! :=)