Part Number: AM2434
Hello,
currently 'Fast Detect' for overcurrent detection is not working in my project. The description and functionality are understood as follows.
Window Size: The section of the bitstream being looked at; Zero Count Max Threshold: The maximum allowed number of zeros in the window; Zero Count Min Threshold: The minimum allowed number of zeros in the window.
When detecting overcurrent with the comparator, the SINC filter order and the OSR specify the value range (e.g. SINC3, OSR of 64 -> 262144), with a value of zero amperes lying exactly in the middle (131072). For 'Fast Detect', I would therefore have concluded, that zero amperes would be correspond to 10, for a window size of 20 samples (Modulator should provide a 50/50 Bitstream). To define symmetrical limits centered around zero, the Zero Count Max Threshold and Zero Count Min Threshold should be 11 and 9. Is this correct? Assuming my hardware is designed for a range of +/- 50, +50A should be a continous 1 bitstream, and -50A a continous 0 bitstream. With the previously defined limits of 11/9, wouldn't Fast Detect then trigger over a range of +/-5 A? Is that correct, or am I misunderstanding something?
Besides the basic functionality, another thing I'm curious about is whether any additional configuration is required. I want to use the trip events trip_e3_0 through trip_e3_2 to disable the EPWM. Since I've already used the 'Comparator' for overcurrent detection, the corresponding PRUICSS_PWM_TZ_OUT is configured (and successfully working). For 'Fast Detect' only the API function SDFM_configFastDetect() is used for configuration and enabling, as shown in the examples. Is anything else required besides this?
Best regards,
Christian