Electrical – PIC micro controller oscillator frequency

microcontrolleroscillatorpic

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.

enter image description here

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.
enter image description here

  1. Can anybody explain the above??

2.What is oscillator cycle?? the frequency of oscillator cycle??

  1. What is machine cycle ??

Best Answer

(1) What I believe it says, is that 1 instruction cycle (machine cycle) takes 4 oscillator cycles to complete.

(2) The oscillator cycle is the time taken for a complete revolution to occur, or to put it simply, the time it takes to go from low, to high and back to low. The oscillator frequency is how often this cycle will occur every second, so 4MHz will mean 4 million cycles per second.

(3) The machine cycle or instruction cycle consist of 4 Q cycles. These Q cycles are what you would have shown us above. The pic18 family manual that I’m using explains it better than I could. Try giving this a read to see if you understand. Excerpt from PIC18 Family Manual

And this Excerpt from PIC18 Family Manual

If you’re still confused about it, try to pinpoint where you got confused :) and I’m sure someone will be able to explain it to you in a way you’d easily get the concept.