How Important is Your Clock In Microcontroller Source | Blog | Altium Designer.Transforming objects

Looking for:

Affinity designer skew tool free

Click here to Download

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Microcontrollers are reliant on their clock source. The processor, the bus, and peripherals all use the clock to synchronize their operations. The clock determines how fast the processor executes its instructions, so it is fundamental to performance. But how important is the clock source? Does it matter how accurate it is? The short answer is that it depends… it depends on what the microcontroller is doing and its interfaces.

If the clock runs too slow, the processing takes longer. If the clock runs too fast, there may not be enough time to complete the required operations before the next set begins—the processor interfaces with a range of different component blocks, from dynamic memory to interface pins.

Any significant error in clock speed will have unpredictable consequences for internal microcontroller operations. The microcontroller clock signal will govern the conversion rate of any analog-to-digital operations. Suppose you are recording a sample twice a second with a timestamp. As for data sampling, the microcontroller clock signal will govern the conversion rate of any digital-to-analog operations.

The accuracy of the clock will determine the accuracy of the generated waveform. A critical application for the microcontroller clock signal will be to manage asynchronous communications where the clock signal determines when the incoming data stream is sampled; once the start bit is received and the waveform of the outgoing data stream in terms of when transitions between each bit of data occur.

With asynchronous communications, the transmitter and receiver are reliant on having the same clock speed for encoding and decoding data streams. However, these clocks do not need to be synchronized; they just need to have sufficiently equal clock rates.

This is because the receiver starts processing the incoming data stream when detecting the first edge on the signal line. The required accuracy will be dependent upon the window where the data has to be sampled. This sampling period will depend on the type and length of the communications link. Long transmission lengths and cables with a high capacitive will increase the rise and fall times. The presence of noise can also increase the time required for the signal to stabilize.

It will also depend on the clock speed and the message format. For short data streams, the accuracy requirements can be quite loose as the sampling clock resets every time a new data stream is received. However, for high-speed serial communications with long data streams, the required accuracy can become more precise. For example, the CAN bus protocol makes it very sensitive to clock skew to the extent that the use of any non-crystal based clock signal source may be problematic.

Taking the example of UART devices, we can see that the absolute clock rate is unimportant because the UART receiver synchronizes itself at the start of every frame.

The issue simplifies to what differences between the transmit and receive UART clocks can be tolerated. There are usually a few different options to choose from when selecting a clock source for any particular microcontroller.

The different options are principally differentiated by their accuracy, cost, and component count. Using an internal clock source that all good microcontrollers include will be the cheapest and least complicated option but will usually be the least accurate. Which option you select will be governed by what performance you require and what constraints you have in terms of board space and budget.

As there are always several alternate options to generate a clock signal for any given microcontroller, study the data sheet for your particular device.

This will generally provide some great information on what types of clock sources you can use and how best to implement them. Microcontrollers usually come with an internal resistor-capacitor oscillator to generate a basic clock signal and a phase-locked loop to provide a frequency multiplication function. The issue with using an internal oscillator is they are significantly less accurate than external oscillators with poor frequency stability.

This inside of a microcontroller chip is, by definition, a less than ideal place to locate any RC circuit. This comes from the high-temperature dependency of RC circuits and inherently wide component tolerances. This may be good enough for some of the slower asynchronous communications buses and for managing low-frequency analog signal processing. Still, in most typical applications, this will be too inaccurate.

However, if an external clock signal is available, then it makes sense to use this instead of the internal clock unless the microcontroller has any specific constraints that would prevent this. Clock sources for microcontrollers come in two main types: mechanical resonant devices, including crystals and ceramic resonators, and passive RC oscillators.

The most basic form of oscillators is the RC circuit, emulating the internal oscillator circuit but using components with higher precision values and using thermal management techniques to isolate the components from the heat generated by the microcontroller clock and any other hot elements of the circuit. While this can improve accuracy by at least an order of magnitude, it is by far the least accurate option for an external oscillator, and better solutions are available for a comparatively similar cost and footprint size.

The clock generated by the RC circuit will also be affected by fluctuations in power supply levels and susceptible to electrical interference, limiting their usefulness in most typical applications.

Crystal oscillators are the most common form of external oscillators where a precision clock signal is required. A quartz crystal and supporting circuitry provide excellent stability and precision. A typical low-cost crystal oscillator can have an accuracy better than a millionth of a percent—more than enough for all but the most time-sensitive applications.

However, the quartz crystal can be affected by environmental factors that may require additional protection. The supporting circuit for the quartz crystal can also result in a high impedance output requiring additional impedance matching to integrate with the rest of the circuit. Using an off-the-shelf crystal oscillator module rather than discrete components can reduce susceptibility to environmental effects and make the board design more straightforward if your budget allows.

They generally provide a low impedance square wave output that makes integration with the rest of the circuit design simpler with very similar accuracy to using a discrete crystal. An alternative option is a silicon oscillator based on an IC resonator circuit that is simple to implement with around 0. Slightly better than an external RC circuit but nowhere near as good as a crystal oscillator.

