Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

atmega8 won't start

atmega8 won't start

2006-03-31 by Massimo Banzi

Hello there


I'm having some weird issues with an Atmega8 based board where the  
processor won't start the program unless the
avrisp dongle is connected.


You can see the circuit here http://www.potemkin.org/uploads/Pid/ 
arduino_rs232_v2.png

the rs232 interface part is not installed.

I've checked and the fuses are programmed correctly (there are about  
1500 usb boards that we sold with the same fuse settings)

it also happened a few times with some usb boards that when they are  
powered via the external power supply they have troubles starting up  
while when powered by the USB they work correctly.


do you have any suggestions?


thanks!

Re: [AVR-Chat] atmega8 won't start

2006-04-01 by John Samperi

At 10:56 PM 31/03/2006, you wrote:
>an Atmega8 based board where the
>processor won't start the program unless the
>avrisp dongle is connected.

I guess the first 2 things I would check are:

1) Is the power supply correct without the dongle?
2) Is the reset pin high without the dongle?

Regards

John Samperi

********************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495       Fax (02) 9674-8745
Email: john@ampertronics.com.au
Website  http://www.ampertronics.com.au
*Electronic Design * Custom Products * Contract Assembly
********************************************************

Re: [AVR-Chat] atmega8 won't start

2006-04-02 by Shawn Wilton

You'll have to edit the permissions if you want anyone to look at that directory...


On 3/31/06, Massimo Banzi < massimo.banzi@potemkin.org> wrote:
Hello there


I'm having some weird issues with an Atmega8 based board where the
processor won't start the program unless the
avrisp dongle is connected.


You can see the circuit here http://www.potemkin.org/uploads/Pid/
arduino_rs232_v2.png

the rs232 interface part is not installed.

I've checked and the fuses are programmed correctly (there are about
1500 usb boards that we sold with the same fuse settings)

it also happened a few times with some usb boards that when they are
powered via the external power supply they have troubles starting up
while when powered by the USB they work correctly.


do you have any suggestions?


thanks!





Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AVR-Chat/

<*> To unsubscribe from this group, send an email to:
AVR-Chat-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/






--

Shawn Wilton (b9 Systems)
http://b9Systems.com <- New web page

Re: [AVR-Chat] atmega8 won't start

2006-04-02 by David VanHorn


You can see the circuit here http://www.potemkin.org/uploads/Pid/
arduino_rs232_v2.png
Pullup on /reset?
I can't pull up the link you gave, so I haven't seen the schematic.

I've checked and the fuses are programmed correctly (there are about 1500 usb boards that we sold with the same fuse settings)
CKOPT programmed? (xtal or resonator)

Re: [AVR-Chat] atmega8 won't start

2006-04-02 by James Hatley

Dave,
The link has been cut in the middle ... you have to copy and paste the two pieces together.
I couldn't see anything wrong unless R5 hasn't been installed.
Jim
Show quoted textHide quoted text
----- Original Message -----
Sent: Saturday, April 01, 2006 5:00 PM
Subject: Re: [AVR-Chat] atmega8 won't start


You can see the circuit here http://www.potemkin.org/uploads/Pid/
arduino_rs232_v2.png
Pullup on /reset?
I can't pull up the link you gave, so I haven't seen the schematic.

I've checked and the fuses are programmed correctly (there are about 1500 usb boards that we sold with the same fuse settings)
CKOPT programmed? (xtal or resonator)

Re: [AVR-Chat] atmega8 won't start

2006-04-02 by Henry Carl Ott

At 07:56 AM 3/31/2006, you wrote:
>Hello there
>
>
>I'm having some weird issues with an Atmega8 based board where the
>processor won't start the program unless the
>avrisp dongle is connected.
>
>
>You can see the circuit here 
><http://www.potemkin.org/uploads/Pid/arduino_rs232_v2.png>
>
>
>do you have any suggestions?

>thanks!

Is the power circuit the same as the USB version? (regulator?)

That 100uf on the output of the regulator might make vcc rise a little too 
slowly. Turning on the BOD might help.
But, you don't really need that cap, and it can hurt regulation. 
Try  putting in a 2.2 uf tantalum instead.

Just a possibility...

Re: [AVR-Chat] atmega8 won't start

2006-04-02 by Geo

On 1 Apr 2006, at 23:03, Henry Carl Ott wrote:

