Post Go back to editing

Starting Index of UpDownLUT

Category: Software
Product Number: ADAU1463
Software Version: 4.6

Hello all,

im using an Idex LookUp with Up/Down Inputs to control an index selectable Filter (ISF1) with an external rotary controller. At StartUp i want the LookUp Table to start with Position 1, and not position 0.

Hence, the task would be to set the value stored in Interface_2 to 1 (or any other number) at startup. Can anyone tell me how to do this?

Thanks alot!

  • Hello Lukas_Jani,

    Can you give us a little more info on you application?

    At StartUp i want the LookUp Table to start with Position 1, and not position 0.

    You want to ignore the value which is at index 0? so, you want to start with index 1?

    Or your control input starts at 1 (not from 0?), so you want to start from index 1, just not to miss anything? i.e if your control starts from 1 then you will probably miss the value at index 0? Hence, you start from index 1?

    If you can explain, why do you want this way then we can work on the possibilities.

    Hence, the task would be to set the value stored in Interface_2 to 1 (or any other number) at startup. Can anyone tell me how to do this?

    You want to overwrite the 'Interface_read' parameter to some other constant?

    Please describe a little more about your requirement and kindly attach your project. 

    Regards,

    Harish

  • Hello Lucas,

    The questions Harish asked are stull valid but I will attach an example project that shows you how to start with a different default value. This is the assumption we will make. That you just want to start with a different starting value. 

    This example project uses an Up/down counter but all you need to look at is what is going on with the Interface Read and Write pins. It is the same functionality with the rotary volume control cell you are using. Really, any cell that uses an interface read/write. 

    Dave T

    5047.ADAU1452 Test of Interface read and write with Default Setting.dspproj

  • Hello Harish, Hello Dave,

    i dont want to ignore the value at position 0, just a startup at value one. To be specific, the control implemented here is for an equalizer.

    Position 0 is +3db for the filter, 1 is 0db, 2 is -3db and so on. The default value at startup should always be 0db. 

    For this i would like to set a default value for the stored value in the interface x storage position. 

    Basically, Daves Circuit is the solution and does exactly what i want.... i just imagined there would be a simpler solution Slight smile

    Thanks alot for your help!