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

Electrical Engineering News and Products

Electronics Engineering Resources, Articles, Forums, Tear Down Videos and Technical Electronics How-To's

  • Products / Components
    • Analog ICs
    • Connectors
    • Microcontrollers
    • Power Electronics
    • Sensors
    • Test and Measurement
    • Wire / Cable
  • Applications
    • Automotive
    • Industrial
    • IoT
    • Medical
    • Telecommunications
    • Wearables
    • Wireless
  • Resources
    • Covid-19
    • DesignFast
    • Ebooks / Tech Tips
    • EE Forums
      • EDABoard.com
      • Electro-Tech-Online.com
    • FAQs
    • 2020 LEAP Awards
    • Oscilloscope Product Finder
    • Podcasts
    • Webinars / Digital Events
    • White Papers
  • Videos
    • Teardown Videos
  • Lee’s Teardowns
    • Teardown Videos
  • Learning Center
  • 5G
  • Women in Engineering

What’s the difference between a clock and a real time clock?

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.

The post FAQ: What’s the difference between a clock and a real time clock? appeared first on Microcontroller Tips.

Filed Under: FAQ, Featured, Industry Experts, Microcontroller Tips Tagged With: basics, FAQ

Primary Sidebar

EE Training Center Classrooms

“ee

“ee

“ee

“ee

“ee

Featured Resources

  • NEW! EE World Online Learning Center
  • CUI Devices – CUI Insights Blog
  • EE Classroom: Power Delivery
  • EE Classroom: Building Automation
  • EE Classroom: Aerospace & Defense
  • EE Classroom: Grid Infrastructure

February 2021 Special Edition: Power Electronics Handbook

RSS Current EDABoard.com discussions

  • Variable autotransformer pri and sec resistance
  • Extraction of substrate resistance
  • CMOS inverter basic questions
  • Want to setup a looker authentication
  • what is the topology?

RSS Current Electro-Tech-Online.com Discussions

  • Adjustable 0-5v ground switch
  • Where are the daylight SMD photodiodes (or does everyone use an LED?)
  • GM812C518, CW508 or CW509 datasheets
  • KCX_BT_EMITTER Low cost bluetooth (BT) audio module
  • Source coil rewinding

Oscilloscopes Product Finder

Follow EE World on Twitter

Tweets by @EEWorldOnline

Footer

EE World Online

EE WORLD ONLINE NETWORK

  • DesignFast
  • EDABoard Forums
  • Electro-Tech-Online Forums
  • Microcontroller Tips
  • Analog IC Tips
  • Connector Tips
  • Engineer's Garage
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • Wire & Cable Tips
  • 5G Technology World

EE WORLD ONLINE

  • Subscribe to our newsletter
  • Lee's teardown videos
  • Advertise with us
  • Contact us
  • About Us
Follow us on TwitterAdd us on FacebookFollow us on YouTube Add 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