> At 07:56 AM 3/31/2006, you wrote:
> >Hello there
> >
> >
> >I'm having some weird issues with an Atmega8 based board where the
> >processor won't start the program unless the
> >avrisp dongle is connected.
> >
> >
> >You can see the circuit here 
> ><http://www.potemkin.org/uploads/Pid/arduino_rs232_v2.png>
> >
> >
> >do you have any suggestions?
> 
> >thanks!
> 
> Is the power circuit the same as the USB version? (regulator?)
> 
> That 100uf on the output of the regulator might make vcc rise a little too
> slowly. Turning on the BOD might help. But, you don't really need that cap, and
> it can hurt regulation. Try  putting in a 2.2 uf tantalum instead.
> 
> Just a possibility...
I would agree - does it start if you press the reset button?

George Smith

Re: [AVR-Chat] atmega8 won't start

2006-04-02 by Ned Konz

On Mar 31, 2006, at 4:56 AM, Massimo Banzi wrote:
>
> I'm having some weird issues with an Atmega8 based board where the
> processor won't start the program unless the
> avrisp dongle is connected.
>
>
> You can see the circuit here http://www.potemkin.org/uploads/Pid/
> arduino_rs232_v2.png
>
> the rs232 interface part is not installed.
>
> I've checked and the fuses are programmed correctly (there are about
> 1500 usb boards that we sold with the same fuse settings)

I think my friend just bought one of these; I could look at it on my  
scope and see if I can see anything.
Does the unit come with a bootloader or something?

Re: [AVR-Chat] atmega8 won't start

2006-04-02 by Ned Konz

On Mar 31, 2006, at 4:56 AM, Massimo Banzi wrote:
>
> I'm having some weird issues with an Atmega8 based board where the
> processor won't start the program unless the
> avrisp dongle is connected.
>
>
> You can see the circuit here http://www.potemkin.org/uploads/Pid/
> arduino_rs232_v2.png
>
> the rs232 interface part is not installed.
>
> I've checked and the fuses are programmed correctly (there are about
> 1500 usb boards that we sold with the same fuse settings)
>
> it also happened a few times with some usb boards that when they are
> powered via the external power supply they have troubles starting up
> while when powered by the USB they work correctly.
>
>
I took a look at the power-up on a USB one configured for external  
power. This board has a 47uF aluminum cap before and after the  
regulator, rather than the 100uF cap shown in the schematic.

Starting it up with a 12V/500mA brick by connecting the brick and  
turning on the switch on the power strip I got the attached trace at  
the output of the regulator. Notice the large burst of trash. At  
times (especially when turning the supply off) it was a bit in excess  
of 5V!

Your input cap of 47uF is probably just fine.

You might want to reduce the output cap size.

[ See Linear Tech's app note AN88 on the overvoltage transient  
problems caused by using ceramic input capacitors: http:// 
www.linear.com/pc/downloadDocument.do?navId=D4125 ]

Re: [AVR-Chat] atmega8 won't start

2006-04-03 by David VanHorn


Also, you should be able to reduce your power consumption a bit by changing CKOPT=1; read the description in the datasheet (you may not want to if you're in a noisy environment).
I'm gonna do my best here to not go off on a rant.
CKOPT should NEVER be left at 1 unless you're using a crystal specifically selected for low power operation. This will be something with a low loading cap spec like 12pF or thereabouts, and you'll be well advised to do oscillator margin tests.
As yet, I have not seen any guidance from atmel on selecting crystals for this mode. When I asked them about it directly they asked that I forward any information on any good candidates to them, which does not fill me with confidence.
Now you can leave CKOPT in the default state, and it will probably "work". Been there, done that, had a big mess as a result.
The Vittoz mode oscillator amplitude can be marginal, and what you'll see there is occasional odd behaviour like occasional skipped instructions, or baud rates that are a little bit slower than they should be, or if you're really lucky it will just not run.

Quartz Oscillator design info (was: atmega8 won't start)

2006-04-07 by Stefan Wimmer

Hi you Quartz and CKOPT tamers out there ;-)

I came across a nice set of documents about Crystal oscillator design 
located at: http://gaia.ecs.csus.edu/~bist/pll_team_docs/papers.html

The fist one (by Vittoz et. al.) is a little bit on the theoretical 
side, but the "Fox files" counterweight this with short practical 
application notes.

If you look at Vittoz' short CV at the end of the first document, you 
understand his 'professional fable' for ultra low power designs.

Have a nice read,
Stefan

Re: [AVR-Chat] Quartz Oscillator design info (was: atmega8 won't start)

2006-04-07 by David VanHorn


The fist one (by Vittoz et. al.) is a little bit on the theoretical
side, but the "Fox files" counterweight this with short practical
application notes.
That is good, I'd been looking for Vittoz's paper outside the walls of the IEEE. :)
Unfortunately, none of this gives us specific guidance on how to select crystals for this mode.
The biggest clue I have so far, is that such a crystal will have a low value specified for loading capacitance.

--
Feel the power of the dark side! Atmel AVR

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.