|
| 1 | +Diagnostics Layer {#diagnostics-description} |
| 2 | +===================== |
| 3 | + |
| 4 | +A Diagnostics Object represents a value of a special function register or global user variable, which will monitored and validated by the Diagnostics Library. The library supports different comparisons for validation, such as: |
| 5 | + |
| 6 | +- Greater Than |
| 7 | +- Less Than |
| 8 | +- Equal |
| 9 | +- Not Equal |
| 10 | +- Within Range |
| 11 | +- Out Of Range |
| 12 | + |
| 13 | +The Diagnostics Layer source values are either compared against a user-defined constant (static threshold), or another variable (dynamic threshold). The Diagnostics Layer further supports two thresholds, one defining the Diagnostics Event Trip Level and second is Diagnostics Event Recovery Level. Depending on the type of comparison selected, the range between both thresholds is either interpreted as hysteresis or range. (see @ref apps-layer-diag-lib "Diagnostics Library" for details) |
| 14 | + |
| 15 | +The fundamental mechanism of detecting diagnostics event conditions and creating trip and recovery responses is based on a simple, adjustable detection filter, which does not influence the monitored value but delays the response of the software. Depending on the type of value monitored, the firmware may need to react sooner or later while the diagnostics event detection sensitivity needs to be adjusted accordingly to prevent the power supply from unintended shut downs. |
| 16 | + |
| 17 | +The delay filter counts successive threshold violations, comparing the most recent counter value against an absolute, user-defined maximum. When one sample of the monitored value does *not* violate the given threshold, the counter is reset and starts incrementing from zero at the next threshold detection. When the monitored value remains violating the given threshold until the counter reaches or exceeds the defined maximum counter value, the power supply shut down event is triggered, turning off PWM outputs and control loops and resetting the state machine, waiting for the diagnostics event condition to disappear. |
| 18 | + |
| 19 | +<p> |
| 20 | + <center> |
| 21 | + \image html diagevt_trip.png width=540 |
| 22 | + </center> |
| 23 | +</p> |
| 24 | +<p><center><i>Diagnostics Event Detection</i></center></p> |
| 25 | + |
| 26 | +Recovering from a diagnostics event condition uses the same mechanism, but provides its individual set of parameters. Thus, diagnostics event trip responses can be adjusted to be aggressive while recovery events can be further delayed to prevent the end-product from falling into an undesired, high frequency shut-down/restart cycle. |
| 27 | + |
| 28 | +<p> |
| 29 | + <center> |
| 30 | + \image html diagevt_recovery.png width=540 |
| 31 | + </center> |
| 32 | +</p> |
| 33 | +<p><center><i>Diagnostics Event Recovery</i></center></p> |
| 34 | + |
| 35 | +#### The most recent firmware version supports the following diagnostics objects: |
| 36 | + |
| 37 | +- **Under Voltage Lock Out (UVLO)** |
| 38 | + When the input voltage drops below the specified minimum voltage, the power supply is shut down, waiting for the input voltage to recover. If the power has been cut, the power supply will remain off until all capacitors are discharged and the microcontroller (MCU) shuts down. The PWM inputs of teh FET driver are pulled low until that point. The MCU drops out at voltages below 2.9V, which is below the UVLO level of teh FET driver. Hence, the gate drive signals remain pulled to off-state continuously without the chance to accidentally turn on. |
| 39 | +<br> |
| 40 | +- **Over Voltage Lock Out (UVLO)** |
| 41 | + When the input voltage exceeds the specified absolute maximum value, the power supply is shut down. waiting for the input voltage to drop back into the specified range. Auxiliary power supply, feedback voltage dividers and the power FETs support input voltages of up to 20V above the specified maximum to allow proper tracking of the input voltage even under diagnostics event conditions. |
| 42 | +<br> |
| 43 | +- **Regulation Error (RegErr)** |
| 44 | + This diagnostics object continuously monitors the deviation between output voltage and control reference. With a small deviation and a time delay, which allows normal voltage drops and overshoots during load transients, this diagnostics object is the last line of defense. Any diagnostics event condition which cannot be detected by the other diagnostics objects, such as internal short circuits, oscillating feedback loops or failing components, will inevitably result in larger deviations of the output voltage from the given reference and will lead to a protective shut down of the power supply. |
| 45 | +<br> |
| 46 | + |
| 47 | +#### Optional diagnostics objects: |
| 48 | + |
| 49 | +- **Over Current Protection (OCP)** *(optional)* |
| 50 | + The over current protection requires a very fast response in comparison to voltage monitors. Hence, two successive threshold violations are enough to trip an over current diagnostics event condition, shutting down the power supply. As an over current diagnostics event condition disappears instantly when the power supply has been shut down, the recovery delay needs to be significantly expended to result in a decent diagnostics event response behavior of the end-product. |
| 51 | +<br> |
| 52 | +- **Over Temperature Warning (OTW)** *(optional)* |
| 53 | + The over temperature warning is commonly triggered when the board or system temperature exceeds a threshold value, which is still within the safe operating area but is higher than under commonly expected conditions. The warning allows state machines to take counter measures (e.g. power derating, partial load drop) if possible helping to reduce power losses. In systems where active counter measures are not an option, communication with the load could prevent fatal system failures. However, any measures taken are highly application dependent and have to be implemented as proprietary user functions. |
| 54 | +<br> |
| 55 | +- **Over Temperature Protection (OTP)** *(optional)* |
| 56 | + The over temperature protection is triggered when the board or system temperature exceeds a absolute maximum threshold value, at which the system has to be shut down to prevent permanent damage. It is recommended to include a wide hysteresis to allow the board to cool down significantly before initiating a restart attempt to prevent the power converter from ending up in a frequent shut-down/restart cycle. |
| 57 | +<br> |
| 58 | + |
| 59 | +--- |
| 60 | +© 2024, Microchip Technology Inc. |
0 commit comments