However, silicon oscillators are more rugged and reliable than a crystal oscillator, ideal for operating environments where the device could be subject to severe mechanical vibrations. Finally, ceramic resonators are available that are not quite as accurate as a crystal oscillator but more accurate than a silicon oscillator. Based on a piezoelectric ceramic material, they use resonant mechanical vibrations to generate a clock signal. Their main advantage is that they come in a simple integrated package with a smaller footprint than a crystal oscillator and its supporting components.

However, like crystal oscillators, they are sensitive to environmental factors, including temperature, humidity, vibrations, and electrical interference. When choosing an external oscillator, the power consumption of the options may be a factor in your decision. A typical crystal oscillator circuit will draw tens of mA. Ceramic resonator circuits typically require larger load capacitance values than needed for crystal oscillators, requiring more power.

The power consumption of silicon oscillators is mainly proportional to the operating frequency. Still, they come in a range of options, from low power devices that draw a few mA to standard devices that draw tens of mA. Interfaces with high-speed asynchronous communications buses and high-frequency analog signals will drive the need for an accurate clock signal.

Suppose the device needs to operate in a harsh environment, whether that is over a wide temperature range, in high levels of electromagnetic interference, or subject to mechanical vibrations. In that case, it can limit the choices available. If you want to know more, why not browse our product page for a more in-depth feature description or call an expert at Altium.

Mark Harris is an engineer’s engineer, with over 12 years of diverse experience within the electronics industry, varying from aerospace and defense contracts to small product startups, hobbies and everything in between. Before moving to the United Kingdom, Mark was employed by one of the largest research organizations in Canada; every day brought a different project or challenge involving electronics, mechanics, and software.

He also publishes the most extensive open source database library of components for Altium Designer called the Celestial Database Library. Mark has an affinity for open-source hardware and software and the innovative problem-solving required for the day-to-day challenges such projects offer. Electronics are passion; watching a product go from an idea to reality and start interacting with the world is a never-ending source of enjoyment.

You can contact Mark directly at: mark originalcircuit. Mobile menu. Explore Products. Altium Community. Education Programs. Why the clock source matters What is Clock in Microcontroller Processing?

Data Sampling The microcontroller clock signal will govern the conversion rate of any analog-to-digital operations. Waveform Generation As for data sampling, the microcontroller clock signal will govern the conversion rate of any digital-to-analog operations.

Asynchronous Serial Communications A critical application for the microcontroller clock signal will be to manage asynchronous communications where the clock signal determines when the incoming data stream is sampled; once the start bit is received and the waveform of the outgoing data stream in terms of when transitions between each bit of data occur. Clock Source options There are usually a few different options to choose from when selecting a clock source for any particular microcontroller.

Internal oscillators Microcontrollers usually come with an internal resistor-capacitor oscillator to generate a basic clock signal and a phase-locked loop to provide a frequency multiplication function.

External oscillators Clock sources for microcontrollers come in two main types: mechanical resonant devices, including crystals and ceramic resonators, and passive RC oscillators. About Author Mark Harris is an engineer’s engineer, with over 12 years of diverse experience within the electronics industry, varying from aerospace and defense contracts to small product startups, hobbies and everything in between.

More content by Mark Harris. Recent Articles. Stephen encourages and motivates PCB designers like you to keep learning and succeed in the electronics industry. Read Article. Nucleo Shields Multi-Board Design Learn how easy it is to create multi-board projects in this practical project article.

Mark Harris covers why you would break larger boards into sub assemblies, and connection options between sub assembly boards. Risk Vs. As with any new technology in PCB manufacturing, there were people that are excited to jump right in and start designing with much finer feature sizes and work through the inevitable changes to the traditional thought process.

There were a few stand Read Article. Mark Harris demonstrates the advantages of multi-board assemblies when creating your own surface mount module. Hubing our guest for today is an EMC expert with 30 years of experience in the industry. Watch this episode or listen on the go now. Read this article and you will understand why. Ah, that’s how it works!

 
 

 

Affinity designer skew tool free. Transform panel

 
Oct 26,  · For example, the CAN bus protocol makes it very sensitive to clock skew to the extent that the use of any non-crystal based clock signal source may be problematic. Taking the example of UART devices, we can see that the absolute clock rate is unimportant because the UART receiver synchronizes itself at the start of every frame. • Text tool: horizontal, vertical, circle, or text on path Streamlined interface • It’s simple. It’s organized. It’s out of the way. • Move your favorite tools to the top bar for quicker access • Drag out the color wheel with two fingers Advanced features • Transform tool: Translate, Scale, Rotate, Flip, Distort, and Skew. Affinity Designer Best in class for creating concept art, print projects, logos, icons, UI designs, mock-ups and more, our powerful design app is already the choice of thousands of professional illustrators, web designers and game developers who love its silky-smooth combination of vector and raster design tools.

 
 

Similar Posts

Leave a Reply

Your email address will not be published.