Hello and welcome to this Renesas Interactive module that covers the Independent watchdog timer found on RX MCUs.

Similar documents
Hello and welcome to this Renesas Interactive course that covers the Watchdog timer found on RX MCUs.

Hello, and welcome to this presentation of the STM32 Low Power Universal Asynchronous Receiver/Transmitter interface. It covers the main features of

Hello, and welcome to this presentation of the STM32 Random Number Generator. The features of this peripheral, which is widely used to provide random

Hello, and welcome to this presentation of the STM32 Real- Time Clock. It covers the main features of this peripheral, which is used to provide a

Course Introduction. 2009, Renesas Technology America, Inc., All Rights Reserved

Hello, and welcome to this presentation of the STM32 Universal Synchronous/Asynchronous Receiver/Transmitter Interface. It covers the main features

Hello, and welcome to this presentation of the STM32 Reset and Clock Controller.

Thread Monitor Framework Module Guide

Hello and welcome to this Renesas Interactive module that provides an overview of the RX DMA Controller

Hello, and welcome to this presentation of the STM32 I²C interface. It covers the main features of this communication interface, which is widely used

Arduino Uno R3 INTRODUCTION

Module Introduction. PURPOSE: The intent of this module is to explain MCU processing of reset and interrupt exception events.

MB ds90455-ds e-corr-x1-00. Fujitsu Microelectronics Europe GmbH

Introduction. PURPOSE: This course explains several important features of the i.mx21 microprocessor.

The following document contains information on Cypress products.

Lecture 14. Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Real Time Embedded Systems. Lecture 1 January 17, 2012

Hello, and welcome to this presentation of the STM32L4 s full-speed on-the-go (OTG) USB device interface. It covers the features of this IP, which is

SECTION 5 RESETS AND INTERRUPTS

Approximately half the power consumption of earlier Renesas Technology products and multiple functions in a 14-pin package

Section 10. Watchdog Timer and Power Saving Modes

Hello, and welcome to this presentation of the STM32 general-purpose IO interface. It covers the general-purpose input and output interface and how

Course Introduction. Purpose: Objectives: Content: 27 pages 4 questions. Learning Time: 20 minutes

CoE3DJ4 Digital Systems Design. Chapter 5: Serial Port Operation

AVR Microcontrollers Architecture

Design and development of embedded systems for the Internet of Things (IoT) Fabio Angeletti Fabrizio Gattuso

Renesas 78K/78K0R/RL78 Family In-Circuit Emulation

Hello, and welcome to this presentation of the STM32L4 USB 2.0 Full Speed interface. It covers the features of this interface, which is widely used

F²MC-16FX FAMILY ALL SERIES STANDBY MODES & POWER MANAGEMENT 16-BIT MICROCONTROLLER APPLICATION NOTE. Fujitsu Microelectronics Europe Application Note

Timers and Counters. LISHA/UFSC Prof. Dr. Antônio Augusto Fröhlich Fauze Valério Polpeta Lucas Francisco Wanner.

Power Profiles V2 Framework Module Guide

Product Update. Errata to Z8 Encore! 8K Series Silicon. Z8 Encore! 8K Series Silicon with Date Codes 0402 and Later

Microprocessors & Interfacing

Interrupts (I) Lecturer: Sri Notes by Annie Guo. Week8 1

Embedded Programming with ARM Cortex-M3 Basic Experiments 1

Infineon C167CR microcontroller, 256 kb external. RAM and 256 kb external (Flash) EEPROM. - Small single-board computer (SBC) with an

Hello, and welcome to this presentation of the STM32L4 power controller. The STM32L4 s power management functions and all power modes will also be

Microcontroller basics

Embedded Systems. PIC16F84A Internal Architecture. Eng. Anis Nazer First Semester

Chapter 2. Overview of Architecture and Microcontroller-Resources

Hello, and welcome to this presentation of the STM32 Flash memory interface. It covers all the new features of the STM32F7 Flash memory.

IWDT HAL Module Guide

8051 Peripherals. On-Chip Memory Timers Serial Port Interrupts. Computer Engineering Timers

Clock and Fuses. Prof. Prabhat Ranjan Dhirubhai Ambani Institute of Information and Communication Technology, Gandhinagar

Engineer-to-Engineer Note

ARDUINO MEGA INTRODUCTION

M68HC08 Microcontroller The MC68HC908GP32. General Description. MCU Block Diagram CPU08 1

Appendix A Programming the watchdog timer

8-bit Microcontroller. Application Note. AVR134: Real-Time Clock (RTC) using the Asynchronous Timer. Features. Theory of Operation.

