Am Freitag, den 02.08.2013, 07:22 +0200 schrieb YuGiOhJCJ Mailing-List: > Hello, > > I have just bought a USBasp programmer [1] to program an ATMEL attiny2313 > micro-controller [2]. > I would like to use avrdude to program my micro-controller. > > On [1] I can see the schematic of USBasp whereas in [2] I can see the > schematic of attiny2313. > But it is not enough because I can't guess how to link the 10 pins of USBasp > with the 20 pins of attiny2313. > I can see the VCC and the GND in each of them, so I can imagine that I must > link like this: > > USBasp -> attiny2313 > --- > VCC (2) -> VCC (20) > GND (10) -> GND (10) > --- > > But I am not sure. > How to know what to do with the 8 other pins of USBasp ? > > Thank you. > Best regards.
Hi, that's very simple. As you see in the datasheet, /Reset is on pin 1, SCL on 19, MISO on 18, MOSI on 17. It is very important that the controller ha a clock signal. By default, it is the internal oscillator, with a prescaler by 8. So you have to set your programmer to "slow clock" propably. If you want to change the clock source, you have to change the fuse-bits. This could be a trap; if you set them in a wrong way, the controller needs propably an external clock. A very good site for the programming of fuse-bytes is http://www.engbedded.com/fusecalc they generate the code to change the fusebits for avrdude. I wish you good luck. Have fun. -- Mit freundlichen Grüßen / kind regards Andreas Graebe _______________________________________________ AVR-chat mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/avr-chat
