Free Trials

Download a free trial to find out which Altium software best suits your needs

How to Buy

Contact your local sales office to get started on improving your design environment

Downloads

Download the latest in PCB design and EDA software

  • PCB DESIGN SOFTWARE
  • Altium Designer

    Complete Environment for Schematic + Layout

  • CircuitStudio

    Entry Level, Professional PCB Design Tool

  • CircuitMaker

    Community Based PCB Design Tool

  • NEXUS

    Agile PCB Design For Teams

  • CLOUD PLATFORM
  • Altium 365

    Connecting PCB Design to the Manufacturing Floor

  • COMPONENT MANAGEMENT
  • Altium Concord Pro

    Complete Solution for Library Management

  • Octopart

    Extensive, Easy-to-Use Component Database

  • PRODUCT EXTENSIONS
  • PDN Analyzer

    Natural and Effortless Power Distribution Network Analysis

  • See All Extensions
  • EMBEDDED
  • TASKING

    World-Renowned Technology for Embedded Systems Development

  • TRAININGS
  • Live Courses

    Learn best practices with instructional training available worldwide

  • On-Demand Courses

    Gain comprehensive knowledge without leaving your home or office

  • ONLINE VIEWER
  • Altium 365 Viewer

    View & Share electronic designs in your browser

  • Altium Designer 20

    The most powerful, modern and easy-to-use PCB design tool for professional use

    ALTIUMLIVE

    Annual PCB Design Summit

    • Forum

      Where Altium users and enthusiasts can interact with each other

    • Blog

      Our blog about things that interest us and hopefully you too

    • Ideas

      Submit ideas and vote for new features you want in Altium tools

    • Bug Crunch

      Help make the software better by submitting bugs and voting on what's important

    • Wall

      A stream of events on AltiumLive you follow by participating in or subscribing to

    • Beta Program

      Information about participating in our Beta program and getting early access to Altium tools

    All Resources

    Explore the latest content from blog posts to social media and technical white papers gathered together for your convenience

    Downloads

    Take a look at what download options are available to best suit your needs

    How to Buy

    Contact your local sales office to get started improving your design environment

    • Documentation

      The documentation area is where you can find extensive, versioned information about our software online, for free.

    • Training & Events

      View the schedule and register for training events all around the world and online

    • Design Content

      Browse our vast library of free design content including components, templates and reference designs

    • Webinars

      Attend a live webinar online or get instant access to our on demand series of webinars

    • Support

      Get your questions answered with our variety of direct support and self-service options

    • Technical Papers

      Stay up to date with the latest technology and industry trends with our complete collection of technical white papers.

    • Video Library

      Quick and to-the-point video tutorials to get you started with Altium Designer

    PCB Design Tips: Should You Include an External Watchdog Timer (WDT) in Your Board Design

    October 26, 2017

    German Shepherd watchdog

    Would you invest in an external mouse, keyboard, and a high definition monitor when your laptop comes equipped with these features? It’s a personal choice, especially when you want to turn your laptop into a portable workstation. My girlfriend, who’s starting her career as a professional accountant, dismissed my choice as a waste of money.

    In electronics, deciding whether to include an external watchdog timer (WDT) into your design can be an equally difficult choice. This is especially the case if your microcontroller (MCU) already has a built-in WDT. Like my girlfriend and I, design experts are divided in their opinions on whether it is a good decision. However, as a hardware , the final decision is ultimately yours. That is why it is important to have a good understanding of internal and external hardware watchdog timers, to draw your own conclusions.

    What is A Watchdog Timer (WDT) And Why Do You Need It In Your Design

    A watchdog timer (WDT) is an electronics feature that is used to detect anomalies in embedded systems and reset the microcontroller. It usually consists of a pre-loaded timer that counts down to zero. When the pre-loaded watchdog timer card expires, the microcontroller will be reset. Under normal operation, the microcontroller consistently refreshes the value of the timer to prevent it from entering the reset state. This is often candidly called “kicking the watchdog”.

    As much as you try to perfect your hardware and firmware, mistakes can happen. Unstable power supply, memory stack overflow or having your program trapped in a perpetual loop are reasons why microcontrollers stall. These errors can result in a system crash, which can be problematic in applications that have little to no tolerance for downtime. When this happens, systems equipped with a Watchdog Timer Relay will reset automatically. This is because a WDT triggers a reset of the system so that it can resume functioning normally without human intervention.

    In the past I’ve made the mistake of not using a WDT with my microcontroller since I was overconfident about my coding skills. After experiencing multiple system crashes, which were caused by a bug that wasn’t discovered in development, I learned to make WDTs a priority in all my designs. The question that remains is, should you incorporate an external WDT in MCUs that come with an internal one or rely solely on the internal WDT.

    PCB with microcontroller
    Most modern MCUs come with an internal WDT.

    Internal WDT Vs External WDT, what is your best choice?

    Before choosing one WDT over the other, it is important to understand how they might be the same or similar to one another. Internal WDTs are watchdog timers built within the microcontroller itself. Configuring and refreshing the WDT is done by writing values to respective registers of the WDT.

    On the other hand, external WDTs are physical integrated circuits (IC) and require passive components to function. The duration of the reset countdown is often determined by capacitor’s value. External WDTs are usually refreshed by sending a voltage pulse and they reset the microcontroller in the same manner.

    The advantage of choosing an internal WDT over its external counterpart is that you save money by minimizing the cost of additional components and can have a smaller PCB. Since most modern MCUs are equipped with an internal WDT that are said to be reliable, this seems like a sensible choice.

    Cost saving and minimalism were my motivation when I decided not to use an external WDT in one of my designs. However, my supervisor at the time changed my opinion on this. He pointed out that the internal WDT is part of the same IC as its MCU. So, if a microcontroller could fail, wouldn’t it also be possible for the WDT to fail?

    With today’s microcontroller manufacturing capability, the likelihood of encountering an unreliable internal WDT is pretty slim. However, they do stand a chance of failing from runaway code that mistakenly deactivates the timer. Also, an internal WDT that shares the same system clock with the microcontroller has a higher chance of malfunctioning if the system clock fails.

    Patient monitor
    You just can’t afford a stalled system in certain applications.

    In mission-critical applications, it is always safer to place an external WDT on top of the internal ones. In the end, you’ll find that the cost of adding a handful of components is still lesser than the damage inflicted by the stalled system. This is particularly the case for applications in the medical, oil and gas, and automotive industry.

    At the end of the day, you have the final say in choosing one over the other. Including an external WDT shouldn’t be a huge problem, especially when you’re designing with professional pcb design software and PCB components libraries, like Altium Designer® , Altium’s CircuitStudio® , and Altium Vault® .

    Have a question about WDTs? Talk to our team at Altium now.

     

    Check out Altium in action...

    Powerful PCB Design

    most recent articles

    Back to Home