At present, while the development momentum of automobile automated driving is rising steadily, various painful quality accidents frequently occur. Demand promotes change, and demand promotes the rapid implementation of functional safety in automotive electronics. This article will take you to appreciate the watchdog in high-level safety design .
In electronic systems with increasingly higher requirements for automotive safety, in order to ensure that system programs run according to the expected process, the monitoring measures of the program by the watchdog have become an indispensable part of the functional safety requirements. For example, the monitoring of program running logic and program running time, etc., such watchdog application requirements cannot be met by general watchdogs. ZLG recommends the use of FS45/65 power management chips for users. Its watchdog is implemented based on the "question/answer" principle, which can well support related functional safety designs.
1. Introduction to Watchdog
Figure 1 Challenger WD
The watchdog of FS45/65 is Challenger WD, and the watchdog refresh is implemented based on the "question/answer" principle: FS45/65 generates 8-bit pseudo-random numbers based on the linear shift register (LFSR). The MCU can send a custom LFSR seed or use the default LFSR value (0xB2) of FS45/65 to perform predefined calculations and send the results to FS45/65 through SPI for verification. If the verification is correct, a new pseudo-random number will be generated; if the verification is wrong, the WD error counter will increase, the value of WD_LFSR will remain unchanged, and the WD error counter will reach a certain threshold according to the predetermined configuration, and control RSTB and FS0B, so that the system enters a safe state.
Any WD refresh will restart the window, which ensures the synchronization between MCU and FS65. At the same time , the external watchdog independent of the MCU system can better ensure the stability of the system.
2. Watchdog Window
Figure 2 Watchdog window
The first watchdog refresh is in the INIT phase. After the first watchdog refresh, the device enters the normal WD refresh mode and the MCU must refresh the watchdog during the watchdog window opening. The watchdog window time can be configured from 1.0ms to 1024ms in the WD_WINDOW[3:0] bits. The watchdog can only be disabled in the INIT phase to allow "reprogramming".
Whether it is a good or bad WD refresh or WD timeout, a new WD window will be restarted;
The window time can be changed at any stage, and the changed window time will be reflected after the next WD refresh;
The duty cycle of the window is 50%±10% and cannot be modified.
3. Watchdog Error Count
Figure 3 Watchdog error counter
FS45/65 implements watchdog error counter management. The device determines the actions of RSTB and FS0B by configuring the watchdog error count threshold in the INIT phase, ensuring that the system can quickly enter a safe state when a serious watchdog fault occurs.
In case of a watchdog fault, the WD error counter is incremented by 2; in case of a correct refresh, the WD error counter is decremented by 1. This principle ensures that the cyclic "OK/NOK" behavior converges on fault detection. To allow application flexibility, the maximum value of this counter can be configured using the WD_CNT_RFR[1:0] bits during the INIT phase.
The watchdog error counter value can be read by the microcontroller at the WD_ERR[2:0] bit to diagnose whether the watchdog is refreshed correctly.
4. Watchdog refresh counter
Figure 4 Watchdog refresh counter
The watchdog refresh counter is used to decrement the fault error counter. Every time the watchdog is refreshed correctly, the watchdog refresh counter will increase by 1, and every time the watchdog refresh counter reaches 6, if the next WD refresh is also good, the fault error counter is decremented by 1.
Regardless of the current value of the watchdog refresh counter, each time an error occurs while refreshing the watchdog, the watchdog refresh counter will be reset to 0
.
Figure 5 ZLG resources
ZLG has prepared comprehensive device usage and functional safety resources for users, including device evaluation kits, basic function usage documentation, basic function codes, functional safety usage documentation, and functional safety SafetyLib.
VI. Conclusion
FS45/65 is far superior to traditional window watchdogs in terms of watchdog response strategy, fault count management function and diagnosis. It can effectively ensure the stable operation of the system and complies with the relevant technical requirements of the national standard GB/T 34590-5 program sequence monitoring, achieving a very high level of diagnostic coverage.
Previous article:The United States develops an intelligent traffic system that allows vehicles to safely pass through intersections without stopping.
Next article:ESS introduces new hazard light system that activates automatically and flashes quickly to attract attention
Recommended ReadingLatest update time:2024-11-16 11:46
- Popular Resources
- Popular amplifiers
- Wireless Sensor Network Technology and Applications (Edited by Mou Si, Yin Hong, and Su Xing)
- Modern Electronic Technology Training Course (Edited by Yao Youfeng)
- Modern arc welding power supply and its control
- Small AC Servo Motor Control Circuit Design (by Masaru Ishijima; translated by Xue Liang and Zhu Jianjun, by Masaru Ishijima, Xue Liang, and Zhu Jianjun)
- 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
- 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
- 2020 Share my thoughts on Qian'an, a national healthy and civilized county-level city
- MOS tube drain ringing
- Current detection methods
- [CB5654 Intelligent Voice Development Board Review] Hardware Review
- MPLABX Compilation Failure
- Selection of aluminum electrolytic capacitors
- EEWORLD University Hall ---- FanySkill Installation Instructions For Allegro 16.617.2 Version
- FDC2214 STM32 and MSP430F5529 serial port data reading program
- Today at 10:00 AM, live broadcast with prizes: Market environment is uncertain, but Infineon is very sure to protect IoT devices
- Yibite provides Bluetooth, 4G DTU, WiFi, lora and other modules for free. Come and play if you want to!