Watchdog Working Principle and Timer Operation

Publisher:楼高峰Latest update time:2013-03-30 Source: dzscKeywords:Watchdog Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
    1. Working principle of watchdog

  The S3C44B0X watchdog timer is used to continue the control operation in the case of interference such as noise and system errors. It can also be used as a 16-bit internal timer to request interrupt service. The watchdog timer generates a reset signal every 128 MCLK cycles. When the program is executed normally, the watchdog timer needs to be continuously cleared to 0, that is, the "feed the dog" operation, to prevent the occurrence of a reset signal. In this way, when the system program is "runaway" due to external interference, the entire system is reset because it cannot be "fed" in time, so that the system program restarts, ensuring the safety and reliability of the system.

  2. Watchdog timer operation

  As shown in the figure is the functional block diagram of the watchdog timer.

  Figure 1. Functional block diagram of the watchdog timer

  The S3C44B0X watchdog timer uses MCLK as the clock source, and obtains the required frequency after 8-bit pre-scaling and 4-to-1 2-bit division. The pre-scaling value and frequency division value are configured in the watchdog timer control register WTCON. The effective pre-scaling value range is 0 to 28-1, and the frequency division coefficient can be selected as 16, 32, 64 or 128. Use the following formula to calculate the watchdog timer frequency and each timer clock period value.

  twatchdog=1/MCLK/(pre-division value+1)/division coefficient

  After the watchdog timer is enabled, WTDAT (watchdog timer data register) cannot be automatically loaded into WTCNT (watchdog timer count register). Therefore, before the watchdog timer starts working, the initial value must be written into the watchdog timer count register WTCNT.

Keywords:Watchdog Reference address:Watchdog Working Principle and Timer Operation

Previous article:Design of USB interface for ECG and blood pressure monitor using S3C44B0X
Next article:Research and Design of S3C2410 Peripheral Storage System

Recommended ReadingLatest update time:2024-11-16 15:57

PIC16F877A microcontroller (interrupt and timer Timer0)
1 Basic principles 2 Implementation Code The code is mainly written based on FIGURE 5-1 and the logic block diagram of the interrupt, so that the code is highly readable and easy to understand. However, some registers may not be explained in the block diagram, so you also need to carefully read the official docu
[Microcontroller]
PIC16F877A microcontroller (interrupt and timer Timer0)
uClinux transplantation on S3C44B0X
Preliminary preparation: host computer with Linux system (with C compilation environment), ARMSYS44B0 development version of Liyutai (integrated with Samsung's S3C44b0X chip) and various connections, uClinux source code, cross-compilation tool arm-elf-tools 1. uClinux introduction, basic structure, kernel structure
[Microcontroller]
Design of large LED display system based on S3C44B0X
Core device: S3C44B0X Large-scale LED display systems have been widely used in various indoor and outdoor occasions, but because they mostly use multi-machine systems, the system cost and the complexity of software and hardware design are increased. When a multi-machine system is working, it is es
[Microcontroller]
Design of large LED display system based on S3C44B0X
Issues to be aware of when using PIC microcontroller TIMER1
1. When TMR1H and TMR1L are initialized, the prescaler will be automatically cleared. 2. When the register is written to TMR1H and TMR1L, the prescaler will be cleared. When TMR1 is in operation, writing to TMR1H or TMR1L value may write undesired values. 3. When TMR1 works in asynchronous counting mode, it cannot b
[Microcontroller]
Quickly learn Arm (13)--WatchDog
WatchDog, which means "watchdog" in Chinese, is a name that foreigners give to people in a very interesting and appropriate way. These foreigners who work in technology are always optimistic about life. They regard work as fun instead of painful things, so that they can do their work well. Otherwise, don't do it, not
[Microcontroller]
Quickly learn Arm (13)--WatchDog
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号