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.
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
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- The microcontroller uses C language to generate sine wave DA data
- Prize-winning live broadcast: Registration for Novatek security surveillance solutions and future technology directions has begun!
- [Chuanglong TLA40i-EVM development board] +02. Power on, CPU and DDR test (zmj)
- Unpacking the GD32L233C-START evaluation board and downloading related resources
- New design rules after AD14...
- Characteristics and selection of common protection components for lightning overvoltage protection
- Failures in the functional safety concept
- Apple launches self-service repair program, you can repair your phone yourself in the future
- How to prevent PCB board from bending and warping during reflow oven
- Musk's "satellite dish" becomes a cat heater. Engineer: The cat is warm, but the Internet speed is so slow that it drives people crazy