Hi friend,
I used the IDE juste for obtaining the .hex file.
After I upload this file in the attiny2313a by AVR Dragon.
I connected my attiny like that:
Pin 20 --> 5V
Pin 10 --> GND.
Pin 9 --> Led.
The wiring is not complicated.
Migh be the problem come from the file of management card in the IDE or the fuse in the ATMELSTUDIO.
Migh be another cause, I don't know
Pin 1 (Reset) needs to be pulled HIGH, i normally do via a 10K resistor, or it won't start up.
I do hope you are using a current limiting resistor icm the LED.
And that confirms a successful upload ?
The IDE creates the correct file, there was a small error in the boards.txt, which does not distinguish between the 2313 & 2313a, or well it tells avrdude incorrectly, but for the hex file it should be all good,
For pin 1 , I will connected that to HIGH via a resistor (10K) and I will inform after testing tomorrow.
About the Led, of course, I'm using a current limiting resistor.
My AVR Dragon confirm me a successful upload.
The IDE board consider the 2313 and 2313a as same.
Hi DEVA,
I connected the reset pin to 10k resistor and the other pin of resistor to 5V,but nothing happen.
for information : the ISP clock is set : 125Khz in the ATMEL STUDIO et 8 Mhz in the IDE.
By now i don't really believe you anymore. If the uploader confirms the upload and the connections are correct, it should work.
Even though the board you are using to power the chip is known to be of poor quality , (the regulators have apparently have no heatsink to speak of) the 2313's power requirements are so low it should not pose an issue, also because the 2313 will be happy with 2v at 8MHz.
The only thing i do differently is that is use Arduino IDE and an UNO as ISP uploader.
So then there is just a general advice. Disconnect everything, and re-connect everything, check that the ATtiny is actually getting the 5v. Confirm that the led is working by connecting it between 5v+ ( instead of GPIO 7) & GND
Confirm that the wires are actually making contact with the Pins of the IC (all looks good, but looking is no confirmation)
If that fails, how about just using the IDE to upload to the ATtiny ?
There was no real doubt there, and i am not familiar with Atmel studio.
up to 5.5v even, but not all clock frequencies are available at lower voltages, but this is not the issue here.
Ah. Also no success there on the outcome, but the upload was successful ?
I know, the reason i ask again is that in doing so people at times all of a sudden see that this wire isn't in that hole but in the one next to it, like with pin 7 with you). It never hurts to remind someone to talk a deep breath, have some coffee and start over. But i trust you have.
You said you tried that.
That is possible, and putting another one to exclude that as a possibility is a good idea.
Because if it's not the connections, it's not the sketch, it's not the upload method, it's not even the power supply, then that leaves the Chip itself. Let's hope it's that, otherwise i'm stumped.
good news friend,
The problem was the Chip itself, that fucntion with new one, but not like what I expected, because , I have two follwing unanswered questions :
1 ) the delay of blinking in th code is 1 second, but in my test the blinking is about 8 second! why?
2) the code uploaded in the new CPU was without bootloader? that's mean this CPU not need bootloader like attiny85, Why?
I'd say both questions share an answer, though it's guess work for me. The bootloader on an ATtiny13 is not more than setting the fuses for the clockspeed, and i recon that is why.
It may not have now, it is after all a GPIO pin in input mode with a tiny capacitor holding the input value.