Hi all, I;m new in AVR. I've just built one ADD parallel port programmer to program AVR, software is ispprog.
(1)I connect the MOSI, MISO, SCK, RST, GND, VCC pin to ATmega8535. i was able to program it.
(2) I connect MOSI, MISO,SCK,RST,GND,VCC pin to Attiny2313. I cant program it. Only after i add in a crystal to the Xtal1 and Xtal2 pin of Attiny2313, then only i can program it.
Hi
I'm not sure but as I remember, Attiny2313 has no internal clock.
if you set fuse bit of ATmega8535 to work with crystal then you can not program it without any crystal.
regards
if not wrong , when supplied from factory most of the avr's are set to internal rc oscillator and Bjorn is right saying that avr's fuses you use is set to external crystal oscillator.
This is not good.....my ATmega8 is locked......I've tried to supply square wave with 2Mhz freq to XTAL1 pin, but it fail to detect it.
I think my ISP programmer tends to mis-program the fuse bit as i din toggle the fuse bit.
Can anyone suggest:
1. A DIY HV programmer with schematic and firmware for me to unlock my AVRs
2. A simple DIY parallel ISP programmer for AVR.
Thanks.
Added after 12 minutes:
another problem i face is, the programmer I'm using is **broken link removed**
I've set the fuse bit of ATMEGA8 to CKOPT=0
CKSEL3...0 = 1 (meaning using 12Mhz crystal)
I've connected the Xtal1 and Xtal2 pin to a 12Mhz crystal, then i start programming.
The problem is it always stops half way before finish programming.
Then i set it back using internal clock (CKSEL3..0 = 0001), and try to program the same hex file, then it will be programmed smoothly.
So actually wats the problem? is the Programmer problem? software problem? M8 problem?fuse bit setting incorrect?
Plz advise, thanks.
This is not good.....my ATmega8 is locked......I've tried to supply square wave with 2Mhz freq to XTAL1 pin, but it fail to detect it.
I think my ISP programmer tends to mis-program the fuse bit as i din toggle the fuse bit.
Can anyone suggest:
1. A DIY HV programmer with schematic and firmware for me to unlock my AVRs
another problem i face is, the programmer I'm using is h**p://www.amwaw.edu.pl/~adybkows/elka/ispprog.html
I've set the fuse bit of ATMEGA8 to CKOPT=0
CKSEL3...0 = 1 (meaning using 12Mhz crystal)
I've connected the Xtal1 and Xtal2 pin to a 12Mhz crystal, then i start programming.
The problem is it always stops half way before finish programming.
Then i set it back using internal clock (CKSEL3..0 = 0001), and try to program the same hex file, then it will be programmed smoothly.
So actually wats the problem? is the Programmer problem? software problem? M8 problem?fuse bit setting incorrect?
Plz advise, thanks.
try another programmer such as "simple electronics programmer" in bascom help.
download a trial version of bascom-avr and use it. https://www.mcselec.com
regards
i had similar problem .. for this purpose i use avreal32 programmer sw which can supply clock for your mcu at lpt pin. in this case you can program mcu even if you switched accidently to ext. osc