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.

CC8530: Purepath Wireless configurator device definition file volume control for TLV320ADC3101

Part Number: CC8530
Other Parts Discussed in Thread: TLV320ADC3101,

I am writing a custom audio device definition file to use the TLV320ADC3101 in purepathe wireless configurator with the CC8530. I have the file most of the way completed and the device works with the chip, but I cannot sort out the volume control. The device mutes and outputs audio correctly, but it currently has no volume control. I think the error is most likely from a misunderstanding of one of the ctrl spec definition, but I am unsure. I copied and pasted the block from the device definition file for volume, would somebody please look over it to see where I may have made my error. The digital volume control register of TLV320ADC3101 is discussed at the bottom of page 25 of the data sheet (link included below).

Thank you, Austin

<vol_ctrl_spec dir="Input" type="Volume" io_channel_mask="01">
     <pre_patch_cfg_sequence>
          w 30 00 00 # Select register page 0
     </pre_patch_cfg_sequence>
     <vol_precision>1</vol_precision>
     <vol_negate>0</vol_negate>
     <vol_add_value>0</vol_add_value>
     <vol_left_shift>0</vol_left_shift>
     <vol_field_size>7</vol_field_size>
     <patch_i2c_addr>30</patch_i2c_addr>
     <patch_reg_addr_size>1</patch_reg_addr_size>
     <patch_reg_addr>53</patch_reg_addr>
     <patch_reg_data_size>1</patch_reg_data_size>
     <patch_reg_data>80</patch_reg_data>
     <patch_read_mask>80</patch_read_mask>
</vol_ctrl_spec>

https://www.ti.com/lit/ds/symlink/tlv320adc3101.pdf?ts=1702817811440&ref_url=https%253A%252F%252Fwww.ti.com%252Fproduct%252FTLV320ADC3101

Audio Device Definition File Instructions.pdf

  • Hi Austin,

    I would recommend using the TLV320ADC3101 and its accompanying PurePath Wireless Configurator\audio_devices\adc3101.ppwadd as a near approximation for setting up these registers.

        <vol_ctrl_spec dir="Input" type="Volume" io_channel_mask="01">
            <pre_patch_cfg_sequence>
                w 30 00 00  	# Select register page 0
            </pre_patch_cfg_sequence>
            <vol_precision>1</vol_precision>
            <vol_negate>0</vol_negate>
            <vol_add_value>0</vol_add_value>
            <vol_left_shift>24</vol_left_shift>
            <vol_field_size>7</vol_field_size>
            <patch_i2c_addr>30</patch_i2c_addr>
            <patch_reg_addr_size>1</patch_reg_addr_size>
            <patch_reg_addr>53</patch_reg_addr>
            <patch_reg_data_size>1</patch_reg_data_size>
            <patch_reg_data>00</patch_reg_data>
            <patch_read_mask>00</patch_read_mask>
        </vol_ctrl_spec>

    If this does not work then consider further monitoring (with an oscilloscope or logic analyzer) the I2C lines to determine what is actually sent to the TLV320ADC3101 device's registers.

    Regards,
    Ryan