Post Go back to editing

source selection using adc potentiometer

Thread Summary

The user asked if it's possible to select one of several inputs using an analog potentiometer connected to the auxiliary ADC on the ADAU1701. The support engineer provided an example project for an index-selectable filter, which can be adapted for input MUX selection. The value from the auxiliary ADC is in 5.23 format (0...1). The user inquired about the circuit's resistance to transients and suggested implementing hysteresis.
AI Generated Content
Category: Software

Hi,
Is there a way to select one of several inputs using an analog potentiometer connected to the auxiliary ADC on the adau1701?

Just like in the attached image.

Thanks for your reply. Regards.

Parents Reply Children
  • Thank you very much. The program is very clearly described.

    If I understand correctly, the value supplied directly from the auxiliary ADC input is 0...1 in 5.23 format.

    I have one more question. Will this circuit be resistant to transients at the edge of the ranges?

    Maybe I need to implement hysteresis?

  • Hello Kuba-s,

    If you use a MUX with Slew, then you are covered. It will start to change then change back. 

    It can get really complicated if you try to setup windows and hysteresis. Yes, there is a lot you can do but perhaps a better effort would be to come up with a mechanical solution with detents or something to prevent people from leaving the pot right on the edge between two settings? 

    A rotary switch with different resistors would be great but cost more. 

    We do have a Software Debounce block that might be helpful if you have enough available instructions.

    Dave T

  • Cześć DaveT,
    używam płytki Wondom JAB4 i nie mogę jej zbytnio modyfikować.
    Gdybym miał projektować sprzęt od podstaw, zdecydowanie zrobiłbym to inaczej.
    Mam jeszcze jedno pytanie, ponieważ przetestowałem Twój układ w praktyce i niestety nie działa. Jestem pewien, że dane z potencjometru są wprowadzane, ponieważ kiedy używam go z blokiem regulacji głośności, wszystko działa.

    Symulacja pokazana na poniższym obrazku również nie działa. Brak sygnału. Ciekawe dlaczego?
    (Sigmastudio v4.6)

  • What you showed in the examples above doesn't work. The switches must have an input format of 28.0.
    There's a problem with the table; I don't know how they work.
    However, I came up with another way to create a double-pole switch (because that's all I need for now).
    I've attached a working example below.

  •      Hello all,

         The -1701's Auxiliary ADCs include built-in hysteresis which helps prevent undesired changes in what they control.  Four-bit hysteresis plus a low-pass filter is standard; you can select three other options with register settings in the Register Settings window:

    The Aux ADCs are covered on Page 45 of the
    ADAU1701 Data Sheet.  There may be some confusion as to the labeling of these settings -- see this link:

    ADAU1701 Aux ADC Hysteresis Settings