Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #376503

Re: PIC oscillator Q

From Martin Brown <|||newspam|||@nezumi.demon.co.uk>
Newsgroups sci.electronics.design
Subject Re: PIC oscillator Q
Date 2015-09-11 09:16 +0100
Organization Aioe.org NNTP Server
Message-ID <msu2le$74i$1@speranza.aioe.org> (permalink)
References <zYaIx.3724$bU1.120@fx15.iad> <msrii1$nnt$1@speranza.aioe.org> <DClIx.4248$bU1.3259@fx15.iad>

Show all headers | View raw


On 10/09/2015 21:20, Robert Baer wrote:
> Martin Brown wrote:
>> On 10/09/2015 09:13, Robert Baer wrote:
>>> It seems that an un-programmed PIC will not oscillate; the OSC pins
>>> are at ground in the "raw" state, and 10Megs between them obviously will
>>> not get them to logic (linear) level.
>>>
>>> So, ASS-u-ME that the PIC is minimally programmed for an external
>>> 20Mhz crystal and one would like it to oscillate at that frequency and
>>> not higher, what changes would be needed, based on my old Semi-universal
>>> oscillator:
>>
>> RTFM. eg section 6 in 16F84. I suspect default is basic RC operation but
>> have never investigated that since I wanted a precision clock rate.
>> In HS mode it will happily drive a suitable 20MHz Xtal.
>>
>    Yes, yes,yes,,,,,the CIRCUIT values please...

Are you incapable of reading a datasheet?

As someone else has pointed out you can pull the crystal frequency down 
by adding a bit of extra loading capacitance 33pF so that the clock rate 
is pulled lower by 2-3 sigma according to taste.

Your crystal makers datasheet will probably tell you what series 
resistor to use to avoid overdriving the Xtal and shortening its life.

I prefer to err on the high side and digitally correct down to get the 
mean clock rate right averaged over a long period. Bad for phase noise 
but an easy way of compensating and calibrating out for timekeeping.

The humble 32kHz xtal can be made surprisingly accurate this way with 
digital trimming to get a second and a day a more or less spot on.

-- 
Regards,
Martin Brown

Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

PIC oscillator Q Robert Baer <robertbaer@localnet.com> - 2015-09-10 01:13 -0700
  Re: PIC oscillator Q Martin Brown <|||newspam|||@nezumi.demon.co.uk> - 2015-09-10 10:29 +0100
    Re: PIC oscillator Q Robert Baer <robertbaer@localnet.com> - 2015-09-10 13:20 -0700
      Re: PIC oscillator Q Martin Brown <|||newspam|||@nezumi.demon.co.uk> - 2015-09-11 09:16 +0100
  Re: PIC oscillator Q Ian Malcolm <See.My.Sig.for.email@totally.invalid> - 2015-09-10 09:42 +0000
    Re: PIC oscillator Q Robert Baer <robertbaer@localnet.com> - 2015-09-10 13:32 -0700
      Re: PIC oscillator Q Ian Malcolm <See.My.Sig.for.email@totally.invalid> - 2015-09-10 22:21 +0000
        Re: PIC oscillator Q Ian Malcolm <See.My.Sig.for.email@totally.invalid> - 2015-09-10 22:25 +0000
  Re: PIC oscillator Q piglet <erichpwagner@hotmail.com> - 2015-09-10 14:45 +0100
    Re: PIC oscillator Q Robert Baer <robertbaer@localnet.com> - 2015-09-10 13:43 -0700
  Re: PIC oscillator Q John S <Sophi.2@invalid.org> - 2015-09-10 10:01 -0500
    Re: PIC oscillator Q Robert Baer <robertbaer@localnet.com> - 2015-09-10 13:47 -0700
      Re: PIC oscillator Q John S <Sophi.2@invalid.org> - 2015-09-10 20:29 -0500
        Re: PIC oscillator Q John S <Sophi.2@invalid.org> - 2015-09-10 20:36 -0500
        Re: PIC oscillator Q Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2015-09-11 18:52 -0400
      Re: PIC oscillator Q Syd Rumpo <usenet@nononono.co.uk> - 2015-09-11 10:59 +0100
  Re: PIC oscillator Q "Tim Williams" <tmoranwms@charter.net> - 2015-09-10 15:27 -0500

csiph-web