Yahoo Groups archive

AVR-Chat

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

Thread

Using an external clock on an Atmega32

Using an external clock on an Atmega32

2007-04-20 by jasonparkerhendrix

When set to use an internal clock (atmega32), my app works ok. 

When set to use an external clock (fuses CKSEL = 0000 and SUT = 10) the 
chip does nothing. I assume I have something wired incorrectly. 

I'm using this external clock: 
http://www.abracon.com/Oscillators/ach.pdf 

I have it wired like this: 
pin 1 floating. 
pin 4 to ground. 
pin 5 to xtal1 on the atmega32. 
pin 8 to voltage. 

Does anyone have any sugesstions as to what I may have wrong? 

Thanks!

Re: Using an external clock on an Atmega32

2007-04-20 by jasonparkerhendrix

The clock only has 4 pins.  I have them connected like this:

pin 1 floating.
pin 4 to ground.
pin 5 to xtal1 on the atmega32.
pin 8 to voltage.


I have no other clock related connections connected.

Thanks,
Jason

--- In AVR-Chat@yahoogroups.com, "David VanHorn" <microbrix@...> 
wrote:
>
> On 4/20/07, jasonparkerhendrix <hendrix.jason@...> wrote:
> > When set to use an internal clock (atmega32), my app works ok.
> >
> > When set to use an external clock (fuses CKSEL = 0000 and SUT = 
10) the
Show quoted textHide quoted text
> > chip does nothing. I assume I have something wired incorrectly.
> 
> Which pin did you connect the clock signal to?
>

Re: [AVR-Chat] Using an external clock on an Atmega32

2007-04-20 by David VanHorn

On 4/20/07, jasonparkerhendrix <hendrix.jason@gmail.com> wrote:
> When set to use an internal clock (atmega32), my app works ok.
>
> When set to use an external clock (fuses CKSEL = 0000 and SUT = 10) the
> chip does nothing. I assume I have something wired incorrectly.

Which pin did you connect the clock signal to?

Re: [AVR-Chat] Re: Using an external clock on an Atmega32

2007-04-20 by David VanHorn

On 4/20/07, jasonparkerhendrix <hendrix.jason@gmail.com> wrote:
> The clock only has 4 pins.  I have them connected like this:
>
> pin 1 floating.
> pin 4 to ground.
> pin 5 to xtal1 on the atmega32.
> pin 8 to voltage.
>
>
> I have no other clock related connections connected.
>

On the AVR?

Re: [AVR-Chat] Using an external clock on an Atmega32

2007-04-21 by Reza

The device (ACH) your using is a simple crystal
oscilator, it's better to use a simple crystal.

but if you wana use this part:

- it seems to use 50pf capacitors in circuit.
- it seems to be work on any frequency (due to part
number), your ATmega32 does not work faster than 8MHz
in L version, and not more than 16MHz on other parts.
sometimes you may overclock it to 20MHz not 50MHz. so
avoid using ACH-16-... or something.
- ...

if i where u, i used normal crystals with two 33pf
capacitors instead. simple, cheap and easy.

note:

external clock is usefull when you have it by default
somewhere in your circuit and want to use it, or maybe
want to share it amoung many microcontrollers in one
circuite or something.

good luck;

--- jasonparkerhendrix <hendrix.jason@gmail.com>
wrote:

> When set to use an internal clock (atmega32), my app
> works ok. 
> 
> When set to use an external clock (fuses CKSEL =
> 0000 and SUT = 10) the 
> chip does nothing. I assume I have something wired
> incorrectly. 
> 
> I'm using this external clock: 
> http://www.abracon.com/Oscillators/ach.pdf 
> 
> I have it wired like this: 
> pin 1 floating. 
> pin 4 to ground. 
> pin 5 to xtal1 on the atmega32. 
> pin 8 to voltage. 
> 
> Does anyone have any sugesstions as to what I may
> have wrong? 
> 
> Thanks!
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com

Re: Using an external clock on an Atmega32

2007-04-21 by jasonparkerhendrix

I'm using the 3.686 mhz version part number ach-3.6864mhz-ek

My next order will be for normal crystals, in the mean time, I would 
really like to figure out how to use the ones I've already bought.  I 
hate to pay $10 in s&h for a $0.45 part.

Thanks,
Jason

