Taixin Semiconductor

News detail

Practical Sharing | Why Should Each Side of an MCU Crystal Be Connected to a Capacitor to Ground?

2021-03-15

Many MCU developers do not understand why each side of an MCU crystal should be connected to a capacitor to ground, because these capacitors can sometimes be removed. After consul…

Many MCU developers do not understand the practice of connecting a capacitor to ground on each side of an MCU crystal, because these capacitors can sometimes be omitted. After consulting many books, however, they find very little explanation; the most common statements are that the capacitor to ground has a stabilizing effect or is equivalent to a load capacitor, etc., but none provide in-depth theoretical analysis.

On the other hand, many enthusiasts simply ignore the two capacitors next to the crystal, believing that it is enough to follow the reference design. In fact, this is the MCU oscillator circuit, also known as a "three-point capacitive oscillator circuit," as shown in Figure 1.
Figure 1: Three-point capacitive oscillator circuit of an MCU

Among them, Y1 is the crystal, equivalent to the inductor in the three-point configuration; C1 and C2 are capacitors, while 5404 and R1 implement an NPN transistor (readers can compare this with the three-point capacitive oscillator circuit in high-frequency electronics books).

Next, I will analyze this circuit for you:


First, 5404 must be paired with a resistor; otherwise, it will be in the saturation or cutoff region rather than the amplification region. This is because R1 acts as the transistor bias, enabling 5404 to operate in the amplification region and serve as an inverter, thereby fulfilling the role of an NPN transistor; moreover, an NPN transistor in a common-emitter configuration is also an inverter.

Second, I will explain the working principle of this three-point oscillator circuit in an accessible way.

As is well known, the oscillation conditions for a sinusoidal oscillator circuit are: the system gain must be greater than 1, which is relatively easy to achieve; on the other hand, the phase must satisfy 360°. The problem lies in this phase: since 5404 is an inverter, it has already achieved a 180° phase shift, so C1, C2, and Y1 only need to provide another 180° phase shift. Precisely, when C1, C2, and Y1 resonate, they can achieve a 180° phase shift; the simplest implementation uses ground as the reference. During resonance, because the current through C1 and C2 is the same and ground is between C1 and C2, the voltages are exactly opposite, thereby achieving a 180° phase shift.

Furthermore, when C1 increases, the amplitude at the C2 side increases; when C2 decreases, the amplitude also increases. Sometimes oscillation can still start even without soldering C1 and C2, but this phenomenon is not caused by omitting C1 and C2; it is caused by the distributed capacitance of the chip pins, because the capacitance values of C1 and C2 do not need to be very large in the first place. This point is important.


So, what exactly is the impact of these two capacitors on oscillation stability?

Since the voltage feedback of 5404 relies on C2, if C2 is too large, the feedback voltage will be too low, and oscillation will be unstable; if C2 is too small, the feedback voltage will be too high and the stored energy too little, making the circuit susceptible to external interference and also causing radiation that affects the outside world. The role of C1 is exactly opposite to that of C2. During PCB layout, if a double-sided board is used and is relatively thick, the impact of distributed capacitance is not significant; however, if a high-density multilayer board is used, distributed capacitance must be considered, especially for oscillator circuits such as VCOs.

Therefore, for industrial control projects, it is recommended not to use crystal oscillators, but to directly use an active crystal oscillator.

In many cases, people use a 32.768K clock crystal as the clock instead of dividing the MCU crystal to generate the clock. The reason is probably unclear to many people. In fact, this is related to crystal stability: for higher-frequency crystals, it is generally difficult to achieve a high Q value, and frequency stability is also relatively poor; the 32.768K crystal performs well in stability and other aspects, and has become an industry standard, making it relatively easy to achieve high performance. It is also worth mentioning that 32.768K is half of 16-bit data, reserving the highest 1 bit as a carry flag, which is also very convenient for internal digital calculation processing in timer/counters.

Disclaimer: This article is reproduced from the Internet, and the copyright belongs to the original author. If the videos, images, or text used in this article involve copyright issues, please leave a message at the end of the article to inform us, and we will handle it as soon as possible! The content of this article represents the author's views and does not mean that this official account agrees with those views or is responsible for their authenticity.


 

Zhuhai Taixin Semiconductor Co., Ltd.

Zhuhai Taixin Semiconductor Co., Ltd. was founded in 2016 and is a high-tech enterprise integrating IC design and wireless intelligent communication solutions. We have successively launched long-range low-power IoT WIFI chips and low-power motor controller chips and product solutions. The company adheres to being market-oriented and technology-centered, providing customers with high-quality chips and product technical solutions.

The company's core products: WIFI communication chips for long-range low-power IoT. These chips can be used in fields such as smart homes, security surveillance, UAV image transmission, smart meter reading, smart door locks, smart grids, smart hospitals, and logistics robots.