Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

AVR problem with programming using ADD parallel port programmer

Status
Not open for further replies.

wakaka

Full Member level 4
Joined
Dec 7, 2005
Messages
237
Helped
10
Reputation
20
Reaction score
6
Trophy points
1,298
Activity points
2,931
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.

The question is y? plz help, thanks.
 

unlock attiny2313

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
 

how to unlock attiny2313

How change AT2313 on tiny2313
 

ispprog atmega8

Tiny2313 does have internal clock so the only reason i can see why it wount work is if the fuses has been set to external oscillator.
 

attiny2313 unlock

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.
 

automatic voltage regulator problem and solution

Tiny2313 internal clock is disabled by default and ATmega8535 internal clock is enabled by default
 

what are the avr problem and there solution

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.
 

download avreal32

anyone? help?
 

avr simple hv programmer

wakaka said:
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.
hi
see:

wakaka said:
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
 

atmega8 12mhz crystal fuse bits

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
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top