(1) Watchdog timer control register WTCON
The watchdog timer control register WTCON is shown in Table 1. WTCON can enable the watchdog timer to select the clock signal from 4 different clock sources, enable or disable interrupts, and enable or disable the watchdog timer reset signal input.
Table 1 Watchdog timer control register WTCON
The watchdog timer is used to recover normal operation from an error after power supply using S3C44B0X. If you do not want to restart the processor, then the watchdog timer is disabled; if you want to use the normal timing function provided by the watchdog timer, you need to use the interrupt and watchdog timer functions.
(2) Watchdog timer data register WTDAT
The watchdog timer data register WTDAT is shown in Table 2. WTDAT is used to set the time limit value. After the watchdog timer is initialized, WTDAT cannot be automatically loaded into the timer counter. Initialization uses 0x8000. After the first time limit occurs, the WTDAT value will be automatically loaded into WTCNT.
Table 2 Watchdog timer data register WTDAT
(3) Watchdog timer count register WTCNT
The watchdog timer count register WTCNT is shown in Table 3. WTCNT contains the current count value of the watchdog timer under normal operation, so before enabling, the watchdog timer count register needs to be set to an initial value of 0x8000.
Table 3 Watchdog timer count register WTCNT
2. Example software design
The software design of the watchdog in this example mainly includes the initialization of the watchdog, feeding the dog, etc. Through the following program, the user can intuitively see the process of the watchdog resetting the system. [page]
Function to turn on/off the LED light:
Previous article:Reliability Technology and Development of Single Chip Microcomputer System
Next article:ADC0809 AD converter basic application technology
Recommended ReadingLatest update time:2024-11-17 10:48
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
- New breakthrough! Ultra-fast memory accelerates Intel Xeon 6-core processors
- New breakthrough! Ultra-fast memory accelerates Intel Xeon 6-core processors
- Consolidating vRAN sites onto a single server helps operators reduce total cost of ownership
- Consolidating vRAN sites onto a single server helps operators reduce total cost of ownership
- 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!
- Zhongke Bluesun (AB32VG1) development board (based on RT-Thread system) --- Music player -- Sharing
- What exactly is a sine filter?
- Pingtouge RVB2601 board-GPIO
- [TI recommended course] #DC/DC switching regulator packaging innovation#
- ST60 short-distance, contactless connector evaluation 1: application environment and principle
- 【AT-START-F425 Review】Reading USB files to achieve image reproduction
- Looking for open source enthusiasts to improve the BabyOS open source project
- Can experienced friends recommend some useful power modules?
- J-JLINK always fails to download LM3S800 program.
- What is the appropriate sampling rate for an oscilloscope?