The watchdog is used to prevent the program from running away. The program should feed the dog regularly. If the program runs away, it won't feed the dog. If the time to feed the dog is exceeded, the dog will generate a signal to reset the CPU. General programs do not require this mechanism, but this mechanism is required in special circumstances.
The watchdog is enabled by default. The dog counts down by itself and then automatically restarts the CPU.
/* WATCH DOG register watchdog register*/
#define WTCON (*(volatile unsigned long *)0x53000000)
#define WTDAT (*(volatile unsigned long *)0x53000004)
#define WTCNT (*(volatile unsigned long *)0x53000008)
void disable_watch_dog(void)
{
WTCON=0; //Set the WTCON value of the watchdog control register to 0 to turn off the watchdog.
}
Previous article:LCD Experiment Study Notes (4): System Clock
Next article:LCD experiment study notes (2): head.S
Recommended ReadingLatest update time:2024-11-15 21:39
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- 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
- "Goodbye 2019, Hello 2020" + Life Watershed
- MSP430FR5739 enables applications to connect to the Internet of Things
- Introduction to DDS Principle (Chinese).pdf
- UCOS-II (Translated by Shao Beibei)
- Award-winning live broadcast | TI Embedded Live Broadcast Month is waiting for you [Low-power Wi-Fi MCU, Sitara AM57X platform, machine learning]
- Xunwei imx6ull development board uses C language to call shell commands to control LED lights
- SPI settings for msp430f149
- [Image recognition classification & motion detection & analog signal processing system based on Raspberry Pi 400, first post] MJPEG
- MaixSense R329 development board plays Bad Apple demo
- Please recommend a board