Why does a single chip microcomputer need a crystal oscillator

var videoObject = {container:'.video', variable:'player', autoplay: true, html5m3u8: true, video: "https://vdse.bdstatic.com//da5cd90033ac4b8ce473a0458dd30be0?authorization=bce-auth-v1%2Ffb297a5cc0fab434cdd9717b8 %2F2017-05-11T09%3A02%3A31Z%2F-1%2F%2F8e6ed3af74b0d89a64cc86648829dac7b4bb8506458b11e3ea3e05009e997ed4" }; if (!! window.ActiveXObject) {player videoObject.html5m3u8 = false ck player videoObject = new ck player videoObject = false} clock circuit

First of all, one of the necessary conditions for the normal operation of the single-chip microcomputer is the clock circuit, so the single-chip microcomputer needs a crystal oscillator.

Crystal oscillator, the full name is quartz crystal oscillator, is a high-precision and high-stability oscillator. Through a certain external circuit, a sine wave with stable frequency and peak value can be generated. When the single-chip microcomputer is running, it needs a pulse signal as the trigger signal to execute the instruction itself. It can be simply imagined as: the single-chip microcomputer executes one or more instructions when it receives a pulse.

Why does a single chip microcomputer need a crystal oscillator

When the microcontroller works, it fetches instructions from the RoM one by one, and then executes them step by step. The time for the single-chip microcomputer to access the memory once is called a machine cycle, which is a time reference. One machine cycle includes 12 clock cycles. If a single-chip microcomputer selects a 12 MHz crystal oscillator, its clock cycle is 1/12us, and one of its machine cycles is 12×(1/12)us, which is 1us.

Why does a single chip microcomputer need a crystal oscillator

Among all the instructions of the MCS-51 single-chip microcomputer, some are completed relatively quickly and only need one machine cycle, some are relatively complete, which requires 2 machine cycles, and two instructions require 4 machine cycles. In order to measure the length of instruction execution time, a new concept is introduced: instruction cycle. The so-called instruction cycle refers to the time to execute an instruction. For example, when you need to calculate the time required for the completion of the DJNZ instruction, you must first know the frequency of the crystal oscillator. If the crystal oscillator used is 12 MHz, one machine cycle is 1 us. The DJNZ instruction is a two-cycle instruction, so it takes 2us to execute once. If the instruction needs to be executed 500 times, it is exactly 1000us, which is 1ms.

The machine cycle is not only of great significance for the execution of instructions, but also the time base of the single-chip timer and counter. For example, a single-chip microcomputer selects a 12 MHz crystal oscillator, then when the value of the timer increases by 1, the actual elapsed time is 1us, which is the timing principle of the single-chip microcomputer.

The crystal oscillator provides the working signal pulse to the microcontroller. This pulse is the operating speed of the microcontroller. For example, 12 trillion crystal oscillator. The operating speed of the microcontroller is 12 megabytes per second. There is also a crystal oscillator inside the microcontroller. Connect an external crystal oscillator to get a more stable frequency.

500V DC Power Supply

The 500V series DC Power Supply could be widely used for charging 12V battery system. It`s constant power and wide range of voltage and current output with accurate voltage and current measurement capability.

Our apm dc power supply inherits the functional design and maintains the high power density characteristic and 1U height appearance.Standard communication interface includes RS232/RS485/USB/LAN,GPIB is optional.Users can choose the variable dc power supply that fits their testing requirements perfectly.

Some features of the dc power supply as below:


  • Ultrafast respond time and high efficiency.
  • Accurate voltage and current measurement capability
  • Equips with LIST waveform editing function
  • Compliant with SCPI communication protocol
  • Master/Slave parallel and series operation mode for up to 10 units
  • Built-in standard automobile electrical testing curves
  • Full protection: OVP/OCP/OPP/OTP/SCP
  • Voltage drop compensation by remote sense line.
  • Have obtained CE,UL,CSA,FCC.ROHS

500V DC Power Supply,High Voltage DC Power Supply,Variable Voltage DC Power Supply,Power Supply

APM Technologies Ltd , https://www.apmpowersupply.com

Posted on