AVR Internal Clock

Thread Starter

Mazaag

Joined Oct 23, 2004
255
Hi guys,

I was wondering if there is an efficient way to access the internal oscillator of the AVR to be able to share it with other external IC's ?

thanks
 

hgmjr

Joined Jan 28, 2005
9,029
Hi guys,

I was wondering if there is an efficient way to access the internal oscillator of the AVR to be able to share it with other external IC's ?

thanks
If you need a distributed clock then it is probably best to use an external clock and distributed it using a clock distribution IC.

hgmjr
 

Thread Starter

Mazaag

Joined Oct 23, 2004
255
what is the purpose of a distribution IC ? why do i need one ? why can't i just share the output from the external clock ? and how do i implement an external Crystal/Resonator clock ?
 

hgmjr

Joined Jan 28, 2005
9,029
what is the purpose of a distribution IC ? why do i need one ? why can't i just share the output from the external clock ?
The high frequency associated with the clock is very suceptable to the capacitance that can build up when it is connected to multiple devices. The risetime of the clock can be degraded significantly when subjected to the high capacitiance. The clock risetime specification is often very specific about the quality of the clock signal.

By using a clock distribution IC (a.k.a.clock buffer, clock driver) this capacitance degradation is avoided.
how do i implement an external Crystal/Resonator clock ?
This should be as simple as connecting the crystal or resonator across the OSC input terminals of the AVR along with the recommended amount of capacitance for the crystal being used. Be sure to observe the maximum clock frequency for the AVR device in question when selecting the crystal that you plan to use.

hgmjr
 

hgmjr

Joined Jan 28, 2005
9,029
Actually what is often done is the clock oscillator is built up as a standalone circuit which feeds the clock distribution IC. The output of the clock distribution IC then provides a fixed number of outputs. All of the microcontrollers get their own dedicated clock feed.

hgmjr
 

joemcder

Joined Aug 27, 2007
2
The internal AVR clock is not very accurate. Internal microcontroller clocks exist for the cases where we must minimize chip count and don't care much about clock quality.
You should be aware that you can by xtal oscillators "in a can" just like the simple xtal. These are 4-pin rather than 2-pin devices. You apply power and out comes the 10 Mhz square wave (or whatever frequency). This clock can be sent to a few nearby chips OK. The microcontroller will have a fuse setting for the external clock. This is NOT the same thing as an external crystal. See the data sheet.
As someone else pointed out is you need to send the clock all over a circuit board, you will need a clock amplifier to maintain quality.
 
Top