PIC micro controller oscillator frequency

Thread Starter

khatus

Joined Jul 2, 2018
115
Hello guys

The internal clock (Q1–Q4) of PIC Micro controller runs at a quarter of the oscillator frequency (FOSC/4).

My question is if i divide the frequency with 4 Then the timer period of each clock pulse will increase 4 times.



However this picture is confusing. it shows after the internal circuitry divides the clock into four even quadrature clocks. the timer period of each clock (i.e Q1, Q2, Q3, and Q4) less than the main primary oscillator(that is connected to the OSC1 and OSC2 pins).
But i think time period of each clock pulse must be 4 times time period of main primary oscillator.


1. Can anybody explain the above??

2.What is the frequency of oscillator is it FOSC/4 or only FOSC??

3. What is machine cycle ??
 

MrChips

Joined Oct 2, 2009
34,809
1. The first diagram shows a clock signal being divided by 2. This is not related to PIC oscillator.

2. It depends on how they define FOSC. If FOSC is defined as the the oscillator frequency then that is what it is.
FOSC/4 is the frequency of the instruction cycle and the peripheral clocks.

3. There are four machine cycles in one instruction cycle for Microchip PICs. That is, it takes four steps in order to complete one instruction.
 

Thread Starter

khatus

Joined Jul 2, 2018
115
"The first diagram shows a clock signal being divided by 2. This is not related to PIC oscillator."

yeah i just used it as example
 

MrChips

Joined Oct 2, 2009
34,809
What is oscillator cycle??what is the frequency of oscillator cycle??
An oscillator swings back and forth. Every time the oscillator swings out and returns to the starting point that is regarded as one cycle. The oscillator frequency is the number of times it swings one full cycle in one second. The frequency is recorded in cycles per second, with international system of units (SI) of hertz, abbreviated to the symbol Hz.
 
Top