avr-chat
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-chat] how to connect USBasp to attiny2313


From: Ormund Williams
Subject: Re: [avr-chat] how to connect USBasp to attiny2313
Date: Mon, 05 Aug 2013 10:11:07 -0400

On Mon, 2013-08-05 at 08:23 +0200, YuGiOhJCJ Mailing-List wrote:
> I have 3 questions (A, B and C).
> 
> A) Thank you for the image.
> I can see on your image that I am using the cable correctly.
> Indeed, I put the coloured part at the top, so the pin 1 and 2 are at the top.
> But I can see on your image that we see the back of the connector (the part 
> without the holes where we plug the pins).
> That's not what I am doing.
> Indeed, I am watching the connector in front of me, so the pin 1 and 2 are 
> reversed when I am using it.
> You can watch in the attached usbasp_connector_2_small.png file what I am 
> doing.
> Am I wrong ?
> 
That was wrong, and may have caused damage.

> B) Using your way to do (taking the connector from the back instead of from 
> the front), I can use avrdude 5.11.1:
> ---
> $ sudo avrdude -p t2313 -c usbasp -U flash:w:main.hex
> 
> avrdude: warning: cannot set sck period. please check for usbasp firmware 
> update.
> avrdude: error: programm enable: target doesn't answer. 1 
> avrdude: initialization failed, rc=-1
>          Double check connections and try again, or use -F to override
>          this check.
> 
> 
> avrdude done.  Thank you.
> ---
> 
> Using your way to do (taking the connector from the back instead of from the 
> front), I can use avrdude 5.2:
> ---
> $ sudo avrdude -p t2313 -c usbasp -U flash:w:main.hex
> 
> avrdude: error: programm enable: target doesn't answer. 1 
> avrdude: AVR device initialized and ready to accept instructions
> 
> Reading | ################################################## | 100% 0.00s
> 
> avrdude: Device signature = 0xffffff
> avrdude: Yikes!  Invalid device signature.
>          Double check connections and try again, or use -F to override
>          this check.
> 
> 
> avrdude done.  Thank you.
> ---
> 
> So you can see the avrdude device signature has changed: 0xffffff (instead of 
> 0x000000).
> Do you understand why ?
> You can watch in the attached usbasp_microcontrolleur.png file what I am 
> doing.
> 
When you had it reversed the MISO pin9 was grounded so all data will
come back as zeros.

> C) You say that there is a problem about the SCK frequency.
> Instead of open the usbasp to resolve this problem, what do you think about 
> changing the internal RC oscillator of my attiny2313 ?
> Indeed, if I put a component between the XTAL2 and XTAL1 pins (pins 4 and 5) 
> of my attiny2313 it may resolve the problem.
> This solution should avoid to open the programmer.
>
You cant change the frequency like that the internal RC oscillator is
not connected to any pins you must set the correct fuses and to do that
you need to program the chip.

I don't think you have a choice but to open the programmer or get a
different one.  


Regards

-- 
Ormund




reply via email to

[Prev in Thread] Current Thread [Next in Thread]