• 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
    • 5G
    • Automotive
    • Connectivity
    • Consumer Electronics
    • EV Engineering
    • Industrial
    • IoT
    • Medical
    • Security
    • Telecommunications
    • Wearables
    • Wireless
  • Learn
    • eBooks / Tech Tips
    • EE Training Days
    • FAQs
    • Learning Center
    • Tech Toolboxes
    • Webinars/Digital Events
  • Resources
    • Design Guide Library
    • DesignFast
    • LEAP Awards
    • Podcasts
    • White Papers
  • Videos
    • EE Videos & Interviews
    • Teardown Videos
  • EE Forums
    • EDABoard.com
    • Electro-Tech-Online.com
  • Engineering Training Days
  • Advertise
  • Subscribe

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

October 20, 2016 By Scott Thornton Leave a Comment

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

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Featured Contributions

Five challenges for developing next-generation ADAS and autonomous vehicles

Securing IoT devices against quantum computing risks

RISC-V implementation strategies for certification of safety-critical systems

What’s new with Matter: how Matter 1.4 is reshaping interoperability and energy management

Edge AI: Revolutionizing real-time data processing and automation

More Featured Contributions

EE TECH TOOLBOX

“ee
Tech Toolbox: Internet of Things
Explore practical strategies for minimizing attack surfaces, managing memory efficiently, and securing firmware. Download now to ensure your IoT implementations remain secure, efficient, and future-ready.

EE Learning Center

EE Learning Center

EE ENGINEERING TRAINING DAYS

engineering
“bills
“microcontroller
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

DesignFast

Design Fast Logo
Component Selection Made Simple.

Try it Today
design fast globle

Footer

Microcontroller Tips

EE World Online Network

  • 5G Technology World
  • EE World Online
  • Engineers Garage
  • Analog IC Tips
  • Battery Power Tips
  • Connector Tips
  • DesignFast
  • EDA Board Forums
  • Electro Tech Online Forums
  • EV Engineering
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips

Microcontroller Tips

  • Subscribe to our newsletter
  • Advertise with us
  • Contact us
  • About us

Copyright © 2025 · 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