Lecture 25: LM3S9B96 Microcontroller – Watchdog Timer.

Slides:



Advertisements
Similar presentations
Programmable Interval Timer
Advertisements

8253/54 Timer Section /54 Timer Description and Initialization
Programmable Keyboard/ Display Interface: 8279
8051 Core Specification.
Timers in Hardware ECE152. Overview Why are timers important – Watchdog – Task switching – Accurate time of day Can use polling or interrupts.
Refer to Chapter 6, 9 in the reference book
Lecture 21: LM3S9B96 Microcontroller – System Control.
The Cortex-M3 Embedded Systems: LM3S9B96 Microcontroller – System Control Refer to Chapter 6 in the reference book “Stellaris® LM3S9B96 Microcontroller.
INTERRUPTS PROGRAMMING
Lecture 27: LM3S9B96 Microcontroller – Inter- Integrated Circuit (I 2 C) Interface.
Lecture 13: TI MSP430 Watchdog Timer and Real-Time Clock
Lecture 9 Timer Operations and Programming. 2  Introduction  Summary of timers  Timer programming sequence  Summary of timer SFRs  Timer 0: 8-bit.
NS Training Hardware. System Controller Module.
CE-2800: Embedded Systems Software I Watchdog Timers 1 The Watchdog timer.
AVR Reset Sources When a reset event occurs.... -I/O registers set to initial values immediately -internal delay stretched to allow power to stabilize.
Lecture 26: LM3S9B96 Microcontroller – Universal Asynchronous Receivers/Transmitters.
8254 Programmable Interval Timer
7/23 Timers in Coldfire Processor Computer Science & Engineering Department Arizona State University Tempe, AZ Dr. Yann-Hang Lee (480)
8253 TIMER. Engr 4862 Microprocessors 8253 / 8254 Timer A.k.a. PIT (programmable Interval Timer), used to bring down the frequency to the desired level.
Lecture 29: LM3S9B96 Microcontroller – Pulse Width Modulator (PWM)
8254 Counter/Timer Counter Each of the three counter has 3 pins associated CLK: input clock frequency- 8 MHz OUT GATE: Enable (high) or disable.
ARM Timers.
Lecture 23: LM3S9B96 Microcontroller - Interrupts.
System Clocks.
M Semiconductor Products Sector Computer Operating Properly Module Detail Slide #1 of 7 Tutorial Introduction PURPOSE -To explain how to configure and.
MSP430 Mixed Signal Microcontroller – Parte 2 Afonso Ferreira Miguel Source: slau056d – Texas instruments.
The 8253 Programmable Interval Timer
Timers.
The Cortex-M3 Embedded Systems: LM3S9B96 Microcontroller – Universal Asynchronous Receivers/Transmitters Refer to Chapter 13 in the reference book “Stellaris®
Lecture 11 Low Power Modes & Watchdog Timers
Direct Memory Access (DMA) Microprocessors I -1. Topics to be discussed  Basic DMA Concept Basic DMA Concept  DMA pins and timing DMA pins and timing.
Timer Timer is a device, which counts the input at regular interval (δT) using clock pulses at its input. The counts increment on each pulse and store.
Chapter 2 Introducing the PIC Mid-Range Family and the 16F84A The aims of this chapter are to introduce: The PIC mid-range family, in overview The overall.
1 © Unitec New Zealand Interrupt Lecture 6 Date: - 20 Sept, 2011 Embedded Hardware ETEC 6416.
Conclusion Speech. Content Organization Pronunciation Handwriting.
The Cortex-M3 Embedded Systems: LM3S9B96 Microcontroller – Pulse Width Modulator (PWM) Refer to Chapter 21 in the reference book “Stellaris® LM3S9B96 Microcontroller.
8254 Timer.
Refer to Chapter 15 in the reference book
Interrupts  An interrupt is any service request that causes the CPU to stop its current execution stream and to execute an instruction stream that services.
Chapter 5 - Interrupts.
Lecture 4 General-Purpose Input/Output NCHUEE 720A Lab Prof. Jichiang Tsai.
Lecture 22: LM3S9B96 Microcontroller – SysTick and General-Purpose Timers.
The Cortex-M3 Embedded Systems: LM3S9B96 Microcontroller – Watchdog Timers Refer to Chapter 11 in the reference book “Stellaris® LM3S9B96 Microcontroller.
Computer Operating Properly Module MTT COMPUTER OPERATING PROPERLY MODULE (COP)
The Cortex-M3 Embedded Systems: LM3S9B96 Microcontroller – Interrupts Refer to Chapter 4 in the reference book “Stellaris® LM3S9B96 Microcontroller - DATA.
TM Freescale Confidential Proprietary Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names.
Timers and Event Counters
Refer to Chapter 5 in the reference book
Direct Memory address and 8237 dma controller LECTURE 6
Interrupts In 8085 and 8086.
Timer Source: under
RX Watchdog Timer (WDT)
Programmable Interval Timer
Programmable Interval Timer
Programmable Interval Timer 8254 LECTURE 3
Refer to Chapter 3 in the reference book
RX Compare Match Timer (CMT)
Timers.
Programmable Interval timer 8253 / 8254
Chapter 13 DMA Programming.
전자의료시스템 및 실습 System Configuration/Interrupt
Programmable Interval timer 8253 / 8254
嵌入式微控制器编程 Embedded Microcontroller Programming
Timer Source: under
8253 – PROGRAMMABLE INTERVAL TIMER (PIT). What is a Timer? Timer is a specialized type of device that is used to measure timing intervals. Timers can.
Programmable Interval Timer
Presentation transcript:

