Clock switching circuit and its precautions
Source: InternetPublisher:睡不醒的小壮 Keywords: Power supply other power circuits Updated: 2020/06/05
Now that we have finished talking about the clock synchronization issue, let’s start with another common situation in SOC. Sometimes, in order to consider power consumption and performance issues, a certain module may work at one frequency in one case and another in another case. If you want to work at another frequency, you need to switch the mux at this time. Some people will say, it's not that simple, just add a mux, but is this really the case?
As shown in the picture above, everyone will naturally think of a clock switching circuit. However, if you analyze it carefully, you will find that the circuit will have the following problems, glitches! This glitch is not a good thing for either clk0 or clk1, and it does not belong to any For a clock domain, its pulse width cannot be determined at all. The point you switch will affect the width of the glitch.
So how to eliminate burrs and eliminate possible problems later? See the figure below and add a feedback circuit.
The feedback is to ensure that the clock is really turned off. For example, select switches from 0 to 1, that is, selects clk1, but at this time, make sure that clk0 is completely turned off, so the 1 is fed back through the DFF of the clk0 clock domain (if it can be fed back 1 indicates that 0 has entered the DFF of the clk0 clock domain) and is ANDed with the select of the clk1 clock domain.
In addition, in order to solve the cross-clock domain problem (select is different from the clk0 and clk1 clock domains after all), 1-2 levels of DFF are usually added.
In addition, one thing to note when using these circuits is that both clks must oscillate before selecting can be performed. Otherwise, switching may cause the select to not be correctly transmitted to the last level AND gate, thus eliminating glitches. function may not work.
- Fabrication of multi-cell lithium battery charging circuit
- Step-down power supply for driving relays
- BA6104 five-digit LED level meter driver integrated circuit basic application circuit
- Use pulse width modulation to get a precise output voltage
- Principles and precautions of active discharge circuit
- How to use SBR to improve power conversion efficiency
- Low cost and high performance LED constant current power supply
- Voltage-current converter constructed with XTR110
- Adjustable voltage power socket
- Solar Lead Acid Battery Charger
- Analysis on solving various electromagnetic interference problems of electronic equipment
- How to turn on the power with LLC controller?
- Determining the prerequisites for successful circuit board design
- Maintenance skills and common faults of switching power supply
- About the working principle of single touch mode light switch
- Design of data transmission interface circuit for a car driving recorder
- SKiiPPACK unit circuit
- An operational amplifier with very high amplification
- mini stereo amplifier
- Clock switching circuit and its precautions