• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Microcontroller Tips

Microcontroller engineering resources, new microcontroller products and electronics engineering news

  • Products
    • 8-bit
    • 16-bit
    • 32-bit
    • 64-bit
  • Applications
    • Automotive
    • Connectivity
    • Consumer Electronics
    • Industrial
    • Medical
    • Security
  • EE Forums
    • EDABoard.com
    • Electro-Tech-Online.com
  • Videos
    • TI Microcontroller Videos
  • EE Resources
    • DesignFast
    • eBooks / Tech Tips
    • FAQs
    • LEAP Awards
    • Podcasts
    • Webinars
    • White Papers
  • EE Learning Center
    • Design Guides
      • WiFi & the IOT Design Guide
      • Microcontrollers Design Guide
      • State of the Art Inductors Design Guide
      • Power Electronics & Programmable Power

Real time clock (RTC) vs. clock: What is the difference?

October 20, 2016 By Scott Thornton

101316-fig1-rtc
Figure 1: The DS1307 real time clock breakout board kit by Adafruit is an RTC with coin cell battery and will keep time for at least five years. Source: Adafruit.com

Microcontrollers act upon instructions a few bits at a time, collecting the next batch of bits at regular intervals. Those regular intervals need to have a regular cadence for the MCU to be predictable, so MCUs have at least one clock to keep timing going at a regular pace, much like you would use a metronome to keep pace in piano playing. Clocks can be internal or external, and come in many different types and implementations, but they all keep a regular drumbeat for the MCU. Clock frequency is often discussed with respect to the speed of an MCU or processor. A 32 mega Hertz (MHz) clock will cause the associated controller to complete 32 million (M) cycles per second (Hz), which is the same as 32 million instructions processed per second, if one full instruction is completed in each cycle.

“Overclocking” is sometimes discussed in reference to processors. Processors can be sped up by speeding up the clock, within certain limitations. Overclocking can cause problems if overdone. Modern processors are so fast that overclocking isn’t discussed as much anymore because it’s not worth the effort.

Another type of clock often mentioned in MCU datasheets, however, is the Real Time Clock (RTC). The RTC is a clock, but it’s the kind of clock that people use every day; an RTC is a 24-hour clock and/or a Julian calendar. RTCs are most often used when humans need an MCU to interact with them on their terms. Fitness bands all have RTCs because most people want to know when and how long an event occurred with respect to times that they can relate to.  RTCs always need some kind of battery back-up, otherwise, like a night stand alarm clock without a 9V battery, when the power goes out in a thunderstorm, the alarm clock needs to be reset. When power goes out on an RTC, the RTC must be reset. The only alternative is to literally provide a battery back-up for the RTC, which is why many MCUs with an RTC will also have a coin cell battery.

Like quartz watches, RTCs need a clock signal or crystal oscillator to keep time. The most modern RTC solution uses a GPS receiver to tap time as kept by GPS satellites and does not need a battery backup as long as GPS satellites are available to send the current time so the RTC can set itself when power is restored.

Filed Under: FAQ, microcontroller Tagged With: basics, FAQ

Primary Sidebar

DesignFast

Design Fast Logo
Component Selection Made Simple.

Try it Today
design fast globle

EE Training Center Classrooms

EE Classrooms

CURRENT DIGITAL ISSUE

A frequency you can count on There are few constants in life, but what few there are might include death, taxes, and a U.S. grid frequency that doesn’t vary by more than ±0.5 Hz. However, the certainty of the grid frequency is coming into question, thanks to the rising percentage of renewable energy sources that…

Digital Edition Back Issues

Subscribe to our Newsletter

Subscribe to weekly industry news, new product innovations and more.

Subscribe today

RSS Current EDABoard.com discussions

  • Question about LO leakage cancellation for upconverter
  • Need help in finding distributor having components
  • Phase aliasing ambguity and simulation in MatLab?
  • Measuring a 1GHZ Signal
  • A 3-stage can work correctly but 4-stage ring vco can't work

RSS Current Electro-Tech-Online.com Discussions

  • How to power up two stereo audio amplifiers from a single source of power supply
  • Need help for diy ups project
  • Is there a discord for this forum?
  • cadence transient and pss simulation
  • Digital Display Information

Footer

Microcontroller Tips

EE World Online Network

  • DesignFast
  • EE World Online
  • EDA Board Forums
  • Electro Tech Online Forums
  • Connector Tips
  • Analog IC Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • Wire and Cable Tips
  • 5G Technology World

Microcontroller Tips

  • Subscribe to our newsletter
  • Advertise with us
  • Contact us
  • About us
Follow us on Twitter Add us on Facebook Follow us on YouTube  Follow us on Instagram

Copyright © 2022 · WTWH Media LLC and its licensors. All rights reserved.
The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media.

Privacy Policy