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.

TAS3204 - Reading data from the I2C bus

Other Parts Discussed in Thread: TAS3204

Hi Champs,

On the TAS3204 I would like to  

  1. Detect peak or RMS level of audio stream.
  2. Read this level using external micro-controller (MSP430) through the I2C bus.

How do you read data from the DSP?   

As far I as see there is a voltmeter block (VUMeter) but I am not sure what I2C address I need to read and what is the format of the data. I also see that through the GDE I can peek at almost any point inside the DSP and even see a graph of data with 10..15Hz sampling rate.

 

Thanks,

Andy

  • Andy,

    PurePath Studio has both a Peak and RMS level detector block built into the software as a stand alone component. One could insert this block inline with the channel of interest.

    The I2C address of all component blocks within PurePath Studio are dynamically assigned when a component is inserted into the diagram window. Using the I2C Overview Window from the Tools Menu, you can determine the assigned address of any processing component (block) in your application diagram, as well as other properties that are dynamically assigned to the component. Alternatively you can using the components properties tab (after you left click on the component) to determine its properties.

    The I2C format necessary to read the detectors can be found by right clicking on the component and viewing the component's help file.

     

     

     

     

     

     

  • Hi Drew,

    I am not sure I am understanding how to get the Peak Level reading from the I2C bus.

    For example the Peak Detector is described as:

    Alpha Value: xxxxxx

    I2C address: 0x49

    Data length : 4

    Coef. Start: 0xB6

    Coef. length: 1

    Data start: 0

    Data length: 0

    Handler: 1

     

    The 4 bytes on the I2C address are for setting the alpha value - determining the filter performance.

    How do I read the data outputted from a Peak Detector or other components? Based on the info available in the GDE there is no I2C data output available in this block. On the other hand the GDE can read the data.

     

    From your instructions it looks like I can only read data from the VUMeter and the Spectrum analyzer blocks.

     

    Thanks,

    Andy

  • Hello,

    i fight today with the same problems: How can i get the output of the peak or rms-level detector?

    For example:

    RMS-Level Detector I2C-Adress is 32 (ox20), Coef.Adress ist 16 (0x10). In which register i´ll find the measured values?

    Is the RMS-Detector allways activ or is any start/enable recomended?

     

    My second problem: With the Peak- or RMS-Level-Detector in the path the output of the TAS sounds very destroyed. Any idea?

     

    Best regards

    Daniel