Arduino Forum

Development => Other Hardware Development => Topic started by: westfw on Feb 23, 2011, 10:33 am

Title: Uno Hardware question...
Post by: westfw on Feb 23, 2011, 10:33 am
I'm curious about the decision to have separate oscillators on the two CPUs on the Uno.  In theory, it should have been possible to run both CPUs off a single crystal or resonator.  There's been a rumor that this wasn't done for EMI reasons.
Is that true, or was there another reason for this, or was it just to preserve the possibility of running the two at different clock frequencies?
Title: Re: Uno Hardware question...
Post by: johnwasser on Feb 23, 2011, 07:44 pm
So the two choices are:

1) Put the crystal on the ATmeg8U2 and output a clock to the ATmega8.  I think the problem there is that the ATmega8 would have to be programmed specially to work with the external clock.

2) Put the crystal on the ATmega8 and output a clock to the ATmega8U2.  One problem is that the ATmega Clock Output pin (PB0) is already used for Arduino Data Pin 8.  Another problem is that the clock output might be disrupted when the USB connection resets the ATmega8.

Option 1 seems the most practical.  You'd need to program the ATmega8U2 fuses to output the clock and change the ATmega8 fuses to accept an external clock.  I guess that if the 8U2 failed the system would be dead, rather than just uncommunicative, and you could not then use an external USB to Serial cable to program it.
Title: Re: Uno Hardware question...
Post by: MarkT on Feb 26, 2011, 02:21 am
Just route the Xtal out pin on one chip to the xtal in pin of the other through a suitable resistor - check the datasheets to see which of the two Xtal pins is the input and which the output of the oscillator.  Seems to work.   Incidentally I note the UNO has a feedback resistor across the resonator on the ATmega328 despite the datasheets making it clear this is unnecessary as its on-chip.
Title: Re: Uno Hardware question...
Post by: graynomad on Feb 26, 2011, 06:23 am
Quote
Just route the Xtal out pin on one chip to the xtal in pin of the other through a suitable resistor

That would work, even if you had to buffer the signal to be on the safe side.

But it would make the 328 fuses etc different to the standard, maybe they wanted to keep things the same.

______
Rob