Maker Pro
Maker Pro

What is CPU clock and system clock in PIC Microcontroller

Kittu20

Oct 21, 2022
17
Joined
Oct 21, 2022
Messages
17
Hi
Microcontroller operate on clock signals. clock source may be internal or external. I don't understand difference between system clock and CPU clock in PIC microcontroller.

Anyone help me to understand difference between both of them ?. What's fundamental concept of clock should be remember when programming microcontroller
 

Keonte45

Aug 29, 2022
82
Joined
Aug 29, 2022
Messages
82
The system clock is needed to synchronize all components on the motherboard, which means they all do their work only if the clock is high; never when it's low. And because the clock speed is set above the longest time any signal needs to propagate through any circuit on the board, this system is preventing signals from arriving before other signals are ready and thus keeps everything safe and synchronized.

The CPU clock has the same purpose, but is only used on the chip itself. Because the CPU needs to perform more operations per time than the motherboard, the CPU clock is much higher. And because we don't want to have another oscillator (e.g. because they also would need to be synchronized), the CPU just takes the system clock and multiplies it by a number, which is either fixed or unlocked (in that case the user can change the multiplier in order to over- or underclock the CPU).
 

Keonte45

Aug 29, 2022
82
Joined
Aug 29, 2022
Messages
82
You could get more information on the differences online.

For instance:
 

juliasmith

Nov 13, 2022
11
Joined
Nov 13, 2022
Messages
11
System clock is the total clock speed of the whole system and cpu clock is the clock speed of its own.
 
Top