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.

PCM3070 Register

Other Parts Discussed in Thread: PCM3070, PUREPATHSTUDIO

Hi

Is it possible to control PCM3070 on the fly?

example :

Change volume by sending/setting data to volume register (0x41& 0x42).

If it is possible, how about equalizer? what is number of register affected?

thanks, 

  • Hi, Rachmat,

    Effectively, the PCM3070 can be configured on the fly as you mentioned.

    Regarding the equalizer, it depends of the filter to configure. You may see more details about this in 2.3.5.10 User Programmable Filters section of application reference guide.

    Best regards,
    Luis Fernando Rodríguez S.

  • Hi Luis,

    thank you for the respond
    Do you have any sample code of it ?

    best regards,
    Rachmat
  • Hi, Rachmat,

    Please find attached an example configuration for the ADC Biquad Filters.

    ###############################################
    # High Performance Stereo Recording
    # ---------------------------------------------
    # PowerTune mode PTM_R4 is used for high
    # performance 16-bit audio. 
    #
    # For normal USB Audio, no hardware change
    # is required.
    #
    # If using an external interface, SW2.4 and
    # SW2.5 of the USB-ModEVM must be set to
    # HI and clocks can be connected to J14 of
    # the USB-ModEVM.
    #
    # IN1L/R is routed to the LADC/RADC in a
    # single-ended manner.
    ###############################################
    
    
    
    ###############################################
    # Software Reset
    ###############################################
    #
    # Select Page 0
    w 30 00 00
    #
    # Initialize the device through software reset
    w 30 01 01
    #
    ###############################################
    
    
    
    ###############################################
    # Clock Settings
    # ---------------------------------------------
    # The codec receives: MCLK = 11.2896 MHz,
    # BLCK = 2.8224 MHz, WCLK = 44.1 kHz
    ###############################################
    #
    # Select Page 0
    w 30 00 00
    #
    # NADC = 1, MADC = 2
    w 30 12 81 82
    #
    ###############################################
    
    
    
    ###############################################
    # Signal Processing Settings
    ###############################################
    #
    # Select Page 0
    w 30 00 00
    #
    # Set the ADC Mode to PRB_P1
    w 30 3d 01
    #
    ###############################################
    
    
    
    ###############################################
    # Initialize Codec
    ###############################################
    #
    # Select Page 1
    w 30 00 01
    #
    # Disable weak AVDD in presence of external
    # AVDD supply
    w 30 01 08
    #
    # Enable Master Analog Power Control
    w 30 02 00
    #
    # Select ADC PTM_R4
    w 30 3d 00
    #
    # Set the input powerup time to 3.1ms (for ADC)
    w 30 47 32
    #
    # Set the REF charging time to 40ms
    w 30 7b 01
    #
    ###############################################
    
    
    ###############################################
    # Biquad Filters Configuration
    ###############################################
    #
    # ADC Biquad Filter Coefficients
    # High Pass 1st Order Butterworth, 20Hz Fc 0dB
    #
    # Select Page 8 
    w 30 00 08
    #
    # Filter Coefficients N0, N1, D1
    w 30 18 7f d1 60
    w 30 1c 80 2e a0
    w 30 20 7f a2 c1
    #
    ###############################################
    
    
    ###############################################
    # Recording Setup
    ###############################################
    #
    # Select Page 1
    w 30 00 01
    #
    # Route IN1L to LEFT_P with 20K input impedance
    w 30 34 80
    #
    # Route Common Mode to LEFT_M with impedance of 20K
    w 30 36 80
    #
    # Route IN1R to RIGHT_P with input impedance of 20K
    w 30 37 80
    #
    # Route Common Mode to RIGHT_M with impedance of 20K
    w 30 39 80
    #
    # Unmute Left MICPGA, Gain selection of 6dB to make channel gain 0dB
    # Register of 6dB with input impedance of 20K => Channel Gain of 0dB
    w 30 3b 0c
    #
    # Unmute Right MICPGA, Gain selection of 6dB to make channel gain 0dB
    # Register of 6dB with input impedance of 20K => Channel Gain of 0dB
    w 30 3c 0c
    #
    # Select Page 0
    w 30 00 00
    #
    # Power up LADC/RADC
    w 30 51 c0
    #
    # Unmute LADC/RADC
    w 30 52 00
    #
    ###############################################
    

    Best regards,
    Luis Fernando Rodríguez S.

  • Hi Luis,

    thank you for the sample.
    What's data (data composition) should be send to PCM3070 when change the value of equalizer.
    I watch PurePathStudio, it send many data when change one value (ex. equalizer)

    best regard,
    Rachmat
  • Hi, Rachmat,

    It would depend of your required data. Normally, the coefficients of the biquad filters need three registers to be modified (for example page 4 / registers 24-26). In case of PurePath Studio, there could be more registers to modify since one value could correspond to multiple registers. You may see the assigned registers in properties window of the equalizer block.

    Best regards,
    Luis Fernando Rodríguez S.