Lecture 25: LM3S9B96 Microcontroller – Watchdog Timer

Stellaris® LM3S9B96 Microcontroller Data Sheet Chapter 12 Watchdog Timers

Watchdog Timer (WDT) zThe watchdog timer is used to re-gain control when a system has failed due to a software error or due to the failure of an external device to respond in the expected way. zA watchdog timer can generate a NMI or a reset when a time-out value is reached. zThe LM3S9B96 microcontroller has two Watchdog Timer Modules zWatchdog Timer 0 is clocked by the system clock zWatchdog Timer 1 is clocked by the PIOSC zWatchdog Timer can be configured to generate an interrupt to the microcontroller on its first time-out, and to generate a reset signal on its second time-out.

Block Diagram

Functional Description zAfter being enabled, the WDT generates the first time-out signal when the 32-bit counter reaches 0 zEnabling the counter also enables the watchdog timer interrupt zAfter the first time-out event, the value of the Watchdog Timer Load (WDTLOAD) register is re-loaded zOnce the WDT has been configured, the Watchdog Timer Lock (WDTLOCK) register can be written to prevent the timer configuration from being altered by software

Functional Description zIf the timer counts down to zero again before the first time-out interrupt is cleared, and the reset signal has been enabled by setting the RESEN bit in the WDTCTL register, the WDT will asserts its reset signal to the system zIf the interrupt is cleared before the 32-bit counter reaches its second time-out, the 32-bit counter is loaded with the value in the WDTLOAD register, and counting resumes from that value. zIf WDTLOAD is written with a new value while the Watchdog Timer counter is counting, the counter is loaded with the new value and continues counting zAn interrupt must be specifically cleared by writing to the Watchdog Interrupt Clear (WDTICR) register zWhen the WDT interrupt and reset generation is enabled, counter is preloaded with the load register value

Register Access Timing for WDT1 zWDT1 has an independent clocking domain (not using the system clock), its registers must be written with a timing gap between accesses zThe WRC bit in the Watchdog Control (WDTCTL) register for WDT1 indicates that the required timing gap has elapsed zThis bit is cleared on a write operation and set once the write completes zSoftware should poll WDTCTL for WRC=1 prior to accessing another register

Initialization and Configuration zTo use the WDT, its peripheral clock must be enabled by setting the WDT bit in the RCGC0 register zThe Watchdog Timer is configured using the following sequence: z1. Load the WDTLOAD register with the desired timer load value z2. If WDT1, wait for the WRC bit in the WDTCTL register to be set. z3. If the WDT is configured to trigger system resets, set the RESEN bit in the WDTCTL register z4. If WDT1, wait for the WRC bit in the WDTCTL register to be set. z5. Set the INTEN bit in the WDTCTL register to enable the Watchdog and lock the control register. zWriting any value to the WDTLOCK register will fully lock the WDT; to unlock the Watchdog Timer, write a value of 0x1ACCE551

Register Map zThe Watchdog Timer base address: zWDT0: 0x zWDT1: 0x zTable 12-1 on page 484 lists the Watchdog registers.

Register Description: Watchdog Load (WDTLOAD) zThis register is the 32-bit interval value used by the 32-bit counter. When this register is written, the value is immediately loaded and the counter restarts counting down from the new value. If the WDTLOAD register is loaded with 0x , an interrupt is immediately generated.

Register Description: Watchdog Value (WDTVALUE) zThis register contains the current count value of the timer.

Register Description: Watchdog Control (WDTCTL) zThis register is the watchdog control register. zWhen the watchdog interrupt has been enabled, all subsequent writes to the control register are ignored. The only mechanism that can re-enable writes is a hardware reset.

Register Description: Watchdog Interrupt Clear (WDTICR) zThis register is the interrupt clear register. A write of any value to this register clears the Watchdog interrupt and reloads the 32-bit counter from the WDTLOAD register.

Register Description: Other Registers zWatchdog Raw Interrupt Status (WDTRIS) zWatchdog Masked Interrupt Status (WDTMIS) zWatchdog Lock (WDTLOCK) zWatchdog Test (WDTTEST)