Hello, and welcome to this presentation of the STM32 system window watchdog. It will cover the main features of this peripheral used to detect

Similar documents
Hello and welcome to this presentation of the STM32L4 Analog-to-Digital Converter block. It will cover the main features of this block, which is used

Factory configured macros for the user logic

Laboratory Exercise 4

LCD Triplex Drive with COP820CJ

GREAT 32 channel peak sensing ADC module: User Manual

BLOCK OCCUPANCY DETECTOR

TXZ Family. Reference Manual 12-bit Analog to Digital Converter (ADC-A) 32-bit RISC Microcontroller. Revision

AN4178 Application note

Q&A Watchdog Timer Configuration for DRV3205-Q1

ECE 4510/5530 Microcontroller Applications Week 3 Lab 3

NI-DAQmx Device Considerations

AT03716: Implementation of SAM L Configurable Custom Logic (CCL) Peripheral. Description. SMART ARM-based Microcontrollers APPLICATION NOTE

Keyboard Controlled Scoreboard

Counter/timer 2 of the 83C552 microcontroller

Data Conversion and Lab (17.368) Fall Lecture Outline

Hello and welcome to this training module for the STM32L4 Liquid Crystal Display (LCD) controller. This controller can be used in a wide range of

Lab 3: Timer and Clock

Chapter 6. Flip-Flops and Simple Flip-Flop Applications

Section bit Analog-to-Digital Converter (ADC)

BASCOM-TV. TV Code Features: ICs supported: BASCOM versions:

Figure 30.1a Timing diagram of the divide by 60 minutes/seconds counter

Chapter 5 Synchronous Sequential Logic

Lecture 14: Computer Peripherals

Micro/Junior/Pro PL7 Micro PLC Functions Upcounting. TLX DS 37 PL7 40E engv4

Training Note TR-06RD. Schedules. Schedule types

Latches, Flip-Flops, and Registers. Dr. Ouiem Bchir

Flip-Flops. Because of this the state of the latch may keep changing in circuits with feedback as long as the clock pulse remains active.

Section 14 Parallel Peripheral Interface (PPI)

IMS B007 A transputer based graphics board

The World Leader in High Performance Signal Processing Solutions. Section 15. Parallel Peripheral Interface (PPI)

Parallel Peripheral Interface (PPI)

MELSEC iq-r Inter-Module Synchronization Function Reference Manual

Do the following: a. (12 points) Draw a block diagram of your circuit design, showing and labeling all essential components and connections.

RF2TTC and QPLL behavior during interruption or switch of the RF-BC source

BABAR IFR TDC Board (ITB): requirements and system description

ECE 372 Microcontroller Design

Analog-to-Digital Conversion (Part 2) Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff

Tearing Effect with Solomon SSD1963 Display Controller

M68HC11 Timer. Definition

Introduction to Sequential Circuits

STA2051E VESPUCCI 32-BIT SINGLE CHIP BASEBAND CONTROLLER FOR GPS AND TELEMATIC APPLICATIONS 1 FEATURES. Figure 1. Packages

Release Notes for GT42 Universal descrambler Module

Scans and encodes up to a 64-key keyboard. DB 1 DB 2 DB 3 DB 4 DB 5 DB 6 DB 7 V SS. display information.

RF4432 wireless transceiver module

8-BIT MCU WITH SINGLE VOLTAGE FLASH MEMORY, DATA EEPROM, ADC, TIMERS, SPI

TABLE 3. MIB COUNTER INPUT Register (Write Only) TABLE 4. MIB STATUS Register (Read Only)

Model 4455 ASI Serial Digital Protection Switch Data Pack

C Module Description

Advanced Synchronization Techniques for Data Acquisition

Digital Systems Laboratory 3 Counters & Registers Time 4 hours

Read-only memory (ROM) Digital logic: ALUs Sequential logic circuits. Don't cares. Bus

RF4432F27 wireless transceiver module

Design and Implementation of Timer, GPIO, and 7-segment Peripherals

The Successive Approximation Converter Concept - 8 Bit, 5 Volt Example

Model BE-64. talon 150 E. Arrow Highway, San Dimas, CA TECHNICAL DESCRIPTION. Bus Emulator/Word Generator

ELCT201: DIGITAL LOGIC DESIGN

Other Flip-Flops. Lecture 27 1

Logic Design. Flip Flops, Registers and Counters

Sapera LT 8.0 Acquisition Parameters Reference Manual

Dimming actuators GDA-4K KNX GDA-8K KNX

TV Synchronism Generation with PIC Microcontroller

AN1775 APPLICATION NOTE

OPERATING INSTRUCTIONS

Digital (5hz to 500 Khz) Frequency-Meter

o The 9S12 has a 16-bit free-running counter to determine the time and event happens, and to make an event happen at a particular time

Senior Design Project: Blind Transmitter

Dimming actuators of the FIX series DM 4-2 T, DM 8-2 T

o The 9S12 has a 16-bit free-running counter to determine the time and event happens, and to make an event happen at a particular time

LAB #4 SEQUENTIAL LOGIC CIRCUIT

RST RST WATCHDOG TIMER N.C.

C8188 C8000 1/10. digital audio modular processing system. 4 Channel AES/EBU I/O. features. block diagram. 4 balanced AES inputs

Power Supply and Watchdog Timer Monitoring Circuit ADM9690

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

Instruction manual. DALI Gateway art Installation manual

D Latch (Transparent Latch)

