Part Number: TMS320F28P550SJ

This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: TMS320F28P550SJ

Hi Alfred,
Thanks for reaching out here.
Breaking down what `result.buf0[0]` and `result.buf0[1]` represent within the context of the AFCI demo code (specifically `ml_arc_detction_F28P55X` and `arc_detection.c`).
The AFCI (Arc Fault Circuit Interrupter) demo uses a machine learning algorithm (specifically an Arc Detection algorithm) to identify arc faults in an electrical circuit. The algorithm analyzes the voltage and current waveforms to distinguish normal operation from the characteristic "signature" of an arc fault.
The core of the AFCI detection relies on comparing calculated features against thresholds. These thresholds define the boundaries between normal operation and arc fault conditions.
The code `if (result.buf0[0] <= result.buf0[1])` is critical.
The `result.buf0[0]` and `result.buf0[1]` variables, along with the conditional statement, form a basic thresholding mechanism for detecting arc faults. The algorithm works by monitoring input features and comparing them to a fixed threshold. When a feature value falls below the threshold, it indicates that an arc fault has occurred.
In summary, the code is using a thresholding approach to detect arc faults based on a calculated feature (`result.buf0[0]`) and a predefined threshold (`result.buf0[1]`). Because of its implementation, a lower feature value indicates a higher likelihood of a fault.
Best Regards,
Zackary Fleenor