--- In AVR-Chat@yahoogroups.com, Reza <reza_agha@...> wrote:
Show quoted textHide quoted text
>
> 
> The device (ACH) your using is a simple crystal
> oscilator, it's better to use a simple crystal.
> 
> but if you wana use this part:
> 
> - it seems to use 50pf capacitors in circuit.
> - it seems to be work on any frequency (due to part
> number), your ATmega32 does not work faster than 8MHz
> in L version, and not more than 16MHz on other parts.
> sometimes you may overclock it to 20MHz not 50MHz. so
> avoid using ACH-16-... or something.
> - ...
> 
> if i where u, i used normal crystals with two 33pf
> capacitors instead. simple, cheap and easy.
> 
> note:
> 
> external clock is usefull when you have it by default
> somewhere in your circuit and want to use it, or maybe
> want to share it amoung many microcontrollers in one
> circuite or something.
> 
> good luck;
> 
> --- jasonparkerhendrix <hendrix.jason@...>
> wrote:
> 
> > When set to use an internal clock (atmega32), my app
> > works ok. 
> > 
> > When set to use an external clock (fuses CKSEL =
> > 0000 and SUT = 10) the 
> > chip does nothing. I assume I have something wired
> > incorrectly. 
> > 
> > I'm using this external clock: 
> > http://www.abracon.com/Oscillators/ach.pdf 
> > 
> > I have it wired like this: 
> > pin 1 floating. 
> > pin 4 to ground. 
> > pin 5 to xtal1 on the atmega32. 
> > pin 8 to voltage. 
> > 
> > Does anyone have any sugesstions as to what I may
> > have wrong? 
> > 
> > Thanks!
> > 
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com
>

Re: [AVR-Chat] Re: Using an external clock on an Atmega32

2007-04-21 by Ken Arck

At 09:44 AM 4/21/2007, you wrote:

>I'm using the 3.686 mhz version part number ach-3.6864mhz-ek
>
>My next order will be for normal crystals, in the mean time, I would
>really like to figure out how to use the ones I've already bought. I
>hate to pay $10 in s&h for a $0.45 part.

<---I use an ECS 16 mHz "half-size" oscillator on one my Mega2560 
designs but I don't see why it wouldn't work on a '32. I just feed 
the output of the oscillator into the "Xtal 1" pin of the AVR and set 
the clock fusebit to 111111. Works just fine this way

Ken
------------------------------------------------------------------------------
President and CTO - Arcom Communications
Makers of the world famous RC210 Repeater Controller and accessories.
http://www.arcomcontrollers.com/
Coming soon - the most advanced repeater controller EVER.
Authorized Dealers for Kenwood and Telewave and
we offer complete repeater packages!
AH6LE/R - IRLP Node 3000
http://www.irlp.net

Re: [AVR-Chat] Learning to program ATmega8535 with C

2007-04-25 by Ralph Hilton

On Wed, 25 Apr 2007 13:12:40 +0200 you wrote:

> I know C programming language but not in specific area of AVR
>microsontrollers.
>I have 2 programmers:STK500 , AVRISP mkII
>I bought LCD display and numerical keypad
>Where can i find specific book lo learn C for AVR and some steps to start in
>C with these components ?

http://www.prllc.com/productcart/pc/viewPrd.asp?idcategory=6&idproduct=12


--
Ralph Hilton
http://www.ralphhilton.org
C-Meter: http://www.cmeter.org
FZAOINT http://www.fzaoint.net

Learning to program ATmega8535 with C

2007-04-25 by Riccardo Castellani

I know C programming language but not in specific area of AVR
microsontrollers.
I have 2 programmers:STK500 , AVRISP mkII
I bought LCD display and numerical keypad
Where can i find specific book lo learn C for AVR and some steps to start in
C with these components ?

Re: Learning to program ATmega8535 with C

2007-04-25 by Ken@Japan

--- In AVR-Chat@yahoogroups.com, Ralph Hilton <ralph@...> wrote:
>
http://www.prllc.com/productcart/pc/viewPrd.asp?idcategory=6&idproduct=12

A free example can be found at Peter Fleury's site...
http://homepage.hispeed.ch/peterfleury/

Ken@Japan

Re: [AVR-Chat] Learning to program ATmega8535 with C

2007-04-25 by John Samperi

At 09:12 PM 25/04/2007, you wrote:
>I bought LCD display and numerical keypad
>Where can i find specific book lo learn C for AVR and some steps to start in
>C with these components ?

The first thing you need is AVR Studio installed in your computer
which has now an interface to Winavr (GCC).

Look at the Examples folder in Winavr and you will find a LCD example there.
Also Codevision C compiler has a wizard to setup a LCD, and don't forget
to get yourself a copy of the LCD data sheet to understand the way to
interface and talk to it.

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
********************************************************

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.