Tutorial 11 ChipscopePro, ISE 10.1 and Xilinx Simulator on the Digilent Spartan-3E board

PRINCIPLES AND APPLICATIONS

SPI Serial Communication and Nokia 5110 LCD Screen

SWITCH: Microcontroller Touch-switch Design & Test (Part 2)

Previous Lecture Sequential Circuits. Slide Summary of contents covered in this lecture. (Refer Slide Time: 01:55)

Viewing Set-Top Box Data

Agilent Technologies. N5106A PXB MIMO Receiver Tester. Error Messages. Agilent Technologies

Instruction Manual. SMS 8104 Serial Digital Frame Delay

XYZ Cinemas - ecna Configuration 12/12/2013 Table of Contents

Menu. 68HC12 Timer Block Diagram EEL 3744 EEL Input Capture (IC)

MPEG4 Digital Recording System THE VXM4 RANGE FROM A NAME YOU CAN RELY ON

Tutorial Introduction

REMOTE DISPLAY WIRELESS DECODER MK II

Synchronous Sequential Logic

ECE 4220 Real Time Embedded Systems Final Project Spectrum Analyzer

2.6 Reset Design Strategy

AN3023 Application note

Design and implementation (in VHDL) of a VGA Display and Light Sensor to run on the Nexys4DDR board Report and Signoff due Week 6 (October 4)

C8000. switch over & ducking

Digital Fundamentals: A Systems Approach

Figure 1 shows a simple implementation of a clock switch, using an AND-OR type multiplexer logic.

EECS145M 2000 Midterm #1 Page 1 Derenzo

HIGH PERFORMANCE MEMORY DESIGN TECHNIQUE FOR THE MC68000

Microcontrollers. Outline. Class 4: Timer/Counters. March 28, Timer/Counter Introduction. Timers as a Timebase.

Logic Design ( Part 3) Sequential Logic- Finite State Machines (Chapter 3)

Transcription:

Hello, and welcome to this presentation of the STM32 system window watchdog. It will cover the main features of this peripheral used to detect software faults. 1

The window watchdog is used to detect the occurrence of software faults. The window watchdog has a programmable free-running downcounter that must be refreshed within a window period that guarantees proper software execution. If a problem occurs and the programmed time period expires, the window watchdog generates a system reset. The window watchdog can be programmed to detect abnormally late or early application behavior. Once enabled, it can only be disabled by a device reset. The window watchdog is best suited for applications required to react within an accurate timing window. This time-window is configurable and can be adjusted according to various use cases. The window watchdog can be configured to start either by hardware or software via the option bytes. An Early Wakeup Interrupt can be generated before a reset happens to perform a system recovery or manage certain 2

actions before a system restart. 2

When the window watchdog is activated, a reset can occur when the downcounter value becomes less than 0x40 or when the downcounter is reloaded outside the time window. An Early Wakeup interrupt can trigger any action when the downcounter reaches 0x40. The EWI status register can be used to reload the downcounter, to avoid generating a reset, or to manage system recovery and context backup operations. 3

The PCLK clock from RCC clock controller is used to clock the watchdog peripheral. Bits T[6:0] from the watchdog control register count down until they roll over from 0x40 to 0x3F, which then generates a reset. Bits W[6:0] from the watchdog configuration register contain the window value. Bits T[6:0] and W[6:0] are compared in order to evaluate the time to refresh the downcounter in the configurable window. If the downcounter is reloaded too early or too late, the window watchdog will initiate a reset. 4

This diagram illustrates how the window watchdog operates. When the 7-bit downcounter T[6:0] bits roll over from 0x40 to 0x3F, it initiates a reset when the T6 bit is cleared. This happens when the application software did not react within the expected time window. If the software reloads the counter while the counter is greater than the value stored in W[6:0] bits, then a reset is generated. This happens when the application refreshes the counter too early. To prevent a window watchdog reset, the reload value T[6:0] bits must be written while the counter value is lower than the time-window value W[6:0] bits located in the green area. 5

To enable the window watchdog clock, set the WWDGEN bit in the RCC_APB1ENR1 register. The window watchdog time base is pre-scaled from PCLK1/APB1 whose maximum frequency can go up to 80 MHz. This clock frequency is first pre-divided by 4096 and the window watchdog pre-scaler can divide it again by 1, 2, 4 or 8 as defined in the WWDG_CFR register. The formula shown in slide lets you determine the watchdog timeout which is derived from the PCLK1 period and the WDGTB pre-scaler as well as the selected watchdog counter reload value. The minimum and maximum timeout values can be between 51.2 µs and 26.2 ms. Once the window watchdog generates a reset, a status flag WWDGRSTF is set in the RCC_CSR register identifying the source of the reset. 6

The Early Wakeup Interrupt can be used for specific safety operations or when data logging must be performed before the actual reset is generated. The EWI interrupt occurs whenever the downcounter value reaches 0x40. It is enabled by setting the EWI bit in the WWDG_CFR register. The EWI interrupt is cleared by writing 0 to the EWIF bit in the WWDG_SR register.

The window watchdog is active in Run, Sleep, Low-power run and Low-power sleep modes. It is not available in Stop or Standby modes and powered-down in Shutdown mode. In Sleep and Low-power sleep modes, the window watchdog clock can be disabled by clock gating by clearing the WWDGSMEN bit in the RCC_APB1MENR1 register.

When the microcontroller enters Debug mode with the core halted, the window watchdog counter either continues to work normally or stops, depending on the DBG_WWDG_STOP configuration bit in the DBG module. Thank you. 9