Debounce Algorithm
The fault diagnosis step is to first perform fault detection, that is, to monitor in real time according to the preconditions and judgment conditions to determine whether there is a potential fault. Usually, four states (PREPASSED, PASSED, PREFAILED, FAILED) are used to represent the judgment result. For some faults, there is no need to confirm the fault through the Debounce algorithm. At this time, the judgment results are only PASSED and FAILED, and the confirmed fault is obtained directly; while for some faults, it may be caused by some signal fluctuations, not faults, and they are called potential faults. At this time, PREFAILED and PREPASSED are introduced to represent it, and the Debounce algorithm is needed to further confirm whether it is a fault. There are two commonly used Debounce algorithms: counter-based Debounce algorithm and time-based Debounce algorithm.
Debounce algorithm based on counter
The algorithm uses a Debounce counter (the counting range depends on the specific definition) to record the judgment results. When the PREFAILED state is obtained once according to the premise and judgment conditions, the counter (Fault Detection Counter) will increase by one step, so as to accumulate continuously. When the cumulative count reaches the set Failed limit, the fault state becomes Failed, that is, the potential fault is confirmed, as shown in the figure below at time t1. Some faults may be recovered after being confirmed, that is, as long as the PREPASSED state is obtained once according to the premise and judgment conditions, the counter (Fault Detection Counter) will decrease by one step, so as to continuously decrease. When the set Passed limit is reached, the fault state becomes Passed, that is, the fault has been eliminated, as shown in the figure below at time t2.
The two values in the figure above, Jump down value and Jump up value, need to be explained here. The so-called Jump down value means that the fault is confirmed to be in the Failed state. If the PREPASSED state is obtained according to the preconditions and judgment conditions of the detection next time, the value of the counter will not decrease by one step from the set FAILED limit, but jump to the Jump down value and start to decrease by one step. The Jump up value can be understood in the same way. Both values are defined by the user.
Time-based Debounce Algorithm
The algorithm uses a Debounce timer (also in the range of -128 to 127) to record the result of the judgment. When the PREFAILED state is obtained once according to the premise and judgment conditions, the timer (Fault Detection Counter) starts counting. After a period of time t_failed, if the PREPASSED or PASSED state still does not appear, the fault state becomes Failed, as shown in the figure below at time t1; within tfailed, if the FAILED state appears, the fault state directly becomes Failed, that is, the fault is confirmed, as shown in the figure below at time t4. When the fault is confirmed, then when the PREPASSED state is obtained once according to the premise and judgment conditions, the counter is reset to zero and starts counting again. Similarly, the PREPASSED state is always obtained. After a period of time t_passed is accumulated, it indicates that the fault has been eliminated. As shown in the figure below at time t2. When the fault is confirmed, then when the PASSED state is obtained once according to the premise and judgment conditions, the counter does not need to accumulate time, and directly indicates that the fault has been eliminated, as shown in the figure below at time t3.
Previous article:Analysis of EMI noise sources in automotive DCDC switching power supplies
Next article:What are the applications of silicon carbide power devices in charging piles?
- Popular Resources
- Popular amplifiers
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- 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
- 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
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
- MicroPython v2.0 roadmap
- Computer power supply plus current regulation
- PCB design software Protel 99 SE and AD copper-free hole and copper-free slot design
- Why is a bootstrap circuit used in BUCK power chip?
- The states of the terminal device in the TI ZigBee protocol stack involved in the protocol stack
- SPI settings for msp430f149
- Long press and short press based on MSP430F5529 buttons
- 【LoRa】LoRa development common problems 2
- EEWORLD University Hall----Teacher Tang talks about operational amplifiers
- Why do positrons and electrons "annihilate"?