AM18X5. 1. Introduction. 2. System Power Control Applications. Application Note. AM18X5 Family System Power Management

Hello, and welcome to this presentation of the STM32F7 System Configuration Controller.

Table of Contents List of Figures... 2 List of Tables Introduction Main features Function description On-chip Flash memo

General Purpose Programmable Peripheral Devices. Assistant Professor, EC Dept., Sankalchand Patel College of Engg.,Visnagar

Code Generator Tool. User s Manual. User's Manual: RX API Reference. Target Device RX Family

Application Note. Introduction. AN2255/D Rev. 0, 2/2002. MSCAN Low-Power Applications

Remote Keyless Entry In a Body Controller Unit Application

Tutorial Introduction

Section 9. Watchdog Timer (WDT)

M16C/Tiny Series APPLICATION NOTE. Operation of Timer A. (2-Phase Pulse Signal Process in Event Counter Mode, Multiply-by-4 Mode) 1.

8254 is a programmable interval timer. Which is widely used in clock driven digital circuits. with out timer there will not be proper synchronization

Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Computing Layers

UNIT V MICRO CONTROLLER PROGRAMMING & APPLICATIONS TWO MARKS. 3.Give any two differences between microprocessor and micro controller.

Section 8. Reset HIGHLIGHTS. Reset. This section of the manual contains the following major topics:

8. Power Management and Sleep Modes

Section 28. WDT and SLEEP Mode

