Article count:10804 Read by:13623255

Account Entry

Useful Information | Why do we need to connect a capacitor to ground on each side of the MCU crystal?

Latest update time:2021-11-02 19:22
    Reads:

For more exciting content, please click on the blue words above and follow us!


Many MCU developers do not understand why a capacitor to ground is required on each side of the MCU crystal, because this capacitor can sometimes be removed.


I have referred to many books, but found that there is very little explanation in the books. The most mentioned things are often: the capacitance to ground has a stabilizing effect or is equivalent to load capacitance, etc., and there is no in-depth theoretical analysis.
On the other hand, many enthusiasts simply ignore the two capacitors next to the crystal, thinking that they can just follow the reference design. But in fact, this is the oscillation circuit of the MCU, also known as the "three-point capacitor oscillation circuit", as shown in Figure 1.

Figure 1: MCU three-point capacitor oscillation circuit
Among them, Y1 is a crystal, which is equivalent to the inductor in the three-point type; C1 and C2 are capacitors, and 5404 and R1 realize an NPN transistor (you can refer to the three-point capacitor oscillation circuit in the high-frequency book).

Next, we will analyze this circuit for you:

First of all, 5404 must be connected with a resistor, otherwise it will be in the saturation cutoff area instead of the amplification area, because R1 is equivalent to the bias of the transistor, which can make 5404 in the amplification area and act as an inverter, thereby realizing the role of the NPN transistor, and the NPN transistor is also an inverter when connected in common emitter.
Secondly, I will use a popular method to explain to you the working principle of this three-point oscillation circuit.
As we all know, the oscillation condition of a sinusoidal oscillation circuit is: the system gain is greater than 1, which is relatively easy to achieve; but on the other hand, the phase must also satisfy 360°.


The problem lies in the phase: since 5404 is an inverter, it has already achieved a 180° phase shift, so it only needs C1, C2 and Y1 to achieve a 180° phase shift again.


Coincidentally, when C1, C2 and Y1 form resonance, a 180-degree phase shift can be achieved; the simplest way to achieve this is to use the ground as a reference. During resonance, since the currents passing through C1 and C2 are the same and the ground is between C1 and C2, the voltages are exactly opposite, thus achieving a 180-degree phase shift.
Furthermore, when C1 increases, the amplitude at C2 increases; when C2 decreases, the amplitude also increases. Sometimes, even without soldering C1 and C2, the oscillation can still occur, but this phenomenon is not caused by not soldering C1 and C2, but by the distributed capacitance of the chip pins, because the capacitance values ​​of C1 and C2 do not need to be very large, which is very important.

So, what effect do these two capacitors have on oscillation stability?

Since the voltage feedback of 5404 depends on C2, if C2 is too large, the feedback voltage is too low, and the oscillation is not stable; if C2 is too small, the feedback voltage is too high, and the stored energy is too little, it is easy to be disturbed by the outside world, and it will also radiate and affect the outside world. The role of C1 is exactly the opposite of that of C2.


When laying out the board, assuming it is a double-sided board and relatively thick, the influence of distributed capacitance is not very large;


However, if it is a high-density multi-layer board, distributed capacitance needs to be considered, especially for oscillation circuits such as VCO, where distributed capacitance should be considered even more.
Therefore, for projects used in industrial control, it is recommended not to use crystal oscillators, but to directly connect an active crystal oscillator.
Many times people will use 32.768K clock crystals as clocks instead of using the crystal frequency division of a single-chip microcomputer. Many people probably don’t understand the reason for this. In fact, this is related to the stability of the crystal: the higher the frequency of the crystal, the harder it is to make a higher Q value, and the frequency stability is also relatively poor. The 32.768K crystal has good performance in terms of stability and other aspects, and has formed an industrial standard, which is relatively easy to increase.


It is also worth mentioning that 32.768K is half of 16-bit data, and the highest 1-bit carry flag is reserved, which is also very convenient for internal digital calculation processing of timing counters.


Disclaimer: This article is reprinted from the Internet, and the copyright belongs to the original author. If the videos, pictures, and texts used in this article involve copyright issues, please leave a message at the end of the article to let us know, and we will deal with it as soon as possible! The content of this article is the original author's point of view, and does not mean that this public account agrees with its point of view and is responsible for its authenticity.


Reply to any content you want to search in the official , such as problem keywords, technical terms, bug codes, etc., and you can easily get relevant professional technical content feedback . Go and try it!


Since the WeChat official account has recently changed its push rules, if you want to see our articles frequently, you can click "Like" or "Reading" at the bottom of the page after each reading, so that each pushed article will appear in your subscription list as soon as possible.


Or set our public account as a star. After entering the public account homepage, click the "three small dots" in the upper right corner, click "Set as Star", and a yellow five-pointed star will appear next to our public account name (the operation is the same for Android and iOS users).


Focus on industry hot spots and understand the latest frontiers
Please pay attention to EEWorld electronic headlines
https://www.eeworld.com.cn/mp/wap
Copy this link to your browser or long press the QR code below to browse
The following WeChat public accounts belong to
EEWorld (www.eeworld.com.cn)
Welcome to long press the QR code to follow us!
EEWorld Subscription Account: Electronic Engineering World
EEWorld Service Account: Electronic Engineering World Welfare Club

Featured Posts


Latest articlesabout

 
EEWorld WeChat Subscription

 
EEWorld WeChat Service Number

 
AutoDevelopers

About Us About Us Service Contact us Device Index Site Map Latest Updates Mobile Version

Site Related: TI Training

Room 1530, Zhongguancun MOOC Times Building,Block B, 18 Zhongguancun Street, Haidian District,Beijing, China Tel:(010)82350740 Postcode:100190

EEWORLD all rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2021 EEWORLD.com.cn, Inc. All rights reserved