stm32 has two watchdogs, an independent watchdog and a window watchdog. In fact, their functions are similar, but the time limit for feeding the watchdog is different.
The independent watchdog limits the feeding time to 0-x, where x is determined by your related registers. The feeding time cannot be too late.
Window watchdog, so called window because its feeding time is within a range of upper and lower limits, you can set the upper and lower limits by setting the relevant registers. The feeding time should not be too early or too late.
figure 1
Window Watchdog
The upper window is W[6:0] set in the configuration register WWDG->CFR;
The lower window is fixed at 0x40;
When the window watchdog counter is outside the upper window value or below the lower window value, a reset will occur.
figure 2
&& The value of the upper window can only be set. The maximum value of a 7-bit binary number can only be set to 127 (0x7F), and the minimum value must be greater than 0x40 of the lower window, so its value range is 64~127 (i.e.: 0x40~0x7F);
&& Set the clock division factor for the counter in the configuration register WWDG->CFR to determine the time range that the counter can be timed, thereby determining the time range of the window.
&& The clock of the window watchdog comes from PCLK1. In the clock configuration, its frequency is the two-frequency clock of the external clock after the multiplier, that is, 36MHz. According to the manual, we can know the timing time calculation method:
Upper window time: T_min = 4096 * (2^WDGTB)*(WWDG_CR[6:0] - WWDG_CFR[6:0])/36 (us)
Lower window time: T_max = 4096 * (2^WDGTB)*(WWDG_CR[6:0] - 0x40)/36 (us)
The feeding time range of the watchdog in the relevant window at 36Mhz is:
WDGTB (counter frequency division value) Earliest feeding time/us Latest feeding time/ms
0 113 7.28
1 227 14.56
2 455 29.12
3 910 58.25
Previous article:STM32 watchdog
Next article:STM32 learning Flash write operation & watchdog feeding
Recommended ReadingLatest update time:2024-11-16 19:58
- Popular Resources
- Popular amplifiers
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
- Switching power supply waveform
- [Raspberry Pi 4B Review] + Real-time status monitoring website test service resource usage
- The latency of cache in arm system refers to
- 【W806 Lianshengde Development Board】Real-time performance
- Ov7670 image acquisition source program based on TINYM0 LPC1114
- Pingtouge Scenario-based Bluetooth Mesh Gateway Program Burning
- How to improve the anti-interference (radiation) ability of operational amplifiers
- Embedded Systems Study Guide
- What is Zigbee technology in the Internet of Things?
- Research on TMS320C6701 DSP Auto-loading