//Select IWDG_Prescaler_128
//64/128 = 0.5 khz 2ms period
#define IWDG_500MS_REST (uint8)250 #define IWDG_400MS_REST (uint8)200 #define IWDG_300MS_REST (uint8)150 #define IWDG_250MS_REST (uint8)125 #define IWDG_200MS_REST (uint8)100 #define IWDG_100MS_REST (uint8)50 #define IWDG_50MS_REST (uint8)25 #define IWDG_4MS_REST (uint8)2 IWDG_WriteAccessCmd(IWDG_WriteAccess_Enable); //Agree to operate independent watchdog IWDG_SetPrescaler(IWDG_Prescaler_128); //Watchdog prescaler IWDG_SetReload(IWDG_200MS_REST); //Set the watchdog reset time IWDG_Enable(); //Start independent watchdog IWDG_ReloadCounter(); //Watchdog reset If you don't want watchdog reset to occur during normal use, run This instruction
Previous article:Serial communication between two microcontrollers
Next article:Independent watchdog and window watchdog of stm8
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
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
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
- E220-400TBL-01 lora module wireless test board + 01 unboxing + simple use
- C8051F340 system board program loss problem
- TMS320F28335 Experimenter Board Kit
- OPA2369 Issues
- [Summary] Let's get our hands dirty and do a "labor" transformation of old things
- [GD32L233C-START Review] 9. IAP program upgrade - based on YMODEM protocol
- What is it like to ask programmers to write code by hand with pen and paper after a power outage?
- [Sipeed LicheeRV 86 Panel Review] III. Building a cross-compilation environment: success and failure
- I need help from a master, diesel engine electronic throttle pedal signal synchronization failure
- In three minutes, let me show you what load is.