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.

Compiler/TMS320F28069M: Best way to debounce ADC input?

Part Number: TMS320F28069M

Tool/software: TI C/C++ Compiler

Hi,

I'm reading from ADC channels and want to do edge detection based on variable thresholds, but I need to add debounce logic. I've looked at a few options, but not sure if they'll work for what I need.

I've seen that you can have input qualification on the GPIOs. Is there something similar to this for the ADC? I've also looked into the ADC hysteresis register, but not sure exactly how it works.

Thanks in advance for the help!

  • Adam,

    Debouncing and qualification are generally associated with noise filtering for digital signals. There is no built-in analog equivalent for this ADC.

    The easiest ADC noise filtering method would be to average the conversion results in software. Increasing the ACQPS value can have a small effect. An RC filter can also smooth out the external signal.

    The hysteresis registers that you found belong to the comparator module. Its output is digital so you will see the familiar concepts of qualification and hysteresis. You can certainly use the comparator instead of (or in combination with) the ADC.

    -Tommy