• 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

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

DesignFast

Component Selection Made Simple.

Try it Today
design fast globle

EE Training Center Classrooms

“ee

“ee

“ee

“ee

“ee

Subscribe to our Newsletter

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

Subscribe today

RSS Current EDABoard.com discussions

  • Bicycle antenna for long wave 200 khz
  • What's the format of Conformal LEC set_analyze_option -mapping_file file?
  • Relay with ACS712 overcurrent protection (schematic included)
  • Trying to fix PICkit3 boards
  • Problem in Process corner simulation using Cadence ADXL tool.

RSS Current Electro-Tech-Online.com Discussions

  • How to copy project in MPLAB X???
  • Drok meter Issue please help
  • Can anyone help?!
  • ST7066U 20x4 LCD problems
  • Power Transistor Voltage Source

Follow us on Twitter

Tweets by MicroContrlTips

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 TwitterAdd us on FacebookFollow us on YouTube Follow us on Instagram

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