Flash Magic Forum

General => Off-Topic (Read Only) => Topic started by: Rons on June 20, 2005, 12:39:34 PM

Title: crystal oscillator instead of crystal
Post by: Rons on June 20, 2005, 12:39:34 PM
I was using a 30MHz crystal and 2 27pf capacitors on a 80C51 XA.
I noticed that sometimes the clock frequency was 10MHz depending on
how I bypassed the clk1 & clk2 pins.  Replacing a 2 pin 30Mhz crystal with a 30MHz crystal oscillator (4 pin) madequite a big difference in baud rate.
 I used to get no higher than 38,400 with just a crystal and two 27pf capacitors.  But now I can send and receive at 115200. The quality of the
clock signal makes a difference.
Title: Re: crystal oscillator instead of crystal
Post by: erikm on June 20, 2005, 02:05:37 PM
I was using a 30MHz crystal and 2 27pf capacitors on a 80C51 XA.
I noticed that sometimes the clock frequency was 10MHz depending on
how I bypassed the clk1 & clk2 pins

wrong forum.  Oh well, you used an overtone crystal instead of a fundamental crystal, that's why.

Erik
Title: Re: crystal oscillator instead of crystal
Post by: Rons on June 21, 2005, 11:34:11 AM
>I noticed that sometimes the clock frequency was 10MHz depending on
>how I bypassed the clk1 & clk2 pins
>wrong forum. Oh well, you used an overtone crystal instead of a f>undamental crystal, that's why.

If you leave a cap on pin XTAL2 but remove the cap on XTAL1 you
will not get a resonance of 30M, put the cap on XTAL1 and get 10M.
Title: Re: crystal oscillator instead of crystal
Post by: erikm on June 21, 2005, 12:32:29 PM
If you leave a cap on pin XTAL2 but remove the cap on XTAL1 you
will not get a resonance of 30M, put the cap on XTAL1 and get 10M.

Incorrect, replace "if you" with "by luck when I"
There is no way in hades to get overtone crystals to behave predicatably with a XA/'51

Erik