Yahoo Groups archive

AVR-Chat

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

Thread

Atmega64 external cristal

Atmega64 external cristal

2005-07-18 by Amir Rahafrooz

Dear everybody!
I have some problem with ATmega64.when I set its Fuse_bits to use an 
external cristal(7.32 MHz)as system clock, it goes wrong and I can't 
reprogram it through ISP any more.can anyone help me?
thanks!

Re: [AVR-Chat] Atmega64 external cristal

2005-07-18 by Dave VanHorn

At 01:21 PM 7/18/2005, Amir Rahafrooz wrote:
>Dear everybody!
>I have some problem with ATmega64.when I set its Fuse_bits to use an
>external cristal(7.32 MHz)as system clock, it goes wrong and I can't
>reprogram it through ISP any more.can anyone help me?
>thanks!

First, have you set the fuse for CKOPT?
Second, you realize that your AVRISP clock can only be a max of 1/4 
the crystal freq?
I hope your program is VERY small, because loading on that crystal 
will be VERY slow.

Re: [AVR-Chat] Atmega64 external cristal

2005-07-18 by Ralph Hilton

On Mon, 18 Jul 2005 18:21:09 -0000 you wrote:

>Dear everybody!
>I have some problem with ATmega64.when I set its Fuse_bits to use an 
>external cristal(7.32 MHz)as system clock, it goes wrong and I can't 
>reprogram it through ISP any more.can anyone help me?
>thanks! 

Which fuse bits are you setting exactly? Is your xtal wired with 2 capacitors?
What are you programming with?
--
Ralph Hilton
http://www.ralphhilton.org
C-Meter: http://www.cmeter.org
FZAOINT http://www.fzaoint.net

Re: [AVR-Chat] Atmega64 external cristal

2005-07-18 by John Samperi

At 04:28 AM 19/07/2005, you wrote:
>I hope your program is VERY small, because loading on that crystal
>will be VERY slow.

7.32 MHz Slow? :-) I use 8MHz as standard in all boards except a M64
board which uses 16MHz.

Regards

John Samperi

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

Re: [AVR-Chat] Atmega64 external cristal

2005-07-18 by Dave VanHorn

At 06:16 PM 7/18/2005, John Samperi wrote:
>At 04:28 AM 19/07/2005, you wrote:
> >I hope your program is VERY small, because loading on that crystal
> >will be VERY slow.
>
>7.32 MHz Slow? :-) I use 8MHz as standard in all boards except a M64
>board which uses 16MHz.

Ok!  I mis-read that, I thought he was using a 32kHz crystal!

Re:Re: Atmega64 external cristal

2005-07-19 by Amir Rahafrooz

--- In AVR-Chat@yahoogroups.com, Ralph Hilton <ralph@r...> wrote:
> On Mon, 18 Jul 2005 18:21:09 -0000 you wrote:
> 
> >Dear everybody!
> >I have some problem with ATmega64.when I set its Fuse_bits to use 
an 
> >external cristal(7.32 MHz)as system clock, it goes wrong and I 
can't 
> >reprogram it through ISP any more.can anyone help me?
> >thanks! 
> 
> Which fuse bits are you setting exactly? Is your xtal wired with 2 
capacitors?
> What are you programming with?
> --
> Ralph Hilton
> http://www.ralphhilton.org
> C-Meter: http://www.cmeter.org
> FZAOINT http://www.fzaoint.net

I set cksel 3..0 and ckopt unprogramed(1), with two 22pf capacitors.
I'm writing my programs with codevision2.38 and proram it with 
ponyprog.

Re: [AVR-Chat] Re:Re: Atmega64 external cristal

2005-07-19 by John Samperi

At 01:06 PM 19/07/2005, you wrote:
>I set cksel 3..0 and ckopt unprogramed(1), with two 22pf capacitors.
>I'm writing my programs with codevision2.38 and proram it with
>ponyprog.

Do you have an oscilloscope or a frequency counter to see
if your oscillator is actually oscillating? Maybe a short
or open circuit track or a faulty crystal. All that cksel,
ckopt is confusing to me. I have an AVRISP and use Studio
to program the chips. I simply tick the boxes and use the
last one on the list for both 8 and 16MHz.

>cksel 3..0 and ckopt unprogramed(1)


That looks ok >> BUT << there may be some confusion about
ticking the boxes with ponyprog. If you have plenty of
chips you may want to try reversing all the bits...nothing
much to lose but another chip :-)



Regards

John Samperi

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

Re: [AVR-Chat] Re:Re: Atmega64 external cristal

2005-07-19 by Ralph Hilton

On Tue, 19 Jul 2005 03:06:16 -0000 you wrote:

>--- In AVR-Chat@yahoogroups.com, Ralph Hilton <ralph@r...> wrote:
>> On Mon, 18 Jul 2005 18:21:09 -0000 you wrote:
>> 
>> >Dear everybody!
>> >I have some problem with ATmega64.when I set its Fuse_bits to use 
>an 
>> >external cristal(7.32 MHz)as system clock, it goes wrong and I 
>can't 
>> >reprogram it through ISP any more.can anyone help me?
>> >thanks! 
>> 
>> Which fuse bits are you setting exactly? Is your xtal wired with 2 
>capacitors?
>> What are you programming with?
>> --
>> Ralph Hilton
>> http://www.ralphhilton.org
>> C-Meter: http://www.cmeter.org
>> FZAOINT http://www.fzaoint.net
>
>I set cksel 3..0 and ckopt unprogramed(1), with two 22pf capacitors.
>I'm writing my programs with codevision2.38 and proram it with 
>ponyprog.

I had a lot of problems with Ponyprog. I suspect that your problem wil go if you use an STK500 or
AVRISP with AVRstudio or the programmer built into CVAVR.
--
Ralph Hilton
http://www.ralphhilton.org
C-Meter: http://www.cmeter.org
FZAOINT http://www.fzaoint.net

Re: [AVR-Chat] Re:Re: Atmega64 external cristal

2005-07-19 by William LAI

I suspect you might have set CKSEL to '0000' which
selects external clock.

Try to use a crystal oscillator or build you own and
feed the clock to XTAL1 pin.  An alternative is to use
a AVR chip with CKOUT like ATmega48/88/168/165.

William Lai
MCU ProShop
http://www.mcuproshop.com


--- Ralph Hilton <ralph@ralphhilton.org> wrote:

> On Tue, 19 Jul 2005 03:06:16 -0000 you wrote:
> 
> >--- In AVR-Chat@yahoogroups.com, Ralph Hilton
> <ralph@r...> wrote:
> >> On Mon, 18 Jul 2005 18:21:09 -0000 you wrote:
> >> 
> >> >Dear everybody!
> >> >I have some problem with ATmega64.when I set its
> Fuse_bits to use 
> >an 
> >> >external cristal(7.32 MHz)as system clock, it
> goes wrong and I 
> >can't 
> >> >reprogram it through ISP any more.can anyone
> help me?
> >> >thanks! 
> >> 
> >> Which fuse bits are you setting exactly? Is your
> xtal wired with 2 
> >capacitors?
> >> What are you programming with?
> >> --
> >> Ralph Hilton
> >> http://www.ralphhilton.org
> >> C-Meter: http://www.cmeter.org
> >> FZAOINT http://www.fzaoint.net
> >
> >I set cksel 3..0 and ckopt unprogramed(1), with two
> 22pf capacitors.
> >I'm writing my programs with codevision2.38 and
> proram it with 
> >ponyprog.
> 
> I had a lot of problems with Ponyprog. I suspect
> that your problem wil go if you use an STK500 or
> AVRISP with AVRstudio or the programmer built into
> CVAVR.
> --
> Ralph Hilton
> http://www.ralphhilton.org
> C-Meter: http://www.cmeter.org
> FZAOINT http://www.fzaoint.net
> 



		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs

Re:Re: Atmega64 external cristal

2005-07-19 by Amir Rahafrooz

--- In AVR-Chat@yahoogroups.com, Ralph Hilton <ralph@r...> wrote:
> On Tue, 19 Jul 2005 03:06:16 -0000 you wrote:
> 
> >--- In AVR-Chat@yahoogroups.com, Ralph Hilton <ralph@r...> wrote:
> >> On Mon, 18 Jul 2005 18:21:09 -0000 you wrote:
> >> 
> >> >Dear everybody!
> >> >I have some problem with ATmega64.when I set its Fuse_bits to 
use 
> >an 
> >> >external cristal(7.32 MHz)as system clock, it goes wrong and I 
> >can't 
> >> >reprogram it through ISP any more.can anyone help me?
> >> >thanks! 
> >> 
> >> Which fuse bits are you setting exactly? Is your xtal wired with 
2 
> >capacitors?
> >> What are you programming with?
> >> --
> >> Ralph Hilton
> >> http://www.ralphhilton.org
> >> C-Meter: http://www.cmeter.org
> >> FZAOINT http://www.fzaoint.net
> >
> >I set cksel 3..0 and ckopt unprogramed(1), with two 22pf 
capacitors.
> >I'm writing my programs with codevision2.38 and proram it with 
> >ponyprog.
> 
> I had a lot of problems with Ponyprog. I suspect that your problem 
wil go if you use an STK500 or
> AVRISP with AVRstudio or the programmer built into CVAVR.
> --
> Ralph Hilton
> http://www.ralphhilton.org
> C-Meter: http://www.cmeter.org
> FZAOINT http://www.fzaoint.net

Dear Mr Hilton!
My problem was just the matter that you had mentioned,the problem was 
ponyprog,I program atmega64 with CVavr programmer without any error.
Thanks a lot!
Sincerly Yours,
Amir Rahafrooz.

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.