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.

TMS320F28062F: Post Processing Block Zero-Crossing Detection vs SineAnalyzer's

Part Number: TMS320F28062F


Hi,

C2000 ADCs are accompanied with Post Processing Blocks that are capable of zero-crossing detection which can off-load some calculation burden from the CPU. However, I'm not sure about the reliability of the PPB with noisy ADC results and its performance compared to the software detection employed in the SineAnalyzer library. In short, is it better to use the PPB zero-crossing detection instead of SineAnalyzer's?

  • Hello,

    There is no PPB on the device you've linked with this post, can you tell me what device you plan on using with the PPB?

    However, I'm not sure about the reliability of the PPB with noisy ADC results and its performance compared to the software detection employed in the SineAnalyzer library. In short, is it better to use the PPB zero-crossing detection instead of SineAnalyzer's?

    I'm not familiar with the SineAnalyzer, is this just a library or does it utilize some other peripherals to do something? If my basic understanding of your question is correct, I'm assuming in both cases you're using the ADC to read in voltage values and perform some zero-crossing detection. In both cases, if the signal is noisy I don't know what the library will do to compensate for that unless it's doing some oversampling or averaging to try and smooth out the noise. If this is the case, it may be better to use the library. The PPB on devices like the F28P65x can also do oversampling, but currently I believe this is the only device that does this.

    If the SineAnalyzer does nothing to get rid of the noise, then I would say it would be better to use the PPB. This allows you to configure the zero-crossing detection so that it generates an interrupt or trips an ePWM, which allows for quicker handling for critical situations. I'm not familiar if the SineAnalyzer library does this, but let me know what C2000 SDK this is part of so I may direct your question there accordingly.

    Best regards,

    Omer Amir

  • Hi Omer,

    I intended to use the PPB zero-cross function on the F280025. However, I have decided that the zero-crossing detection in both methods is not noise-free enough for my application. Comparator subsystem on the F280025 has an integrated digital filter for debouncing threshold crossings, which could be a solution to my concern.

  • Okay, let me know if you have further questions.