Re: Replacing crystal with external clock signal
- From: Florian <petafrog@xxxxxxxxxxxxxxxxxx>
- Date: 03 Sep 2006 19:59:01 -0500
Florian <petafrog@xxxxxxxxxxxxxxxxxx> writes:
"PeteS" <PeterSmith1954@xxxxxxxxxxxxxx> writes:
Florian wrote:
I have a chip that wants a specific low-frequency (38k) clock crystal,
which are somewhat hard to find and pricy. I could synthesize a 38k
clock signal, but the chip is not designed to accept an external clock -
it wants that 38k crystal and a 10pF series capacitor between two pins.
Would it be possible to trick the crystal driver into syncing to an
external clock by proper attenuation and filtering? What sort of
voltages would be present in a running oscillator like this? Am I
likely to damage the chip by experimenting?
What device are you using?
These devices usually use an oscillator across the pins of 'XTAL1',
'XTAL2' or some such. In the documentation it usually specifies which
pin is the output of the amplifier and which is the input. You should
be able to drive the input side without problems from an external clock
at the appropriate levels, but what they are depend on the device.
The chip is a BA1404 FM transmitter. I found a data*** at
<http://www.radiochips.com/images/ba1404v2.pdf> but I can't tell from that
which pin is the input. Am I likely to fry the output if I try to drive
that?
Any guesses as to the voltages to start experimenting with? I'm planning to
run the chip at 1.5V.
Thanks for your help!
Ok, I think I've got things figured out. Powering up the BA1404 and looking
at the two unconnected XTAL pins with a scope, pin 5 is quiet and pin 6 puts
out a high-frequency signal or noise (looks like a solid band between ground
and Vcc=1.50V on my 20MHz analog scope, can't find anything periodic in
it). Thus I infer 5 is the input and 6 the output.
I have an ATtiny12 producing a 38kHz clock and put that through a voltage
divider (47kOhm + 10kOhm yielding a bit under a volt for high) into pin 5.
This makes pin 6 produce a neat square wave at 38kHz, 0 to Vcc, and I get a
19kHz signal with a DC bias out of the Pilot pin, so on the surface things
would seem to work.
Now comes the fun part where I get to mess around with radio frequency stuff.
It remains to be seen whether the internal RC oscillator on the ATtiny is
stable enough to produce decent output, or if I need to add an external
crystal to /that/. At least I have some handy.
A big thank you to PeteS, who's having trouble posting, for his helpful
email!
.
- Follow-Ups:
- Re: Replacing crystal with external clock signal
- From: PeteS
- Re: Replacing crystal with external clock signal
- References:
- Replacing crystal with external clock signal
- From: Florian
- Re: Replacing crystal with external clock signal
- From: PeteS
- Re: Replacing crystal with external clock signal
- From: Florian
- Replacing crystal with external clock signal
- Prev by Date: Re: building an electric bell-ringer
- Next by Date: Re: Programming the pic16F84A
- Previous by thread: Re: Replacing crystal with external clock signal
- Next by thread: Re: Replacing crystal with external clock signal
- Index(es):