Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

PIC Oscillator Crystal

Status
Not open for further replies.
...
Does that mean that instructions can be carried out faster with a higher oscillator frequency?

For example:
4MHz Oscillator: Period (clock cycle) = 1/4MHz = 250ns; 1 instruction = 4 clock cycles = 1us

20MHz Oscillator: Period (clock cycle) = 1/20MHz= 50ns; 1 instruction = 4 clock cycles = 200ns

Is this correct? I would greatly appreciate any examples where certain frequencies are required or additional information on oscillators and their function in PIC circuits.

Sorry, yes that looks right to me.
 
No one has answered if my calculations were correct... also, in layman's terms, what is PLL and is it possible to use the internal and external oscillators? If so, how do you calculate the overall frequency (with both the internal and external oscillators in use). I still have not received my PICkit2 nor my PICs so I have not yet been able to get some hands on experience so excuse me if my questions seem a bit dumb.

The frequency of the crystal osc is divided by 4, this means a 4MHz xtal would give a PIC instruction
execution time of 4MHz/4 = 1uSec.

The usual range of xtal frequencies are 4, 6,8,10MHz.
If you were going to decide to use the PIC as a RTC or Timer, a 3.2768MHz xtal would be a good choice
as its divides nicely down to 1 sec.

The PIC that you use will determine the maximum xtal frequency that can be used.

Some PIC's have an internal PLL which can increase the frequency of the external xtal,
so for example a 10MHz clock could use the PLL to give an internal frequency of say 40MHz.

Could you tell me how this dosn't answer your question.?:confused:
 
Last edited:
@ericgibbs:

Yes, your post did help answer my question and I appreciate it. However, I never said that you guys were not answering my question... all I said was that you guys have not told me if my calculations were correct.

No one has answered if my calculations were correct...

You guys still have not told me if my original calculations make sense :D

No need for :confused: ... just :D
 
Status
Not open for further replies.

Latest threads

Back
Top