Post Go back to editing

ADAU1701 Readback Register on a Microcontroller

Category: Software
Product Number: ADAU1701
Software Version: Sigma Studio 4.7

My sigma studio schematic is as shown below. I'm attempting to use a readback register to grab the level from the ADAU1701's Input0 on my microcontroller, but I'm having issues with the conversion from 5.19 format to decimal in my microcontroller. I've read through the Numeric Formats pages but haven't been able to figure it out. From what I can tell, the output of the Level1 block should be a -96 to 0 db value, this is converted to a 5.19 decimal representation. On my microcontroller, I read back the 24 bit value and have tried a variety of methods to convert this back to the correct -96 to 0 ranged value, but to no avail. I could use some help checking my assumptions and with the proper final conversion.

Parents Reply Children
  • Hey David,

    This was very helpful, I'm new to the DSP/SigmaStudio side of things so I didn't know you could pull values directly from the components. My new design will flow input -> filters -> Level Meter, and my firmware will then pull the reading from a parameter in the Level Meter and convert. Is this more in line with what you'd think is the correct way of approaching this?

    FYI, I've gotten more comfortable with the firmware conversion of fixed-point values, so I should be set there.

    RK

  • Hello RK,

    Yes, this is how you would do it. You would read the parameter every ten milliseconds. The meter will get the absolute value and integrate the level of the audio so then all you need to do is convert it and setup some ballistics for peak or VU. 

    This is the document where I went into the meter data a little. This is mostly about the compressor.

    PDF

    Dave T