EmbeddedRelated.com
Forums

RTC w/ external clock

Started by begatchev June 27, 2006
Has anybody tried inputting an external 32.768kHz clock to the RTCX1
and RTCX2 oscillator pins of the lpc213X? Is it possible at all, since
nothing seems to be mentioned in the documentation on this subject.

BR
Bisser

An Engineer's Guide to the LPC2100 Series

begatchev wrote:

> Has anybody tried inputting an external 32.768kHz clock to the RTCX1
> and RTCX2 oscillator pins of the lpc213X? Is it possible at all, since
> nothing seems to be mentioned in the documentation on this subject.
>
RTCX1 is the input pin, you would want to leave RTCX2 floating (the
output of the oscillator). It is a common thing to drive the input pin
of a processor clock with an external clock. Just keep the signal level
down to something reasonable to avoid over voltage on the RTCX1 pin
(approx 2V should work fine).

TomW

--
Tom Walsh - WN3L - Embedded Systems Consultant
http://openhardware.net, http://cyberiansoftware.com
"Windows? No thanks, I have work to do..."
----------------

Thanks Tom, I thought so myself. The idea is to use an external RTC while the LPC is powered off, then feed the clock to the internal RTC at power up. The RS5C372A-E from Ricoh can output 32.768kHz on an INT pin.

Tom Walsh wrote: begatchev wrote:

> Has anybody tried inputting an external 32.768kHz clock to the RTCX1
> and RTCX2 oscillator pins of the lpc213X? Is it possible at all, since
> nothing seems to be mentioned in the documentation on this subject.
>
RTCX1 is the input pin, you would want to leave RTCX2 floating (the
output of the oscillator). It is a common thing to drive the input pin
of a processor clock with an external clock. Just keep the signal level
down to something reasonable to avoid over voltage on the RTCX1 pin
(approx 2V should work fine).

TomW

--
Tom Walsh - WN3L - Embedded Systems Consultant
http://openhardware.net, http://cyberiansoftware.com
"Windows? No thanks, I have work to do..."
----------------




---------------------------------
Ring'em or ping'em. Make PC-to-phone calls as low as 1/min with Yahoo! Messenger with Voice.







Tom, im using an DS1390. Is it possible to drive directly the pin
RTCX1 with 32khz square wave (3.3v amp) generated by this IC? or MUST
reduce the amplitude to 2v aprox?

--- In l..., Tom Walsh wrote:
>
> begatchev wrote:
>
> > Has anybody tried inputting an external 32.768kHz clock to the
RTCX1
> > and RTCX2 oscillator pins of the lpc213X? Is it possible at all,
since
> > nothing seems to be mentioned in the documentation on this
subject.
> >
> RTCX1 is the input pin, you would want to leave RTCX2 floating (the
> output of the oscillator). It is a common thing to drive the input
pin
> of a processor clock with an external clock. Just keep the signal
level
> down to something reasonable to avoid over voltage on the RTCX1 pin
> (approx 2V should work fine).
>
> TomW
>
> --
> Tom Walsh - WN3L - Embedded Systems Consultant
> http://openhardware.net, http://cyberiansoftware.com
> "Windows? No thanks, I have work to do..."
> ----------------
>
--- In l..., "rod_linares" wrote:
>
> Tom, im using an DS1390. Is it possible to drive directly the pin
> RTCX1 with 32khz square wave (3.3v amp) generated by this IC? or MUST
> reduce the amplitude to 2v aprox?
>
The data sheet for the LPC213x provides that information for you in
the Static Characteristics section for the oscilator pins. The
minimum voltage allowed is zero volts and the maximum voltage allowed
is 1.8 volts in the data sheet that I have here. You can achieve that
with a simple 2 resistor voltage divider from your source. Just be
careful not to use resistor values so large that the pin capacitance
further reduces your waveform amplitude.

-- Dave
Dave,
Thanks A lot, I'll test the next week and i'll comment here the
result.

--- In l..., "derbaier" wrote:
>
> --- In l..., "rod_linares" wrote:
> >
> > Tom, im using an DS1390. Is it possible to drive directly the pin
> > RTCX1 with 32khz square wave (3.3v amp) generated by this IC? or
MUST
> > reduce the amplitude to 2v aprox?
> >
> >
> >
> The data sheet for the LPC213x provides that information for you in
> the Static Characteristics section for the oscilator pins. The
> minimum voltage allowed is zero volts and the maximum voltage
allowed
> is 1.8 volts in the data sheet that I have here. You can achieve
that
> with a simple 2 resistor voltage divider from your source. Just be
> careful not to use resistor values so large that the pin capacitance
> further reduces your waveform amplitude.
>
> -- Dave
>