XMEGA Series Of AVR Processor. Presented by: Manisha Biyani ( ) Shashank Bolia (

[MG2420] MCU Module Datasheet. (No. ADS0705) V1.0

VORAGO VA108x0 I 2 C programming application note

Section 9. Watchdog Timer (WDT) and Power-Saving Modes

UDP1G-IP reference design manual

_ V Intel 8085 Family In-Circuit Emulation. Contents. Technical Notes

CENG-336 Introduction to Embedded Systems Development. Timers

Introduction to Embedded Systems

SEIKO EPSON CORPORATION

Introduction to Microcontroller Apps for Amateur Radio Projects Using the HamStack Platform.

E8a Emulator Additional Document for User's Manual R0E00008AKCE00EP2

1. Attempt any three of the following: 15

AVR XMEGA Product Line Introduction AVR XMEGA TM. Product Introduction.

Interrupts. EE4380 Fall 2001 Class 9. Pari vallal Kannan. Center for Integrated Circuits and Systems University of Texas at Dallas

EXPERIMENT NO.1. A Microcontroller is a complete computer system built on a single chip.

The 8051 microcontroller has two 16-bit timers/counters called T0 and T1.

MICROPROCESSOR BASED SYSTEM DESIGN

Bare Metal Application Design, Interrupts & Timers

XMC Class-B library software. September 2016

History and Basic Processor Architecture

RX Family, RL78 Family

E8a Emulator Additional Document for User's Manual R0E00008AKCE00EP9

Chapter x96 Family Microcontrollers

Introducing The MCS 251 Microcontroller -- 8XC251SB

RX610, RX62N, RX621 Group

S1C63 Manual errata. Dec/6/2010 errata_c63406/408_2. ITEM: Diagram of Pad Layout. (Error) S1C Chip thickness:400um Pad. opening:100um.

CMS-8GP32. A Motorola MC68HC908GP32 Microcontroller Board. xiom anufacturing

Using the HT16K33 in DVD Player Panel Applications

MB90560/5 - hm90560-cm e-corr-x1-05. Fujitsu Microelectronics Europe GmbH. Addendum, MB90560/5 Hardware Manual (CM E)

Capacitive Touch Based User Interfaces and Hardware-based Solutions

Watchdog Timer. The Basics. The watchdog timer operates independent of the CPU, peripheral subsystems, and even the clock of the MCU.

A 24-hour clock (which is updated at 1-minute intervals) is created by using the 32K timer.

RX Family APPLICATION NOTE. Simple I 2 C Module Using Firmware Integration Technology. Introduction. Target Device.

MEMORY, OPERATING MODES, AND INTERRUPTS

Microprocessor Architecture. mywbut.com 1

Transcription:

Hello and welcome to this Renesas Interactive module that covers the Independent watchdog timer found on RX MCUs. 1

This course covers specific features of the independent watchdog timer on RX MCUs. If you need basic information on watchdog timers please refer to the Watchdog Timer Overview Course. If you are looking for information that applies to a specific RX group please refer to that group's Technical Marketing Overview Course. In this course we will cover the watchdog timer s block diagram, the available clocking and timeout options, how to start and refresh the watchdog, what happens when a counter underflows, general usage notes, and how to use the independent watchdog timer with the RX s watchdog timer. 2

This figure shows the block diagram of a typical Independent watchdog timer on an RX MCU. First notice the independent watchdog timer s registers which include the IWDT refresh register, control register, and status register. Note that these registers are accessed using the peripheral clock as can be seen by the PCLK coming in from the left. To the right of the registers you will see the different clocks that can be selected for the independent watchdog. Notice that all of the clock options are based upon the on-chip oscillator. Next we can see the 14-bit down counter of the independent watchdog. If this counter underflows the IWDT control circuit can issue a reset command to the MCU. 3

As shown on the block diagram slide, all the independent watchdog's clocking options are based upon the on-chip oscillator or OCO. By setting the CKS bits in the IWDT's control register the user can select a divisor of between 1 and 256 for the on-chip oscillator. Different timeout values can also be chosen for the independent watchdog. Whatever value is chosen will be the value that is put into the watchdog's 14-bit counter when it is refreshed. Since the independent watchdog is a down counting timer, the larger the value chosen, the longer the timeout. With these options the user has a large timeout range to choose from. The shortest timeout would be to use the on-chip oscillator with no division and a timeout value of hex 3FF which is 1024 OCO cycles. With an on-chip oscillator frequency of 125kHz this gives the user a timeout value of 8.192ms. The longest timeout that could be achieved would be to use a 256 divisor on the on-chip oscillator and have the timeout value be hex 3FFF or 4,194,304 on-chip oscillator cycles. Using the 125kHz OCO frequency this would give the user a timeout value of around 33 and a half seconds. An important thing to note is that the IWDTCR register can only be written once per reset. Once the register has been written the MCU has an internal lock bit that prevents it from being written again until after a reset. This means that the clock and timeout values cannot be changed after the user has written their initial values. 4

Starting and refreshing the independent watchdog timer are done in the same manner, which is to write to the independent watchdog s refresh register. To write the refresh register hex 00 should first be written and then hex FF. If this sequence is not maintained then the watchdog will not be refreshed. Here are some examples of invalid write sequences. This first example is invalid because the first write was not hex 00, but hex 23h. In this case, the first write was correct but the second write was hex 54 when it should have been hex FF. Writing something other than hex FF after writing hex 00 also invalidates the sequence as shown here. Let s look at two valid write sequences. The first is the normal case where writing hex 00 is followed by writing hex FF. It is also valid to have multiple writes of hex 00 as long as hex FF follows one of them. When a valid write sequence is performed the counter will be refreshed with the value chosen by the TOPS bits in the independent watchdog s control register. 5

What happens when the independent watchdog underflows is a reset of the MCU. This figure shows an example of IWDT operation. The IWDT starts counting when the timer is refreshed. When a refresh occurs, the counters value is reset to the value chosen by the TOPS bits in the IWDT's control register. In the event that the IWDT is not refreshed, an underflow occurs and a reset signal is sent out from the IWDT to the MCU. At this point the MCU is reset. The user can check to see if the cause for the reset was due to an IWDT timeout by reading the value of the underflow flag in the IWDT's status register. In the event of an IWDT underflow, this flag is set. The user should make sure to clear the flag after reading so that proper checking can be done if there is another reset. After the reset has occurred the IWDT does not start counting again until the refresh register has once again been successfully written to with the correct byte sequence. 6

This slide covers some usage notes that users should be aware of when using the IWDT. The first note is that once the IWDT has begun counting, the only way to stop the timer is a reset. Refer to the Reset section of your specific RX group s hardware manual for more information on this topic. The user should also know that when using the IWDT, the MCU cannot transition into Software Standby Mode. Instead the MCU will transition into either sleep mode or all-module clock-stop mode depending on the MCU s configuration. In these modes the IWDT will still be operating and can cause a reset. 7

The RX has two watchdog timer units: the watchdog timer and the independent watchdog timer. While the independent watchdog timer only has the option of resetting the MCU when a timeout occurs, the watchdog timer can trigger an interrupt. Using these two together the watchdog timer could be used as a controlled shutdown mechanism while the independent watchdog would still offer the hard reset functionality. With this setup the standard watchdog could be used to detect errors in the user s system that would only be recreated after a hard reset has occurred. 8

In summary, in this module we covered: -the block diagram of the RX's independent watchdog timer, -The clock and timeout options available, -How to start and refresh the watchdog, -What happens when the watchdog s counter underflows, -Usage notes about stopping the timer and using the IWDT with low power modes, -And how you could use the watchdog timer along with the independent watchdog timer peripheral -We would like to thank for viewing this course. You may consider viewing the Technical Marketing Overview Course for more information on RX MCUs. 9

10

Thank You 11